Completed
Push — wip-platform ( 03cba6...2999ab )
by
unknown
05:53 queued 02:49
created
Controller/CRUDController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -291,6 +291,9 @@
 block discarded – undo
291 291
     {
292 292
     }
293 293
 
294
+    /**
295
+     * @param \Symfony\Component\Form\FormView $formView
296
+     */
294 297
     protected function defineFormTheme($formView, $formTheme)
295 298
     {
296 299
         $twig = $this->get('twig');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -296,8 +296,7 @@
 block discarded – undo
296 296
         $twig = $this->get('twig');
297 297
 
298 298
         $renderer = ($twig->hasExtension('Symfony\Bridge\Twig\Form\TwigRenderer')) ?
299
-                  $twig->getRuntime('Symfony\Bridge\Twig\Form\TwigRenderer') :
300
-                  $twig->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer;
299
+                  $twig->getRuntime('Symfony\Bridge\Twig\Form\TwigRenderer') : $twig->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer;
301 300
         $renderer->setTheme($formView, $formTheme);
302 301
     }
303 302
 }
Please login to merge, or discard this patch.
DataSource/Iterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     /**
79 79
      * getQuery().
80 80
      *
81
-     * @return Doctrine\ORM\Query
81
+     * @return \Doctrine\ORM\Query
82 82
      **/
83 83
     public function getQuery()
84 84
     {
Please login to merge, or discard this patch.
Generator/AdminGenerator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param ModelManagerInterface $modelManager
38
-     * @param array|string          $skeletonDirectories
38
+     * @param string          $skeletonDirectories
39 39
      */
40 40
     public function __construct(ModelManagerInterface $modelManager, $skeletonDirectories)
41 41
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
         // Manage route pattern generation
68 68
         $routes = $parts;
69
-        array_walk($routes, function (&$item, $k) use (&$routes) {
69
+        array_walk($routes, function(&$item, $k) use (&$routes) {
70 70
             $item = preg_replace('/(admin)|(bundle)/', '', strtolower($item));
71 71
             if ($item == '') {
72 72
                 array_splice($routes, $k, 1);
Please login to merge, or discard this patch.
Generator/ArrayToYamlGenerator.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     /**
25 25
      * @param string $file
26
+     * @param string $skeletonDirectories
26 27
      */
27 28
     public function __construct($file, $skeletonDirectories)
28 29
     {
@@ -32,6 +33,7 @@  discard block
 block discarded – undo
32 33
 
33 34
     /**
34 35
      * @param string $array
36
+     * @param string $skeleton
35 37
      *
36 38
      * @throws \RuntimeException
37 39
      */
Please login to merge, or discard this patch.
Generator/ControllerGenerator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     private $file;
32 32
 
33 33
     /**
34
-     * @param array|string $skeletonDirectory
34
+     * @param string $skeletonDirectory
35 35
      */
36 36
     public function __construct($skeletonDirectory)
37 37
     {
Please login to merge, or discard this patch.
Admin/Traits/Base.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,10 +67,10 @@
 block discarded – undo
67 67
 
68 68
         if ($this->isGranted('DELETE')) {
69 69
             $actions['delete'] = array(
70
-               'label'              => 'action_delete',
71
-               'translation_domain' => 'SonataAdminBundle',
72
-               'ask_confirmation'   => true,
73
-           );
70
+                'label'              => 'action_delete',
71
+                'translation_domain' => 'SonataAdminBundle',
72
+                'ask_confirmation'   => true,
73
+            );
74 74
         }
75 75
 
76 76
         return $this->handleBatchActions($actions);
Please login to merge, or discard this patch.
Exporter/Exporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         }
56 56
         $writer = $this->writers[$format];
57 57
 
58
-        $callback = function () use ($source, $writer) {
58
+        $callback = function() use ($source, $writer) {
59 59
             $handler = \Blast\Bundle\CoreBundle\Exporter\Handler::create($source, $writer);
60 60
             $handler->export();
61 61
         };
Please login to merge, or discard this patch.
Tests/Unit/Generator/BlastGeneratorTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,18 +62,18 @@
 block discarded – undo
62 62
         $map = [
63 63
             ['Model', ['foo', 'bar', 'not_an_id']],
64 64
             ['Ledom', ['id', 'zoo', 'rab']],
65
-         ];
65
+            ];
66 66
         $modelManagerMock
67
-             ->expects($this->any())
68
-             ->method('getExportFields')
69
-             ->will($this->returnValueMap($map));
67
+                ->expects($this->any())
68
+                ->method('getExportFields')
69
+                ->will($this->returnValueMap($map));
70 70
 
71 71
         $this->modelManager = $modelManagerMock;
72 72
         $this->object = new BlastGenerator(
73
-             $this->blastFile,
74
-             $this->modelManager,
75
-             $this->skeletonDirectory
76
-         );
73
+                $this->blastFile,
74
+                $this->modelManager,
75
+                $this->skeletonDirectory
76
+            );
77 77
     }
78 78
 
79 79
     protected function tearDown()
Please login to merge, or discard this patch.
Tests/Functional/BlastCoreBundleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
     public function testServicesAreInitializable()
31 31
     {
32
-        $serviceIds = array_filter($this->container->getServiceIds(), function ($serviceId) {
32
+        $serviceIds = array_filter($this->container->getServiceIds(), function($serviceId) {
33 33
             return 0 === strpos($serviceId, 'blast_core.');
34 34
         });
35 35
 
Please login to merge, or discard this patch.