@@ -54,11 +54,11 @@ |
||
54 | 54 | |
55 | 55 | parent::initAnnotation($properties); |
56 | 56 | |
57 | - if ($this->min !== null && ! is_int($this->min) && ! is_float($this->min)) { |
|
57 | + if ($this->min !== null && !is_int($this->min) && !is_float($this->min)) { |
|
58 | 58 | throw new AnnotationException('RangeAnnotation requires a numeric (float or int) min property'); |
59 | 59 | } |
60 | 60 | |
61 | - if ($this->max !== null && ! is_int($this->max) && ! is_float($this->max)) { |
|
61 | + if ($this->max !== null && !is_int($this->max) && !is_float($this->max)) { |
|
62 | 62 | throw new AnnotationException('RangeAnnotation requires a numeric (float or int) max property'); |
63 | 63 | } |
64 | 64 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getValue() |
35 | 35 | { |
36 | - if (! empty($this->value)) { |
|
36 | + if (!empty($this->value)) { |
|
37 | 37 | return $this->value; |
38 | 38 | } |
39 | 39 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | if (isset($properties[1])) { |
61 | 61 | $this->method = (array) $properties[0]; |
62 | 62 | |
63 | - if (! is_string($properties[1])) { |
|
63 | + if (!is_string($properties[1])) { |
|
64 | 64 | throw new AnnotationException('RequestMappingAnnotation requires a string as path property'); |
65 | 65 | } |
66 | 66 | |
@@ -85,11 +85,11 @@ discard block |
||
85 | 85 | if ($this->method === ['*']) { |
86 | 86 | $this->method = null; |
87 | 87 | } |
88 | - if (! empty($this->method)) { |
|
88 | + if (!empty($this->method)) { |
|
89 | 89 | $this->method = array_map('strtoupper', $this->method); |
90 | 90 | |
91 | 91 | foreach ($this->method as $method) { |
92 | - if (! in_array($method, self::VALID_METHODS, true)) { |
|
92 | + if (!in_array($method, self::VALID_METHODS, true)) { |
|
93 | 93 | throw new AnnotationException('`' . $method . '` is not a valid method for RequestMappingAnnotation'); |
94 | 94 | } |
95 | 95 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | protected function __construct() |
34 | 34 | { |
35 | 35 | $cacheDir = rtrim(sys_get_temp_dir(), '/\\') . DS . 'blitz-php' . DS . 'annotations'; |
36 | - if (! is_dir($cacheDir)) { |
|
36 | + if (!is_dir($cacheDir)) { |
|
37 | 37 | mkdir($cacheDir, 0777, true); |
38 | 38 | } |
39 | 39 | Annotations::$config['cache'] = new AnnotationCache($cacheDir); |
@@ -35,37 +35,37 @@ |
||
35 | 35 | * @var array |
36 | 36 | */ |
37 | 37 | private static $unParsedAnnotations = [ |
38 | - 'codeCoverageIgnore' , |
|
39 | - 'codeCoverageIgnoreEnd' , |
|
40 | - 'codeCoverageIgnoreStart' , |
|
41 | - 'phpstan-ignore-line' , |
|
42 | - 'phpstan-ignore-next-line' , |
|
43 | - 'psalm-allow-private-mutation' , |
|
44 | - 'psalm-assert' , |
|
45 | - 'psalm-assert-if-false' , |
|
46 | - 'psalm-assert-if-true' , |
|
47 | - 'psalm-consistent-constructor' , |
|
48 | - 'psalm-consistent-templates' , |
|
49 | - 'psalm-external-mutation-free' , |
|
50 | - 'psalm-if-this-is' , |
|
51 | - 'psalm-ignore-falsable-return' , |
|
52 | - 'psalm-ignore-nullable-return' , |
|
53 | - 'psalm-ignore-var' , |
|
54 | - 'psalm-internal' , |
|
55 | - 'psalm-import-type' , |
|
56 | - 'psalm-immutable' , |
|
57 | - 'psalm-mutation-free' , |
|
58 | - 'psalm-param-out' , |
|
59 | - 'psalm-pure' , |
|
60 | - 'psalm-readonly' , |
|
61 | - 'psalm-readonly-allow-private-mutation' , |
|
62 | - 'psalm-require-extends' , |
|
63 | - 'psalm-require-implements' , |
|
64 | - 'psalm-return' , |
|
65 | - 'psalm-seal-properties' , |
|
66 | - 'psalm-suppress' , |
|
67 | - 'psalm-this-out' , |
|
68 | - 'psalm-trace' , |
|
69 | - 'psalm-type' , |
|
38 | + 'codeCoverageIgnore', |
|
39 | + 'codeCoverageIgnoreEnd', |
|
40 | + 'codeCoverageIgnoreStart', |
|
41 | + 'phpstan-ignore-line', |
|
42 | + 'phpstan-ignore-next-line', |
|
43 | + 'psalm-allow-private-mutation', |
|
44 | + 'psalm-assert', |
|
45 | + 'psalm-assert-if-false', |
|
46 | + 'psalm-assert-if-true', |
|
47 | + 'psalm-consistent-constructor', |
|
48 | + 'psalm-consistent-templates', |
|
49 | + 'psalm-external-mutation-free', |
|
50 | + 'psalm-if-this-is', |
|
51 | + 'psalm-ignore-falsable-return', |
|
52 | + 'psalm-ignore-nullable-return', |
|
53 | + 'psalm-ignore-var', |
|
54 | + 'psalm-internal', |
|
55 | + 'psalm-import-type', |
|
56 | + 'psalm-immutable', |
|
57 | + 'psalm-mutation-free', |
|
58 | + 'psalm-param-out', |
|
59 | + 'psalm-pure', |
|
60 | + 'psalm-readonly', |
|
61 | + 'psalm-readonly-allow-private-mutation', |
|
62 | + 'psalm-require-extends', |
|
63 | + 'psalm-require-implements', |
|
64 | + 'psalm-return', |
|
65 | + 'psalm-seal-properties', |
|
66 | + 'psalm-suppress', |
|
67 | + 'psalm-this-out', |
|
68 | + 'psalm-trace', |
|
69 | + 'psalm-type', |
|
70 | 70 | ]; |
71 | 71 | } |