Passed
Push — master ( 8b14d6...99e35d )
by Константин
05:45
created
src/Enum.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     final public static function all(array $values = [], bool $reverse = false, string $property = 'id'): array
190 190
     {
191
-        $values = array_map(static function ($value) {
191
+        $values = array_map(static function($value) {
192 192
             return $value instanceof self ? $value->getId() : $value;
193 193
         }, $values);
194 194
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
             $values = $reverse ? array_values(array_diff($all, $values)) : $values;
205 205
         }
206 206
 
207
-        return array_map(static function ($id) use ($property) {
207
+        return array_map(static function($id) use ($property) {
208 208
             return static::from($property, $id);
209 209
         }, $values);
210 210
     }
@@ -273,11 +273,11 @@  discard block
 block discarded – undo
273 273
 
274 274
         foreach ($reflection->getReflectionConstants() as $reflectionConstant) {
275 275
             if (false === $reflectionConstant->isPrivate()) {
276
-                throw new LogicException(sprintf('Constant "%s" of class "%s" must be private by design.', $reflectionConstant->getName(), static::class, ));
276
+                throw new LogicException(sprintf('Constant "%s" of class "%s" must be private by design.', $reflectionConstant->getName(), static::class,));
277 277
             }
278 278
 
279 279
             if (!is_int($reflectionConstant->getValue())) {
280
-                throw new LogicException(sprintf('Constants "%s" of class "%s" must be type of integer by design.', $reflectionConstant->getName(), static::class, ));
280
+                throw new LogicException(sprintf('Constants "%s" of class "%s" must be type of integer by design.', $reflectionConstant->getName(), static::class,));
281 281
             }
282 282
         }
283 283
 
@@ -287,11 +287,11 @@  discard block
 block discarded – undo
287 287
             self::$properties[static::class][$property->getName()] = $property;
288 288
 
289 289
             if ($property->isPublic()) {
290
-                throw new LogicException(sprintf('Property "%s" of class "%s" must be private or protected by design.', $property->getName(), static::class, ));
290
+                throw new LogicException(sprintf('Property "%s" of class "%s" must be private or protected by design.', $property->getName(), static::class,));
291 291
             }
292 292
 
293 293
             if (!$property->isStatic()) {
294
-                throw new LogicException(sprintf('Property "%s" of class "%s" must be static by design.', $property->getName(), static::class, ));
294
+                throw new LogicException(sprintf('Property "%s" of class "%s" must be static by design.', $property->getName(), static::class,));
295 295
             }
296 296
 
297 297
             if (array_values($constants) !== array_keys($property->getValue())) {
Please login to merge, or discard this patch.