@@ -73,8 +73,7 @@ |
||
73 | 73 | } |
74 | 74 | else |
75 | 75 | { |
76 | - throw new DomainException |
|
77 | - ( |
|
76 | + throw new DomainException( |
|
78 | 77 | 'The given IteratorAggregate\'s ' . |
79 | 78 | 'getIterator() method should return an ' . |
80 | 79 | 'Iterator or IteratorAggregate, but it did not' |
@@ -45,8 +45,7 @@ |
||
45 | 45 | /** |
46 | 46 | * {@inheritDoc} |
47 | 47 | */ |
48 | - public function splice |
|
49 | - ( |
|
48 | + public function splice( |
|
50 | 49 | int $offset, |
51 | 50 | ?int $length = null, |
52 | 51 | array $replacement = [] |
@@ -32,15 +32,13 @@ discard block |
||
32 | 32 | * @param AbstractType $child |
33 | 33 | * @return boolean |
34 | 34 | */ |
35 | - public function compatible |
|
36 | - ( |
|
35 | + public function compatible( |
|
37 | 36 | AbstractType $parent, |
38 | 37 | AbstractType $child |
39 | 38 | ) |
40 | 39 | : bool |
41 | 40 | { |
42 | - if |
|
43 | - ( |
|
41 | + if ( |
|
44 | 42 | ($child instanceof NullType && $parent->nullable) || |
45 | 43 | ($parent instanceof MixedType) |
46 | 44 | ) |
@@ -53,11 +51,9 @@ discard block |
||
53 | 51 | } |
54 | 52 | elseif ($parent instanceof ObjectType) |
55 | 53 | { |
56 | - if |
|
57 | - ( |
|
54 | + if ( |
|
58 | 55 | $child instanceof ObjectType && |
59 | - is_a |
|
60 | - ( |
|
56 | + is_a( |
|
61 | 57 | $child->classname->__toString(), |
62 | 58 | $parent->classname->__toString(), |
63 | 59 | true |
@@ -70,8 +66,7 @@ discard block |
||
70 | 66 | return false; |
71 | 67 | } |
72 | 68 | |
73 | - throw new \DomainException |
|
74 | - ( |
|
69 | + throw new \DomainException( |
|
75 | 70 | 'Unknown type: ' . get_class($parent) |
76 | 71 | ); |
77 | 72 | } |
@@ -146,7 +146,7 @@ |
||
146 | 146 | } |
147 | 147 | elseif ($i + 2 !== strlen($value)) |
148 | 148 | { |
149 | - if (!in_array($value{$i + 2}, ['>',','])) |
|
149 | + if (!in_array($value{$i + 2}, ['>', ','])) |
|
150 | 150 | { |
151 | 151 | throw new \Exception('Unexpected char after collection'); |
152 | 152 | } |