@@ -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; |
@@ -106,7 +106,7 @@ |
||
| 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) |
@@ -42,7 +42,7 @@ |
||
| 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 |
@@ -115,7 +115,7 @@ |
||
| 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); |
@@ -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', [ |
@@ -23,7 +23,7 @@ |
||
| 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)) { |
@@ -218,7 +218,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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)) { |
@@ -267,7 +267,7 @@ |
||
| 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); |
@@ -36,7 +36,7 @@ |
||
| 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; |