@@ -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 | ); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | ->method('populate') |
| 99 | 99 | ->will( |
| 100 | 100 | $this->returnCallback( |
| 101 | - function () use ($provider) { |
|
| 101 | + function() use ($provider) { |
|
| 102 | 102 | $provider->index( |
| 103 | 103 | 'my_id', |
| 104 | 104 | ['foo' => 'bar'] |
@@ -145,8 +145,8 @@ discard block |
||
| 145 | 145 | ->method('populate') |
| 146 | 146 | ->will( |
| 147 | 147 | $this->returnCallback( |
| 148 | - function () use ($provider) { |
|
| 149 | - for($i = 0; $i < 150; $i++) { |
|
| 148 | + function() use ($provider) { |
|
| 149 | + for ($i = 0; $i < 150; $i++) { |
|
| 150 | 150 | $provider->index( |
| 151 | 151 | 'my_id', |
| 152 | 152 | ['foo' => 'bar'] |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | ->method('populate') |
| 196 | 196 | ->will( |
| 197 | 197 | $this->returnCallback( |
| 198 | - function () use ($provider) { |
|
| 198 | + function() use ($provider) { |
|
| 199 | 199 | $provider->delete('my_id'); |
| 200 | 200 | } |
| 201 | 201 | ) |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | ->method('populate') |
| 237 | 237 | ->will( |
| 238 | 238 | $this->returnCallback( |
| 239 | - function () use ($provider) { |
|
| 239 | + function() use ($provider) { |
|
| 240 | 240 | $provider->create('my_id', ['foo' => 'bar']); |
| 241 | 241 | } |
| 242 | 242 | ) |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | ->method('populate') |
| 278 | 278 | ->will( |
| 279 | 279 | $this->returnCallback( |
| 280 | - function () use ($provider) { |
|
| 280 | + function() use ($provider) { |
|
| 281 | 281 | $provider->update('my_id', ['foo' => 'bar']); |
| 282 | 282 | } |
| 283 | 283 | ) |