@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace LAG\AdminBundle\Twig; |
| 4 | 4 | |
| 5 | 5 | use LAG\AdminBundle\Admin\Configuration\ApplicationConfiguration; |
| 6 | -use LAG\AdminBundle\Field\Field; |
|
| 7 | 6 | use LAG\AdminBundle\Field\EntityFieldInterface; |
| 8 | 7 | use LAG\AdminBundle\Field\FieldInterface; |
| 9 | 8 | use Symfony\Component\DependencyInjection\Container; |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | $hooks = []; |
| 250 | 250 | |
| 251 | 251 | foreach ($fields as $fieldName) { |
| 252 | - $exporter->addHook(function ($fieldValue) { |
|
| 252 | + $exporter->addHook(function($fieldValue) { |
|
| 253 | 253 | // if field is an array |
| 254 | 254 | if (is_array($fieldValue)) { |
| 255 | 255 | $value = recursiveImplode(', ', $fieldValue); |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | $this->forward404Unless( |
| 295 | 295 | $admin->isActionGranted($admin->getCurrentAction()->getName(), $roles), |
| 296 | 296 | sprintf('User with roles %s not allowed for action "%s"', |
| 297 | - implode(', ', array_map(function (Role $role) { |
|
| 297 | + implode(', ', array_map(function(Role $role) { |
|
| 298 | 298 | return $role->getRole(); |
| 299 | 299 | }, $roles)), |
| 300 | 300 | $admin->getCurrentAction()->getName() |
@@ -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 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | public function testRender() |
| 12 | 12 | { |
| 13 | - $arrayField = new ArrayField (); |
|
| 13 | + $arrayField = new ArrayField(); |
|
| 14 | 14 | $arrayField->setOptions([ |
| 15 | 15 | 'glue' => ', ' |
| 16 | 16 | ]); |