@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -18,12 +18,12 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * @var array |
| 20 | 20 | */ |
| 21 | - protected $resourceNamespaces = []; |
|
| 21 | + protected $resourceNamespaces = [ ]; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @var array |
| 25 | 25 | */ |
| 26 | - protected $cache = []; |
|
| 26 | + protected $cache = [ ]; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * ClassNameResolver constructor. |
@@ -42,10 +42,10 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function resolve(string $typeName): string |
| 44 | 44 | { |
| 45 | - if (!isset($this->cache[$typeName])) { |
|
| 45 | + if (!isset($this->cache[ $typeName ])) { |
|
| 46 | 46 | foreach ($this->resourceNamespaces as $resourceNamespace) { |
| 47 | - if (class_exists($this->cache[$typeName] = $this->qualify($resourceNamespace, $typeName))) { |
|
| 48 | - return $this->cache[$typeName]; |
|
| 47 | + if (class_exists($this->cache[ $typeName ] = $this->qualify($resourceNamespace, $typeName))) { |
|
| 48 | + return $this->cache[ $typeName ]; |
|
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | ); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return $this->cache[$typeName]; |
|
| 61 | + return $this->cache[ $typeName ]; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function __construct(string ...$formats) |
| 43 | 43 | { |
| 44 | - if (isset($formats[0])) { |
|
| 45 | - $this->outputFormat = $formats[0]; |
|
| 44 | + if (isset($formats[ 0 ])) { |
|
| 45 | + $this->outputFormat = $formats[ 0 ]; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | $this->inputDateTimeFormats = $formats + $this->inputDateTimeFormats; |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Hydrator package. |
| 4 | 4 | * |