Skip to content

Commit e652183

Browse files
committed
Remove @category from src/ docblocks
They serve no purpose. Also, use "@category Tests" for unittests
1 parent 7d6aacd commit e652183

16 files changed

+22
-21
lines changed

phpcs.xml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
<rule ref="PEAR">
77
<exclude name="PEAR.Commenting.FileComment.Missing"/>
8+
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
89
</rule>
910
<rule ref="Generic.Files.LineLength">
1011
<properties>

src/JsonMapper.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
/**
33
* Automatically map JSON structures into objects.
44
*
5-
* @category Netresearch
6-
* @package JsonMapper
7-
* @author Christian Weiske <cweiske@cweiske.de>
8-
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
9-
* @link http://cweiske.de/
5+
* @package JsonMapper
6+
* @author Christian Weiske <cweiske@cweiske.de>
7+
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
8+
* @link http://cweiske.de/
109
*/
1110
class JsonMapper
1211
{

src/JsonMapper/Exception.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
/**
33
* Simple exception
44
*
5-
* @category Netresearch
6-
* @package JsonMapper
7-
* @author Christian Weiske <cweiske@cweiske.de>
8-
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
9-
* @link http://cweiske.de/
5+
* @package JsonMapper
6+
* @author Christian Weiske <cweiske@cweiske.de>
7+
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0
8+
* @link http://cweiske.de/
109
*/
1110
class JsonMapper_Exception extends Exception
1211
{

tests/ArrayTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Unit tests for JsonMapper's array handling
66
*
7-
* @category Tools
7+
* @category Tests
88
* @package JsonMapper
99
* @author Christian Weiske <cweiske@cweiske.de>
1010
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/Array_PHP74_Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Unit tests for JsonMapper's support for PHP 7.4 typed arrays
99
*
10-
* @category Tools
10+
* @category Tests
1111
* @package JsonMapper
1212
* @author Martin Reinfandt <martin.reinfandt@check24.de>
1313
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/Array_PHP80_Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Unit tests for JsonMapper's support for PHP 8.0 typed arrays for properties with constructor promotion
99
*
10-
* @category Tools
10+
* @category Tests
1111
* @package JsonMapper
1212
* @author Andreas Wunderwald <wundii@gmail.com>
1313
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/ClassMapTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Unit tests for JsonMapper's classMap
44
*
5-
* @category Tools
5+
* @category Tests
66
* @package JsonMapper
77
* @author Christian Weiske <cweiske@cweiske.de>
88
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/Enums_PHP81_Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Unit tests for JsonMapper's support for PHP 8.1 enums
77
*
8-
* @category Tools
8+
* @category Tests
99
* @package JsonMapper
1010
* @author Martin Reinfandt <martin.reinfandt@check24.de>
1111
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/EventTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Unit tests for JsonMapper's object handling (events)
66
*
7-
* @category Tools
7+
* @category Tests
88
* @package JsonMapper
99
* @author Christian Weiske <cweiske@cweiske.de>
1010
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/MixedType_PHP80_Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Unit tests for JsonMapper's support for PHP 8.0 mixed type
55
*
6-
* @category Tools
6+
* @category Tests
77
* @package JsonMapper
88
* @author Lukas Cerny <lukas.cerny@futuretek.cz>
99
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/ObjectTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Unit tests for JsonMapper's object handling
44
*
5-
* @category Tools
5+
* @category Tests
66
* @package JsonMapper
77
* @author Christian Weiske <cweiske@cweiske.de>
88
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/OtherTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* Unit tests for JsonMapper that don't fit in other categories
44
*
5+
* @category Tests
56
* @package JsonMapper
67
* @author Christian Weiske <cweiske@cweiske.de>
78
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/RemoveUndefinedAttributesTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* Unit tests for JsonMapper option "bRemoveUndefinedAttributes".
44
*
5+
* @category Tests
56
* @package JsonMapper
67
* @author Christian Weiske <cweiske@cweiske.de>
78
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/SimpleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Unit tests for JsonMapper's simple type handling
44
*
5-
* @category Tools
5+
* @category Tests
66
* @package JsonMapper
77
* @author Christian Weiske <cweiske@cweiske.de>
88
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/StrictTypes_PHP74_Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Unit tests for JsonMapper's support for PHP 7.4 strict types
55
*
6-
* @category Tools
6+
* @category Tests
77
* @package JsonMapper
88
* @author Lukas Cerny <lukas.cerny@futuretek.cz>
99
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

tests/UnionTypesTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Unit tests for JsonMapper's union type handling
55
*
6-
* @category Tools
6+
* @category Tests
77
* @package JsonMapper
88
* @author Christian Weiske <cweiske@cweiske.de>
99
* @license OSL-3.0 http://opensource.org/licenses/osl-3.0

0 commit comments

Comments
 (0)