@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param string $requestedName |
29 | 29 | * @param array $options |
30 | 30 | * |
31 | - * @return mixed |
|
31 | + * @return AspectKernel |
|
32 | 32 | */ |
33 | 33 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
34 | 34 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @param ServiceLocatorInterface $serviceLocator |
42 | 42 | * |
43 | - * @return mixed |
|
43 | + * @return AspectKernel |
|
44 | 44 | */ |
45 | 45 | public function createService(ServiceLocatorInterface $serviceLocator) |
46 | 46 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function createService(ServiceLocatorInterface $serviceLocator) |
46 | 46 | { |
47 | 47 | $aspectKernel = AspectKernel::getInstance(); |
48 | - $aspectKernel->init($serviceLocator->get('config')[Module::CONFIG_KEY]); |
|
48 | + $aspectKernel->init($serviceLocator->get('config')[ Module::CONFIG_KEY ]); |
|
49 | 49 | |
50 | 50 | return $aspectKernel; |
51 | 51 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | | AOP will check this list to apply an AOP to selected directories only, |
73 | 73 | | leave it empty if you want AOP to be applied to all files in the appDir |
74 | 74 | */ |
75 | - 'includePaths' => [], |
|
75 | + 'includePaths' => [ ], |
|
76 | 76 | |
77 | 77 | /* |
78 | 78 | |-------------------------------------------------------------------------- |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | | |
82 | 82 | | AOP will check this list to disable AOP for selected directories |
83 | 83 | */ |
84 | - 'excludePaths' => [], |
|
84 | + 'excludePaths' => [ ], |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | |-------------------------------------------------------------------------- |
@@ -103,5 +103,5 @@ discard block |
||
103 | 103 | ] |
104 | 104 | ], |
105 | 105 | |
106 | - \Go\Zend\Framework\Module::ASPECT_CONFIG_KEY => [] |
|
106 | + \Go\Zend\Framework\Module::ASPECT_CONFIG_KEY => [ ] |
|
107 | 107 | ]; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ->willReturn(__DIR__ . '/../resources/application_config.php'); |
33 | 33 | |
34 | 34 | $output = $this->getMockBuilder(OutputInterface::class) |
35 | - ->setMethods(['writeln']) |
|
35 | + ->setMethods([ 'writeln' ]) |
|
36 | 36 | ->getMockForAbstractClass(); |
37 | 37 | |
38 | 38 | $output->expects($this->at(1)) |
@@ -9,6 +9,6 @@ |
||
9 | 9 | 'includePaths' => [ |
10 | 10 | __DIR__ . '/../Advice' |
11 | 11 | ], |
12 | - 'excludePaths' => [], |
|
12 | + 'excludePaths' => [ ], |
|
13 | 13 | 'containerClass' => \Go\Core\GoAspectContainer::class, |
14 | 14 | ]; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | $serviceLocator = $this->prophesize(ServiceLocatorInterface::class); |
22 | 22 | $serviceLocator->get('config') |
23 | - ->willReturn([Module::CONFIG_KEY => require __DIR__ . '/../../resources/goaop_module.php']) |
|
23 | + ->willReturn([ Module::CONFIG_KEY => require __DIR__ . '/../../resources/goaop_module.php' ]) |
|
24 | 24 | ->shouldBeCalled(); |
25 | 25 | |
26 | 26 | $factory = new AspectKernelFactory(); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | { |
42 | 42 | $serviceLocator = $this->prophesize(ServiceLocatorInterface::class); |
43 | 43 | $serviceLocator->get('config') |
44 | - ->willReturn([Module::CONFIG_KEY => require __DIR__ . '/../../resources/goaop_module.php']) |
|
44 | + ->willReturn([ Module::CONFIG_KEY => require __DIR__ . '/../../resources/goaop_module.php' ]) |
|
45 | 45 | ->shouldBeCalled(); |
46 | 46 | |
47 | 47 | $factory = new AspectKernelFactory(); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $eventManager = $this->prophesize(EventManagerInterface::class); |
42 | 42 | $eventManager->attach( |
43 | 43 | Argument::exact(ModuleEvent::EVENT_LOAD_MODULES_POST), |
44 | - Argument::exact([$module, 'initializeAspects']) |
|
44 | + Argument::exact([ $module, 'initializeAspects' ]) |
|
45 | 45 | )->shouldBeCalled(); |
46 | 46 | |
47 | 47 | $moduleManager = $this->prophesize(ModuleManagerInterface::class); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | ->willReturn($aspectContainer->reveal()) |
67 | 67 | ->shouldBeCalled(); |
68 | 68 | $serviceManager->get('config') |
69 | - ->willReturn([Module::ASPECT_CONFIG_KEY => ['testAspect']]) |
|
69 | + ->willReturn([ Module::ASPECT_CONFIG_KEY => [ 'testAspect' ] ]) |
|
70 | 70 | ->shouldBeCalled(); |
71 | 71 | $serviceManager->get('testAspect') |
72 | 72 | ->willReturn($aspect) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | /** @var AspectContainer $aspectContainer */ |
48 | 48 | $aspectContainer = $serviceManager->get(AspectContainer::class); |
49 | 49 | $config = $serviceManager->get('config'); |
50 | - $listOfAspects = $config[self::ASPECT_CONFIG_KEY]; |
|
50 | + $listOfAspects = $config[ self::ASPECT_CONFIG_KEY ]; |
|
51 | 51 | |
52 | 52 | foreach ($listOfAspects as $aspectService) { |
53 | 53 | $aspect = $serviceManager->get($aspectService); |