@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 16.12.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 16.12.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\Tests\Type\Union\Schema; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 16.12.15 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 16.12.15 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\Tests\Type\Union\Schema; |
9 | 9 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function validateArguments($field, $query, $request) |
27 | 27 | { |
28 | - $requiredArguments = array_filter($field->getConfig()->getArguments(), function (InputField $argument) { |
|
28 | + $requiredArguments = array_filter($field->getConfig()->getArguments(), function(InputField $argument) { |
|
29 | 29 | return $argument->getConfig()->get('required'); |
30 | 30 | }); |
31 | 31 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | case TypeMap::KIND_INTERFACE: |
80 | 80 | return is_object($value) || is_null($value) || is_array($value); |
81 | 81 | case TypeMap::KIND_LIST: |
82 | - return is_null($value)|| is_array($value) || (is_object($value) && in_array('IteratorAggregate', class_implements($value))); |
|
82 | + return is_null($value) || is_array($value) || (is_object($value) && in_array('IteratorAggregate', class_implements($value))); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return false; |