@@ -31,7 +31,7 @@ |
||
| 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 | { |
@@ -102,6 +102,9 @@ |
||
| 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( |
@@ -291,6 +291,9 @@ |
||
| 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'); |
@@ -296,8 +296,7 @@ |
||
| 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 | } |
@@ -67,10 +67,10 @@ |
||
| 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); |
@@ -79,6 +79,6 @@ |
||
| 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 | } |
@@ -56,7 +56,7 @@ |
||
| 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 | }; |
@@ -29,7 +29,7 @@ |
||
| 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 | |
@@ -62,18 +62,18 @@ |
||
| 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() |