@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | $this->has('sampleService.sampleMethod')->shouldBe(false); |
18 | 18 | |
19 | - $this->add('sampleService.sampleMethod', function () {}); |
|
19 | + $this->add('sampleService.sampleMethod', function() {}); |
|
20 | 20 | |
21 | 21 | $this->get('sampleService.sampleMethod')->shouldBeAnInstanceOf(\Closure::class); |
22 | 22 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | $methodDispatcher |
74 | 74 | ->dispatch('calculator.calculateProfit', ['month' => 'January']) |
75 | - ->will(function () { |
|
75 | + ->will(function() { |
|
76 | 76 | throw new Exception("test", 32); |
77 | 77 | }) |
78 | 78 | ; |
@@ -15,7 +15,7 @@ |
||
15 | 15 | return new Generator( |
16 | 16 | new MetadataExtractor(new TypeResolver(new PhpParser())), |
17 | 17 | new \Twig_Environment(new \Twig_Loader_Filesystem([ |
18 | - __DIR__.'/Resources', |
|
18 | + __DIR__ . '/Resources', |
|
19 | 19 | ])) |
20 | 20 | ); |
21 | 21 | } |
@@ -81,11 +81,11 @@ |
||
81 | 81 | $parameter = [ |
82 | 82 | 'name' => $reflectionProperty->getName(), |
83 | 83 | 'description' => $docBlock->getShortDescription(), |
84 | - 'type' => $type.($isCollection ? '[]' : ''), |
|
84 | + 'type' => $type . ($isCollection ? '[]' : ''), |
|
85 | 85 | ]; |
86 | 86 | if (class_exists($type)) { |
87 | 87 | $parameter = array_merge($parameter, [ |
88 | - 'type' => 'object'.($isCollection ? '[]' : ''), |
|
88 | + 'type' => 'object' . ($isCollection ? '[]' : ''), |
|
89 | 89 | 'properties' => $this->extractParameters($type, $processed), |
90 | 90 | ]); |
91 | 91 | } |
@@ -35,6 +35,6 @@ |
||
35 | 35 | { |
36 | 36 | public function invokableMethod($argument) |
37 | 37 | { |
38 | - return 'some result'.$argument; |
|
38 | + return 'some result' . $argument; |
|
39 | 39 | } |
40 | 40 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | $methodCollection = $this->getMethodCollection(); |
74 | 74 | |
75 | 75 | $callable = $methodCollection->get($methodName); |
76 | - if (! is_callable($callable)) { |
|
76 | + if (!is_callable($callable)) { |
|
77 | 77 | throw new MethodNotFoundException(sprintf('Method "%s" is not found', $methodName)); |
78 | 78 | } |
79 | 79 |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $type = $this->resolveClassName($type, $reflector->getDeclaringClass()); |
72 | 72 | } |
73 | 73 | |
74 | - return $type.($isCollection ? '[]' : ''); |
|
74 | + return $type . ($isCollection ? '[]' : ''); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $alias = strtolower($type); |
118 | 118 | |
119 | 119 | if (!isset($aliases[$alias])) { |
120 | - return $usingClass->getNamespaceName().'\\'.$type; |
|
120 | + return $usingClass->getNamespaceName() . '\\' . $type; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | return $aliases[$alias]; |