Completed
Push — dev ( 3cfc62...c1e13a )
by Arnaud
02:56
created
Form/Handler/ListFormHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Form/Type/AdminListType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
                 if (!empty($data['entities'])) {
43 43
                     /** @var Id $entity */
44 44
                     foreach ($data['entities'] as $entity) {
45
-                        $form->add('batch_' . $entity->getId(), CheckboxType::class, [
45
+                        $form->add('batch_'.$entity->getId(), CheckboxType::class, [
46 46
                             'value' => $entity->getId(),
47 47
                             'label' => false,
48 48
                             'required' => false
Please login to merge, or discard this patch.
Routing/RoutingLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Field/Field/StringField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             $value = $this->translator->trans($value);
55 55
         }
56 56
         if ($this->length && strlen($value) > $this->length) {
57
-            $value = substr($value, 0, $this->length) . $this->replace;
57
+            $value = substr($value, 0, $this->length).$this->replace;
58 58
         }
59 59
 
60 60
         return $value;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function setOptions(array $options)
85 85
     {
86
-        $this->length = (int)$options['length'];
86
+        $this->length = (int) $options['length'];
87 87
         $this->replace = $options['replace'];
88 88
         $this->translation = $options['translation'];
89 89
     }
Please login to merge, or discard this patch.
Field/Factory/FieldFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         $field = new $fieldClass();
116 116
 
117 117
         if (!($field instanceof FieldInterface)) {
118
-            throw new Exception("Field class {$fieldClass} must implements " . FieldInterface::class);
118
+            throw new Exception("Field class {$fieldClass} must implements ".FieldInterface::class);
119 119
         }
120 120
         $field->setName($fieldName);
121 121
         $field->setConfiguration($this->configuration);
Please login to merge, or discard this patch.
Controller/CRUDController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@
 block discarded – undo
270 270
         }
271 271
         $exporter
272 272
             ->setOptions($exportType, [
273
-                'fileName' => $admin->getName() . '-export-' . date('Y-m-d'),
273
+                'fileName' => $admin->getName().'-export-'.date('Y-m-d'),
274 274
             ])
275 275
             ->setColumns($exportColumns)
276 276
             ->setData($admin->getEntities());
Please login to merge, or discard this patch.
DependencyInjection/FieldCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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', [
Please login to merge, or discard this patch.
DependencyInjection/LAGAdminExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $configuration = new Configuration();
24 24
         $config = $this->processConfiguration($configuration, $configs);
25 25
 
26
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
26
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
27 27
         $loader->load('services.yml');
28 28
 
29 29
         if (!array_key_exists('application', $config)) {
Please login to merge, or discard this patch.
Admin/Admin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             // inform user everything went fine
219 219
             $this
220 220
                 ->messageHandler
221
-                ->handleSuccess('lag.admin.' . $this->name . '.saved');
221
+                ->handleSuccess('lag.admin.'.$this->name.'.saved');
222 222
             $success = true;
223 223
         } catch (Exception $e) {
224 224
             $this
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             // inform user everything went fine
249 249
             $this
250 250
                 ->messageHandler
251
-                ->handleSuccess('lag.admin.' . $this->name . '.deleted');
251
+                ->handleSuccess('lag.admin.'.$this->name.'.deleted');
252 252
             $success = true;
253 253
         } catch (Exception $e) {
254 254
             $this
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
                 ->findBy($criteria, $orderBy, $limit, $offset);
320 320
         }
321 321
         if (!is_array($entities) && !($entities instanceof Collection)) {
322
-            throw new Exception('The data provider should return either a collection or an array. Got ' . gettype($entities) . ' instead');
322
+            throw new Exception('The data provider should return either a collection or an array. Got '.gettype($entities).' instead');
323 323
         }
324 324
 
325 325
         if (is_array($entities)) {
Please login to merge, or discard this patch.