@@ -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 | * |
@@ -43,14 +43,14 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function create(Schema $schema, ProcessorBuilder $builder) |
| 45 | 45 | { |
| 46 | - if(!$schema instanceof ScalarSchema){ |
|
| 46 | + if (!$schema instanceof ScalarSchema) { |
|
| 47 | 47 | return null; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if (!isset(self::$primitiveMap[$schema->getType()])) { |
|
| 50 | + if (!isset(self::$primitiveMap[ $schema->getType() ])) { |
|
| 51 | 51 | return null; |
| 52 | 52 | } |
| 53 | - $className = self::$primitiveMap[$schema->getType()]; |
|
| 53 | + $className = self::$primitiveMap[ $schema->getType() ]; |
|
| 54 | 54 | |
| 55 | 55 | return $hydrator = new $className($schema); |
| 56 | 56 | } |
@@ -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 | * |
@@ -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 | * |
@@ -47,12 +47,12 @@ discard block |
||
| 47 | 47 | public function hydrate($value) |
| 48 | 48 | { |
| 49 | 49 | if ($value === null) { |
| 50 | - if(null == ($value = $this->schema->getDefault())){ |
|
| 50 | + if (null == ($value = $this->schema->getDefault())) { |
|
| 51 | 51 | return null; |
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return array_map(function ($value) { |
|
| 55 | + return array_map(function($value) { |
|
| 56 | 56 | return $this->itemsProcessor->hydrate($value); |
| 57 | 57 | }, $value); |
| 58 | 58 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function dehydrate($value) |
| 65 | 65 | { |
| 66 | - return array_map(function ($value) { |
|
| 66 | + return array_map(function($value) { |
|
| 67 | 67 | return $this->itemsProcessor->dehydrate($value); |
| 68 | 68 | }, $value); |
| 69 | 69 | } |
@@ -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 | * |