Skip to content

Commit 4c0a2d3

Browse files
committed
Suppress PHPMD warnings for factories
1 parent a032a05 commit 4c0a2d3

File tree

10 files changed

+10
-2
lines changed

10 files changed

+10
-2
lines changed

src/Locator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ protected function __construct()
3030
* Creates object instance.
3131
*
3232
* @return static
33+
* @SuppressWarnings(PHPMD.StaticAccess)
3334
*/
3435
public static function factory()
3536
{

src/Locator/Reference.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ protected function __construct()
8484
* Creates object instance.
8585
*
8686
* @return static
87+
* @SuppressWarnings(PHPMD.StaticAccess)
8788
*/
8889
public static function factory()
8990
{

src/Parser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ protected function __construct()
6060
* Creates object instance.
6161
*
6262
* @return static
63+
* @SuppressWarnings(PHPMD.StaticAccess)
6364
*/
6465
public static function factory()
6566
{

src/Parser/Lexer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ protected function __construct()
3333
* Creates instance of object.
3434
*
3535
* @return static
36+
* @SuppressWarnings(PHPMD.StaticAccess)
3637
*/
3738
public static function factory()
3839
{

src/Parser/Lexer/Scanner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected function __construct()
4848
* Creates object instance.
4949
*
5050
* @return static
51+
* @SuppressWarnings(PHPMD.StaticAccess)
5152
*/
5253
public static function factory()
5354
{

src/Parser/Lexer/TokenBuffer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ protected function __construct()
3939
* Creates instance of object.
4040
*
4141
* @return static
42+
* @SuppressWarnings(PHPMD.StaticAccess)
4243
*/
4344
public static function factory()
4445
{

src/Parser/ReferenceBuffer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ protected function __construct()
2626

2727
/**
2828
* @return static
29+
* @SuppressWarnings(PHPMD.StaticAccess)
2930
*/
3031
public static function factory()
3132
{

src/Parser/Token.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Remorhaz\JSONPointer\Parser;
44

5-
use Remorhaz\JSONPointer\PregHelper;
6-
75
/**
86
* JSON Pointer token descriptor.
97
*/
@@ -82,6 +80,7 @@ protected function __construct()
8280
* @param int|null $length
8381
* @param string|null $value
8482
* @return static
83+
* @SuppressWarnings(PHPMD.StaticAccess)
8584
*/
8685
public static function factory($type = null, $text = null, $length = null, $value = null)
8786
{

src/Pointer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ protected function __construct()
7575
* Creates object instance.
7676
*
7777
* @return static
78+
* @SuppressWarnings(PHPMD.StaticAccess)
7879
*/
7980
public static function factory()
8081
{

src/Pointer/Evaluate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ protected function __construct()
7070
* Creates object instance.
7171
*
7272
* @return static
73+
* @SuppressWarnings(PHPMD.StaticAccess)
7374
*/
7475
public static function factory()
7576
{

0 commit comments

Comments
 (0)