Completed
Pull Request — dev (#9)
by Arnaud
02:46
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.
Admin/Action.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      * Return action configuration resolver
107 107
      *
108 108
      * @param OptionsResolver $resolver
109
-     * @param $actionName
109
+     * @param string $actionName
110 110
      * @param Admin|null $admin
111 111
      */
112 112
     protected function configureOptionsResolver(OptionsResolver $resolver, $actionName, Admin $admin = null)
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.
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.
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.
Admin/Factory/AdminFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
 
268 268
             if (!($repository instanceof RepositoryInterface)) {
269 269
                 $repositoryClass = get_class($repository);
270
-                throw new Exception("Repository {$repositoryClass} should implements " . RepositoryInterface::class);
270
+                throw new Exception("Repository {$repositoryClass} should implements ".RepositoryInterface::class);
271 271
             }
272 272
 
273 273
             $dataProvider = new DataProvider($repository);
Please login to merge, or discard this patch.
Field/Field/StringField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
         // truncate string if required
38 38
         if ($maximumStringLength && strlen($value) > $maximumStringLength) {
39
-            $value = substr($value, 0, $maximumStringLength) . $replaceString;
39
+            $value = substr($value, 0, $maximumStringLength).$replaceString;
40 40
         }
41 41
 
42 42
         return $value;
Please login to merge, or discard this patch.