@@ -73,7 +73,7 @@ |
||
73 | 73 | { |
74 | 74 | if ($this->isTagIncorrect($tag)) { |
75 | 75 | throw new \InvalidArgumentException( |
76 | - sprintf('DataProvider "%s" must specify the "index"'. |
|
76 | + sprintf('DataProvider "%s" must specify the "index"' . |
|
77 | 77 | ' and "type" attribute.', |
78 | 78 | $providerId |
79 | 79 | ) |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | $loader = new Loader\YamlFileLoader( |
26 | 26 | $container, |
27 | - new FileLocator(__DIR__.'/../Resources/config') |
|
27 | + new FileLocator(__DIR__ . '/../Resources/config') |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | $loader->load('services.yml'); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $entries = $this->registry->get($index, $type); |
33 | 33 | |
34 | - foreach($entries as $entry) { |
|
34 | + foreach ($entries as $entry) { |
|
35 | 35 | $entry->getProvider()->run( |
36 | 36 | $client, |
37 | 37 | $entry->getIndex(), |
@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | return array_filter( |
40 | 40 | $this->entries, |
41 | - function ($entry) use ($index, $type) { |
|
41 | + function($entry) use ($index, $type) { |
|
42 | 42 | return $entry->match($index, $type); |
43 | 43 | } |
44 | 44 | ); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | public function setUp() |
30 | 30 | { |
31 | 31 | $this->dispatcher = $this->getMock(EventDispatcherInterface::class); |
32 | - $this->consoleOutput = $this->getMock(OutputInterface::class); |
|
32 | + $this->consoleOutput = $this->getMock(OutputInterface::class); |
|
33 | 33 | |
34 | 34 | $this->testedInstance = new ProvidingProgressBar( |
35 | 35 | $this->dispatcher, |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | ->method('populate') |
102 | 102 | ->will( |
103 | 103 | $this->returnCallback( |
104 | - function () use ($provider) { |
|
104 | + function() use ($provider) { |
|
105 | 105 | $provider->index( |
106 | 106 | 'my_id', |
107 | 107 | ['foo' => 'bar'] |
@@ -148,8 +148,8 @@ discard block |
||
148 | 148 | ->method('populate') |
149 | 149 | ->will( |
150 | 150 | $this->returnCallback( |
151 | - function () use ($provider) { |
|
152 | - for($i = 0; $i < 150; $i++) { |
|
151 | + function() use ($provider) { |
|
152 | + for ($i = 0; $i < 150; $i++) { |
|
153 | 153 | $provider->index( |
154 | 154 | 'my_id', |
155 | 155 | ['foo' => 'bar'] |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | ->method('populate') |
211 | 211 | ->will( |
212 | 212 | $this->returnCallback( |
213 | - function () use ($provider, $method, $id, $content) { |
|
213 | + function() use ($provider, $method, $id, $content) { |
|
214 | 214 | $provider->{$method}($id, $content); |
215 | 215 | } |
216 | 216 | ) |