@@ -50,7 +50,7 @@ |
||
50 | 50 | public function render($value) |
51 | 51 | { |
52 | 52 | if ($this->length && strlen($value) > $this->length) { |
53 | - $value = substr($value, 0, $this->length).$this->replace; |
|
53 | + $value = substr($value, 0, $this->length) . $this->replace; |
|
54 | 54 | } |
55 | 55 | if ($this->translation) { |
56 | 56 | $value = $this->translator->trans($value); |
@@ -194,7 +194,7 @@ |
||
194 | 194 | $hooks = []; |
195 | 195 | |
196 | 196 | foreach ($fields as $fieldName) { |
197 | - $exporter->addHook(function ($fieldValue) { |
|
197 | + $exporter->addHook(function($fieldValue) { |
|
198 | 198 | // if field is an array |
199 | 199 | if (is_array($fieldValue)) { |
200 | 200 | $value = $this->recursiveImplode(', ', $fieldValue); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | // foreach tagged, with add this field type to the field factory |
26 | 26 | foreach ($taggedServices as $id => $tags) { |
27 | 27 | if (empty($tags[0]['type'])) { |
28 | - throw new InvalidConfigurationException('You should defined a "type" attribute for field tag for service '.$id); |
|
28 | + throw new InvalidConfigurationException('You should defined a "type" attribute for field tag for service ' . $id); |
|
29 | 29 | } |
30 | 30 | // add allowed field type to the field factory |
31 | 31 | $definition->addMethodCall('addFieldMapping', [ |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $configuration = new Configuration(); |
23 | 23 | $config = $this->processConfiguration($configuration, $configs); |
24 | 24 | |
25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
26 | 26 | $loader->load('services.yml'); |
27 | 27 | |
28 | 28 | $container->setParameter('bluebear.admins', $config['admins']); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | } |
35 | 35 | // check if they exists in entities displayed and if checkbox is checked |
36 | 36 | foreach ($batchItems as $name => $batchItem) { |
37 | - $batchId = (int)str_replace('batch_', '', $name); |
|
37 | + $batchId = (int) str_replace('batch_', '', $name); |
|
38 | 38 | |
39 | 39 | if (array_key_exists($batchId, $cleanData['labels']) && $batchItem === true) { |
40 | 40 | $cleanData['ids'][] = $batchId; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ] |
33 | 33 | ]) |
34 | 34 | ; |
35 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
35 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
36 | 36 | $data = $event->getData(); |
37 | 37 | $form = $event->getForm(); |
38 | 38 |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $path = str_replace('{action}', $action->getName(), $path); |
94 | 94 | // by default, generic controller |
95 | 95 | $defaults = [ |
96 | - '_controller' => $admin->getConfiguration()->getControllerName().':'.$action->getName(), |
|
96 | + '_controller' => $admin->getConfiguration()->getControllerName() . ':' . $action->getName(), |
|
97 | 97 | '_admin' => $admin->getName(), |
98 | 98 | '_action' => $action->getName(), |
99 | 99 | ]; |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | { |
136 | 136 | $array = explode('\\', $namespace); |
137 | 137 | $path = array_pop($array); |
138 | - $path = strtolower(substr($path, 0, 1)).substr($path, 1); |
|
138 | + $path = strtolower(substr($path, 0, 1)) . substr($path, 1); |
|
139 | 139 | |
140 | 140 | return $path; |
141 | 141 | } |
@@ -81,7 +81,7 @@ |
||
81 | 81 | // test with no configuration |
82 | 82 | $adminFactory = $this->mockAdminFactory(); |
83 | 83 | // unknow admin not exists, it should throw an exception |
84 | - $this->assertExceptionRaised('Exception', function () use ($adminFactory) { |
|
84 | + $this->assertExceptionRaised('Exception', function() use ($adminFactory) { |
|
85 | 85 | $adminFactory->getAdmin('unknown_admin'); |
86 | 86 | }); |
87 | 87 | // test with configurations samples |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function registerContainerConfiguration(LoaderInterface $loader) |
24 | 24 | { |
25 | - $loader->load(__DIR__.'/config/config_test.yml'); |
|
25 | + $loader->load(__DIR__ . '/config/config_test.yml'); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function getCacheDir() |
32 | 32 | { |
33 | - $cacheDir = sys_get_temp_dir().'/phpunit/cache'; |
|
33 | + $cacheDir = sys_get_temp_dir() . '/phpunit/cache'; |
|
34 | 34 | |
35 | 35 | if (!is_dir($cacheDir)) { |
36 | 36 | mkdir($cacheDir, 0777, true); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function getLogDir() |
46 | 46 | { |
47 | - $logDir = sys_get_temp_dir().'/phpunit/logs'; |
|
47 | + $logDir = sys_get_temp_dir() . '/phpunit/logs'; |
|
48 | 48 | |
49 | 49 | if (!is_dir($logDir)) { |
50 | 50 | mkdir($logDir, 0777, true); |