@@ -21,14 +21,14 @@ |
||
21 | 21 | |
22 | 22 | public function __construct($values = [], $name = null) |
23 | 23 | { |
24 | - if ((null !== $name) && !is_string($name) && !(is_object($name) && method_exists($name, '__toString'))) { |
|
24 | + if ((null !== $name) && ! is_string($name) && ! (is_object($name) && method_exists($name, '__toString'))) { |
|
25 | 25 | throw new \RuntimeException( |
26 | 26 | 'Type must be either string, null or object implements __toString() method.' |
27 | 27 | ); |
28 | 28 | } |
29 | 29 | |
30 | 30 | if (is_object($name)) { |
31 | - $name = (string)$name; |
|
31 | + $name = (string) $name; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | $this->loadAnnotationParameters(get_defined_vars()); |