@@ -24,8 +24,8 @@ |
||
24 | 24 | { |
25 | 25 | return |
26 | 26 | (is_object($value) ? spl_object_hash($value) |
27 | - : (is_array($value) ? implode($value) |
|
28 | - : ( (string)$value))); |
|
27 | + : (is_array($value) ? implode($value) |
|
28 | + : ((string)$value))); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | public function key() |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | case T_NAMESPACE: |
61 | 61 | $ns = new NamespaceBlock($classname); |
62 | 62 | $currentNS = new RawPropertyAccessor($ns); |
63 | - $this->accessor->getRawValue |
|
64 | - ( |
|
63 | + $this->accessor->getRawValue( |
|
65 | 64 | 'namespaces' |
66 | 65 | ) |
67 | 66 | ->add($classname, $ns); |
@@ -76,8 +75,7 @@ discard block |
||
76 | 75 | $as = end($as); |
77 | 76 | } |
78 | 77 | |
79 | - $currentNS->getRawValue |
|
80 | - ( |
|
78 | + $currentNS->getRawValue( |
|
81 | 79 | 'useStatements' |
82 | 80 | ) |
83 | 81 | ->add($as, new UseStatement($classname, $as)); |
@@ -21,8 +21,7 @@ discard block |
||
21 | 21 | (new ReflectionFileFactory($this->reflector->getFileName())) |
22 | 22 | ->build(); |
23 | 23 | $this->accessor->setRawValue('file', $file); |
24 | - $this->accessor->setRawValue |
|
25 | - ( |
|
24 | + $this->accessor->setRawValue( |
|
26 | 25 | 'namespace', |
27 | 26 | $file->namespaces[$this->reflector->getNamespaceName()] |
28 | 27 | ); |
@@ -48,12 +47,10 @@ discard block |
||
48 | 47 | |
49 | 48 | protected function buildProperty($reflect) |
50 | 49 | { |
51 | - $this->accessor->rawAddToValue |
|
52 | - ( |
|
50 | + $this->accessor->rawAddToValue( |
|
53 | 51 | 'properties', |
54 | 52 | (new ReflectionPropertyFactory($reflect)) |
55 | - ->build |
|
56 | - ( |
|
53 | + ->build( |
|
57 | 54 | $this->object, |
58 | 55 | $this->reflector |
59 | 56 | ->getDefaultProperties()[$reflect->getName()] |
@@ -63,8 +60,7 @@ discard block |
||
63 | 60 | |
64 | 61 | protected function buildMethod($reflect) |
65 | 62 | { |
66 | - $this->accessor->rawAddToValue |
|
67 | - ( |
|
63 | + $this->accessor->rawAddToValue( |
|
68 | 64 | 'methods', |
69 | 65 | (new ReflectionMethodFactory($reflect)) |
70 | 66 | ->build($this->object) |