Completed
Push — master ( 6faa20...05d108 )
by Melech
04:48
created
src/Valkyrja/Support/Type/Cls.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public static function validateInherits(string $object, string $inherits): void
40 40
     {
41
-        if (! static::inherits($object, $inherits)) {
41
+        if (!static::inherits($object, $inherits)) {
42 42
             throw new InvalidClassProvidedException('');
43 43
         }
44 44
     }
Please login to merge, or discard this patch.
src/Valkyrja/Support/Type/UUID.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
      */
169 169
     public static function validateUUID(string $uuid): void
170 170
     {
171
-        if (! self::isValid($uuid)) {
171
+        if (!self::isValid($uuid)) {
172 172
             throw new RuntimeException('Invalid namespace provided.');
173 173
         }
174 174
     }
Please login to merge, or discard this patch.
src/Valkyrja/Support/Type/Arr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public static function getValueDotNotation($subject, string $key, $defaultValue = null)
46 46
     {
47
-        if (! is_array($subject) && ! ($subject instanceof Traversable) && ! ($subject instanceof ArrayAccess)) {
47
+        if (!is_array($subject) && !($subject instanceof Traversable) && !($subject instanceof ArrayAccess)) {
48 48
             throw new InvalidArgumentException(
49 49
                 'The subject must be either an array or implement the ArrayAccess, or Traversable, interface.'
50 50
             );
Please login to merge, or discard this patch.
src/Valkyrja/Support/Cacheable/Cacheable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function setup(bool $force = false, bool $useCache = true): void
41 41
     {
42 42
         // If route's have already been setup, no need to do it again
43
-        if (self::$setup && ! $force) {
43
+        if (self::$setup && !$force) {
44 44
             return;
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Valkyrja/Support/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
      */
209 209
     public function remove(string $key): self
210 210
     {
211
-        if (! $this->has($key)) {
211
+        if (!$this->has($key)) {
212 212
             return $this;
213 213
         }
214 214
 
Please login to merge, or discard this patch.
src/Valkyrja/Api/Apis/Api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 
169 169
         $jsonData->setItems($objects);
170 170
 
171
-        if (! empty($objects)) {
171
+        if (!empty($objects)) {
172 172
             $this->setItemKeysFromObject($objects[0], $jsonData);
173 173
         }
174 174
 
Please login to merge, or discard this patch.
src/Valkyrja/Annotation/Annotators/Annotator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $index = static::CLASS_CACHE . $class;
118 118
 
119 119
         return self::$annotations[$index]
120
-            ??= $this->setAnnotationValues(
120
+            ?? = $this->setAnnotationValues(
121 121
                 [
122 122
                     Property::CLASS_NAME => $class,
123 123
                 ],
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $index = static::CLASS_MEMBERS_CACHE . $class;
140 140
 
141 141
         return self::$annotations[$index]
142
-            ??= array_merge(
142
+            ?? = array_merge(
143 143
                 $this->propertiesAnnotations($class),
144 144
                 $this->methodsAnnotations($class)
145 145
             );
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $index = static::CLASS_AND_MEMBERS_CACHE . $class;
160 160
 
161 161
         return self::$annotations[$index]
162
-            ??= array_merge(
162
+            ?? = array_merge(
163 163
                 $this->classAnnotations($class),
164 164
                 $this->classMembersAnnotations($class)
165 165
             );
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $reflection = $this->reflector->getPropertyReflection($class, $property);
182 182
 
183 183
         return self::$annotations[$index]
184
-            ??= $this->setAnnotationValues(
184
+            ?? = $this->setAnnotationValues(
185 185
                 [
186 186
                     Property::CLASS_NAME => $class,
187 187
                     Property::PROPERTY   => $property,
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $reflection = $this->reflector->getMethodReflection($class, $method);
244 244
 
245 245
         return self::$annotations[$index]
246
-            ??= $this->setAnnotationValues(
246
+            ?? = $this->setAnnotationValues(
247 247
                 [
248 248
                     Property::CLASS_NAME => $class,
249 249
                     Property::METHOD     => $method,
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         $index = static::FUNCTION_CACHE . $function;
304 304
 
305 305
         return self::$annotations[$index]
306
-            ??= $this->setAnnotationValues(
306
+            ?? = $this->setAnnotationValues(
307 307
                 [
308 308
                     Property::FUNCTION => $function,
309 309
                 ],
Please login to merge, or discard this patch.
src/Valkyrja/Annotation/Parsers/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         // If the variable type and description exist but the variable does not
278 278
         // then that means the variable regex group captured the
279 279
         // first word of the description
280
-        if ($parts[Part::VARIABLE_TYPE] && $parts[Part::DESCRIPTION] && ! $parts[Part::VARIABLE]) {
280
+        if ($parts[Part::VARIABLE_TYPE] && $parts[Part::DESCRIPTION] && !$parts[Part::VARIABLE]) {
281 281
             // Rectify this by concatenating the type and description
282 282
             $parts[Part::DESCRIPTION] = $parts[Part::VARIABLE_TYPE] . $parts[Part::DESCRIPTION];
283 283
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      */
304 304
     protected function cleanPart(string $match = null): ?string
305 305
     {
306
-        if (! $match) {
306
+        if (!$match) {
307 307
             return $match;
308 308
         }
309 309
 
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
             return $this->determineArrayPropertyValue($value);
324 324
         }
325 325
 
326
-        if (! is_string($value)) {
326
+        if (!is_string($value)) {
327 327
             return $value;
328 328
         }
329 329
 
Please login to merge, or discard this patch.
src/Valkyrja/Cache/Adapters/RedisAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         $seconds = $minutes * 60;
133 133
 
134 134
         $this->predis->transaction(
135
-            function ($client) use ($values, $seconds) {
135
+            function($client) use ($values, $seconds) {
136 136
                 /** @var Client $client */
137 137
                 foreach ($values as $key => $value) {
138 138
                     $client->setex($this->getKey($key), $seconds, $value);
Please login to merge, or discard this patch.