@@ -110,8 +110,7 @@ |
||
110 | 110 | $prop->setAccessible(true); |
111 | 111 | |
112 | 112 | return $prop; |
113 | - } |
|
114 | - catch (ReflectionException $e) |
|
113 | + } catch (ReflectionException $e) |
|
115 | 114 | { |
116 | 115 | throw new $class |
117 | 116 | ( |
@@ -93,8 +93,7 @@ discard block |
||
93 | 93 | { |
94 | 94 | $as .= $token[1]; |
95 | 95 | } |
96 | - } |
|
97 | - elseif ($matching) |
|
96 | + } elseif ($matching) |
|
98 | 97 | { |
99 | 98 | switch ($token[0]) |
100 | 99 | { |
@@ -105,8 +104,7 @@ discard block |
||
105 | 104 | case T_AS: |
106 | 105 | $matching = T_AS; |
107 | 106 | } |
108 | - } |
|
109 | - else |
|
107 | + } else |
|
110 | 108 | { |
111 | 109 | switch ($token[0]) |
112 | 110 | { |
@@ -12,8 +12,7 @@ discard block |
||
12 | 12 | if ($property->writable) |
13 | 13 | { |
14 | 14 | parent::setAnyValue($property, $value); |
15 | - } |
|
16 | - else |
|
15 | + } else |
|
17 | 16 | { |
18 | 17 | throw new PropertyNotWritableException |
19 | 18 | ( |
@@ -32,8 +31,7 @@ discard block |
||
32 | 31 | get_class($this->object), |
33 | 32 | $property |
34 | 33 | ); |
35 | - } |
|
36 | - elseif (!$this->reflect->properties[$property]->readable) |
|
34 | + } elseif (!$this->reflect->properties[$property]->readable) |
|
37 | 35 | { |
38 | 36 | throw new PropertyNotReadableException |
39 | 37 | ( |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * Builds the ReflectionProperty from the provided parameters, |
75 | 75 | * linking to a parent ReflectionComposite |
76 | 76 | * |
77 | - * @param ReflectionCompostite $parent The reflector for the class |
|
77 | + * @param ReflectionComposite $parent The reflector for the class |
|
78 | 78 | * this property belongs to |
79 | 79 | * @param mixed $default This property's default value |
80 | 80 | * @return ReflectionProperty |
@@ -130,7 +130,7 @@ |
||
130 | 130 | * |
131 | 131 | * @param string $name |
132 | 132 | * @param bool $checkFile |
133 | - * @param string $singular |
|
133 | + * @param string $signular |
|
134 | 134 | */ |
135 | 135 | protected function addItems |
136 | 136 | ( |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Checks if the given class is equal to this one |
27 | 27 | * |
28 | - * @param Type $oject |
|
28 | + * @param Type $object |
|
29 | 29 | * @return boolean |
30 | 30 | */ |
31 | 31 | public function equals($object) : bool; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Creates this ObjectType with the given classname |
45 | 45 | * |
46 | - * @param mixed $class The name of the class this must be an |
|
46 | + * @param string $classname The name of the class this must be an |
|
47 | 47 | * instance of |
48 | 48 | */ |
49 | 49 | public function __construct($classname) |
@@ -46,8 +46,7 @@ |
||
46 | 46 | if (!$matches) |
47 | 47 | { |
48 | 48 | $this->classname = $classname; |
49 | - } |
|
50 | - else |
|
49 | + } else |
|
51 | 50 | { |
52 | 51 | $this->classname = $matches[2]; |
53 | 52 | $this->namespace = $matches[1]; |
@@ -46,12 +46,10 @@ |
||
46 | 46 | ) |
47 | 47 | { |
48 | 48 | return true; |
49 | - } |
|
50 | - elseif ($parent instanceof ScalarType) |
|
49 | + } elseif ($parent instanceof ScalarType) |
|
51 | 50 | { |
52 | 51 | return get_class($parent) === get_class($child); |
53 | - } |
|
54 | - elseif ($parent instanceof ObjectType) |
|
52 | + } elseif ($parent instanceof ObjectType) |
|
55 | 53 | { |
56 | 54 | if |
57 | 55 | ( |