@@ -35,7 +35,7 @@ |
||
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 | { |
@@ -66,7 +66,7 @@ |
||
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); |
@@ -23,6 +23,7 @@ discard block |
||
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 |
||
32 | 33 | |
33 | 34 | /** |
34 | 35 | * @param string $array |
36 | + * @param string $skeleton |
|
35 | 37 | * |
36 | 38 | * @throws \RuntimeException |
37 | 39 | */ |
@@ -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 | { |
@@ -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); |
@@ -55,7 +55,7 @@ |
||
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 | }; |
@@ -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 |
@@ -61,11 +61,11 @@ |
||
61 | 61 | $map = [ |
62 | 62 | ['Model', ['foo', 'bar', 'not_an_id']], |
63 | 63 | ['Ledom', ['id', 'zoo', 'rab']], |
64 | - ]; |
|
64 | + ]; |
|
65 | 65 | $modelManagerMock |
66 | - ->expects($this->any()) |
|
67 | - ->method('getExportFields') |
|
68 | - ->will($this->returnValueMap($map)); |
|
66 | + ->expects($this->any()) |
|
67 | + ->method('getExportFields') |
|
68 | + ->will($this->returnValueMap($map)); |
|
69 | 69 | |
70 | 70 | $this->modelManager = $modelManagerMock; |
71 | 71 | $this->object = new BlastGenerator( |
@@ -50,9 +50,9 @@ |
||
50 | 50 | /** |
51 | 51 | * getInterfaces. |
52 | 52 | * |
53 | - * @param ReflectionClass|string $class A ReflectionClass object or a class name |
|
53 | + * @param string $class A ReflectionClass object or a class name |
|
54 | 54 | * |
55 | - * @return array |
|
55 | + * @return string[] |
|
56 | 56 | */ |
57 | 57 | public static function getInterfaces($class) |
58 | 58 | { |