Skip to content

Commit

Permalink
Remove @category from src/ docblocks
Browse files Browse the repository at this point in the history
They serve no purpose.
Also, use "@category Tests" for unittests
  • Loading branch information
cweiske committed Jul 21, 2024
1 parent 7d6aacd commit e652183
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<rule ref="PEAR">
<exclude name="PEAR.Commenting.FileComment.Missing"/>
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
Expand Down
9 changes: 4 additions & 5 deletions src/JsonMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
/**
* Automatically map JSON structures into objects.
*
* @category Netresearch
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
* @link http://cweiske.de/
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
* @link http://cweiske.de/
*/
class JsonMapper
{
Expand Down
9 changes: 4 additions & 5 deletions src/JsonMapper/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
/**
* Simple exception
*
* @category Netresearch
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
* @link http://cweiske.de/
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
* @link http://cweiske.de/
*/
class JsonMapper_Exception extends Exception
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Unit tests for JsonMapper's array handling
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/Array_PHP74_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Unit tests for JsonMapper's support for PHP 7.4 typed arrays
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Martin Reinfandt <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/Array_PHP80_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Unit tests for JsonMapper's support for PHP 8.0 typed arrays for properties with constructor promotion
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Andreas Wunderwald <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/ClassMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Unit tests for JsonMapper's classMap
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/Enums_PHP81_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Unit tests for JsonMapper's support for PHP 8.1 enums
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Martin Reinfandt <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Unit tests for JsonMapper's object handling (events)
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/MixedType_PHP80_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Unit tests for JsonMapper's support for PHP 8.0 mixed type
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Lukas Cerny <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/ObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Unit tests for JsonMapper's object handling
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
1 change: 1 addition & 0 deletions tests/OtherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Unit tests for JsonMapper that don't fit in other categories
*
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
1 change: 1 addition & 0 deletions tests/RemoveUndefinedAttributesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Unit tests for JsonMapper option "bRemoveUndefinedAttributes".
*
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/SimpleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Unit tests for JsonMapper's simple type handling
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/StrictTypes_PHP74_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Unit tests for JsonMapper's support for PHP 7.4 strict types
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Lukas Cerny <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/UnionTypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Unit tests for JsonMapper's union type handling
*
* @category Tools
* @category Tests
* @package JsonMapper
* @author Christian Weiske <[email protected]>
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
Expand Down

0 comments on commit e652183

Please sign in to comment.