Passed
Push — main ( 0b4aee...5ce5f6 )
by Dimitri
12:17
created
Validation/RangeAnnotation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
BaseAnnotation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Http/RequestMappingAnnotation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
AnnotationReader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.