Completed
Push — 0.3-dev ( 291149...449c2f )
by Arnaud
14:26
created
Admin/Admin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@
 block discarded – undo
358 358
     }
359 359
 
360 360
     /**
361
-     * @return array
361
+     * @return integer[]
362 362
      */
363 363
     public function getActionNames()
364 364
     {
Please login to merge, or discard this patch.
Admin/Configuration/ApplicationConfiguration.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * ApplicationConfiguration constructor.
119 119
      *
120 120
      * @param array $applicationConfiguration
121
-     * @param $locale
121
+     * @param string $locale
122 122
      */
123 123
     public function __construct(array $applicationConfiguration = [], $locale)
124 124
     {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     }
224 224
 
225 225
     /**
226
-     * @return mixed
226
+     * @return string
227 227
      */
228 228
     public function getTitle()
229 229
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     }
240 240
 
241 241
     /**
242
-     * @return mixed
242
+     * @return string
243 243
      */
244 244
     public function getLayout()
245 245
     {
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     }
256 256
 
257 257
     /**
258
-     * @return mixed
258
+     * @return string
259 259
      */
260 260
     public function getBlockTemplate()
261 261
     {
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     }
272 272
 
273 273
     /**
274
-     * @return mixed
274
+     * @return string
275 275
      */
276 276
     public function getDescription()
277 277
     {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     }
304 304
 
305 305
     /**
306
-     * @return mixed
306
+     * @return string
307 307
      */
308 308
     public function getDateFormat()
309 309
     {
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     }
398 398
 
399 399
     /**
400
-     * @return mixed
400
+     * @return integer
401 401
      */
402 402
     public function getStringLengthTruncate()
403 403
     {
Please login to merge, or discard this patch.
Twig/AdminExtension.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Controller/CRUDController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
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
@@ -83,7 +83,7 @@
 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.
Tests/AdminBundle/Field/ArrayFieldTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.