@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | public function before() |
38 | 38 | { |
39 | 39 | $definitions = []; |
40 | - for($i = 0; $i < 1000; $i++) { |
|
40 | + for ($i = 0; $i < 1000; $i++) { |
|
41 | 41 | $this->indexes[] = $i; |
42 | 42 | $definitions["service$i"] = Reference::to('service'); |
43 | 43 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | public function benchConstructStupid() |
51 | 51 | { |
52 | 52 | $container = new Container(); |
53 | - for($i = 0; $i < 1000; $i++) { |
|
53 | + for ($i = 0; $i < 1000; $i++) { |
|
54 | 54 | $container->set("service$i", PropertyTestClass::class); |
55 | 55 | } |
56 | 56 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function benchConstructSmart() |
62 | 62 | { |
63 | 63 | $definitions = []; |
64 | - for($i = 0; $i < 1000; $i++) { |
|
64 | + for ($i = 0; $i < 1000; $i++) { |
|
65 | 65 | $definitions["service$i"] = PropertyTestClass::class; |
66 | 66 | } |
67 | 67 | $container = new Container($definitions); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | if (isset($params['otherDefinitions'])) { |
77 | 77 | $this->container->setAll($params['otherDefinitions']); |
78 | 78 | } |
79 | - for($i = 0; $i < 1000; $i++) { |
|
79 | + for ($i = 0; $i < 1000; $i++) { |
|
80 | 80 | // Do array lookup. |
81 | 81 | $index = $this->indexes[$i]; |
82 | 82 | $this->container->get("service$i"); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | if (isset($params['otherDefinitions'])) { |
93 | 93 | $this->container->setAll($params['otherDefinitions']); |
94 | 94 | } |
95 | - for($i = 0; $i < 1000; $i++) { |
|
95 | + for ($i = 0; $i < 1000; $i++) { |
|
96 | 96 | // Do array lookup. |
97 | 97 | $index = $this->indexes[$i]; |
98 | 98 | $this->container->get("service$index"); |
@@ -199,7 +199,7 @@ |
||
199 | 199 | { |
200 | 200 | $container = new Container(); |
201 | 201 | $container->set('engine', EngineMarkOne::class); |
202 | - $container->set('test', function (ContainerInterface $container) { |
|
202 | + $container->set('test', function(ContainerInterface $container) { |
|
203 | 203 | return $container->get('engine'); |
204 | 204 | }); |
205 | 205 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | EngineInterface::class => EngineMarkTwo::class, |
23 | 23 | ]); |
24 | 24 | |
25 | - $getEngineName = function (EngineInterface $engine) { |
|
25 | + $getEngineName = function(EngineInterface $engine) { |
|
26 | 26 | return $engine->getName(); |
27 | 27 | }; |
28 | 28 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | EngineInterface::class => EngineMarkTwo::class, |
39 | 39 | ]); |
40 | 40 | |
41 | - $getEngineName = function (EngineInterface $engine, $two) { |
|
41 | + $getEngineName = function(EngineInterface $engine, $two) { |
|
42 | 42 | return $engine->getName(); |
43 | 43 | }; |
44 | 44 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | EngineInterface::class => EngineMarkTwo::class, |
55 | 55 | ]); |
56 | 56 | |
57 | - $getEngineName = function (EngineInterface $engine, ColorInterface $color) { |
|
57 | + $getEngineName = function(EngineInterface $engine, ColorInterface $color) { |
|
58 | 58 | return $engine->getName(); |
59 | 59 | }; |
60 | 60 |