| @@ -157,7 +157,7 @@ discard block | ||
| 157 | 157 | Admin::LOAD_STRATEGY_UNIQUE, | 
| 158 | 158 | Admin::LOAD_STRATEGY_MULTIPLE, | 
| 159 | 159 | ]) | 
| 160 | -            ->setNormalizer('route', function (Options $options, $value) use ($admin, $actionName) { | |
| 160 | +            ->setNormalizer('route', function(Options $options, $value) use ($admin, $actionName) { | |
| 161 | 161 |                  if (!$value) { | 
| 162 | 162 | // if no route was provided, it should be linked to an Admin | 
| 163 | 163 |                      if (!$admin) { | 
| @@ -168,7 +168,7 @@ discard block | ||
| 168 | 168 | } | 
| 169 | 169 | return $value; | 
| 170 | 170 | }) | 
| 171 | -            ->setNormalizer('title', function (Options $options, $value) use ($admin, $actionName) { | |
| 171 | +            ->setNormalizer('title', function(Options $options, $value) use ($admin, $actionName) { | |
| 172 | 172 |                  if (!$value) { | 
| 173 | 173 | $adminKey = ''; | 
| 174 | 174 | // if an Admin is linked to this action, we use its name in translation key | 
| @@ -179,7 +179,7 @@ discard block | ||
| 179 | 179 | } | 
| 180 | 180 | return $value; | 
| 181 | 181 | }) | 
| 182 | -            ->setNormalizer('batch', function (Options $options, $value) use ($admin, $actionName) { | |
| 182 | +            ->setNormalizer('batch', function(Options $options, $value) use ($admin, $actionName) { | |
| 183 | 183 |                  if ($value) { | 
| 184 | 184 |                      if (!is_array($value)) { | 
| 185 | 185 | $value = [$value]; | 
| @@ -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; | 
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | public function render($value) | 
| 28 | 28 |      { | 
| 29 | 29 |          if (!is_array($value) && !($value instanceof Traversable)) { | 
| 30 | -            throw new Exception('Value should be an array instead of '.gettype($value)); | |
| 30 | +            throw new Exception('Value should be an array instead of ' . gettype($value)); | |
| 31 | 31 | } | 
| 32 | 32 |          if ($value instanceof Collection) { | 
| 33 | 33 | $value = $value->toArray(); | 
| @@ -83,7 +83,7 @@ | ||
| 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 | } | 
| @@ -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; |