Completed
Pull Request — master (#54)
by
unknown
07:02 queued 04:08
created
src/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.
src/Command/PatcherApplyCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@
 block discarded – undo
102 102
         }
103 103
     }
104 104
 
105
+    /**
106
+     * @param string $targetFile
107
+     */
105 108
     private function getCommand($targetFile, $patchFile)
106 109
     {
107 110
         return sprintf(
Please login to merge, or discard this patch.
src/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.
src/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.
src/Profiler/Collector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,6 +79,6 @@
 block discarded – undo
79 79
     {
80 80
         $keyStrucure = '#%d %s';
81 81
 
82
-        return sprintf($keyStrucure, count($this->data)+1, $name);
82
+        return sprintf($keyStrucure, count($this->data) + 1, $name);
83 83
     }
84 84
 }
Please login to merge, or discard this patch.
src/Exporter/Exporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         }
57 57
         $writer = $this->writers[$format];
58 58
 
59
-        $callback = function () use ($source, $writer) {
59
+        $callback = function() use ($source, $writer) {
60 60
             $handler = \Blast\CoreBundle\Exporter\Handler::create($source, $writer);
61 61
             $handler->export();
62 62
         };
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.
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.