@@ -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 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public static function instance() |
40 | 40 | { |
41 | - if (! (static::$_instance instanceof static)) { |
|
41 | + if (!(static::$_instance instanceof static)) { |
|
42 | 42 | $params = func_get_args(); |
43 | 43 | static::$_instance = new static(...$params); |
44 | 44 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | protected function __construct() |
53 | 53 | { |
54 | 54 | $cacheDir = rtrim(sys_get_temp_dir(), '/\\') . DIRECTORY_SEPARATOR . 'blitz-php' . DIRECTORY_SEPARATOR . 'annotations'; |
55 | - if (! is_dir($cacheDir)) { |
|
55 | + if (!is_dir($cacheDir)) { |
|
56 | 56 | mkdir($cacheDir, 0o777, true); |
57 | 57 | } |
58 | 58 | Annotations::$config['cache'] = new AnnotationCache($cacheDir); |