@@ -57,12 +57,12 @@ |
||
57 | 57 | ->willReturn($urlHelper); |
58 | 58 | |
59 | 59 | $serviceManagerMock = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
60 | - ->disableOriginalConstructor() |
|
61 | - ->getMock(); |
|
60 | + ->disableOriginalConstructor() |
|
61 | + ->getMock(); |
|
62 | 62 | |
63 | 63 | $serviceManagerMock->expects($this->once())->method('get') |
64 | - ->with('ViewHelperManager') |
|
65 | - ->willReturn($helpers); |
|
64 | + ->with('ViewHelperManager') |
|
65 | + ->willReturn($helpers); |
|
66 | 66 | |
67 | 67 | $service = $target->__invoke($serviceManagerMock, 'irrelevant'); |
68 | 68 |
@@ -24,16 +24,16 @@ |
||
24 | 24 | public function testFactory($config) |
25 | 25 | { |
26 | 26 | $serviceManager = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
27 | - ->disableOriginalConstructor()->getMock(); |
|
27 | + ->disableOriginalConstructor()->getMock(); |
|
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | 31 | if (isset($config['core_options'])) { |
32 | 32 | $coreOptions = new \Core\Options\ModuleOptions($config['core_options']); |
33 | 33 | $serviceManager->expects($this->exactly(2)) |
34 | - ->method('get') |
|
35 | - ->withConsecutive(array('Config'), array('Core/Options')) |
|
36 | - ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
34 | + ->method('get') |
|
35 | + ->withConsecutive(array('Config'), array('Core/Options')) |
|
36 | + ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
37 | 37 | } else { |
38 | 38 | $serviceManager->expects($this->once())->method('get')->with('Config')->willReturn($config); |
39 | 39 | } |
@@ -45,17 +45,17 @@ |
||
45 | 45 | )); |
46 | 46 | |
47 | 47 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
48 | - ->disableOriginalConstructor() |
|
49 | - ->getMock(); |
|
48 | + ->disableOriginalConstructor() |
|
49 | + ->getMock(); |
|
50 | 50 | |
51 | 51 | $services->expects($this->exactly(3)) |
52 | - ->method('get') |
|
53 | - ->withConsecutive( |
|
54 | - array('Core/MailService'), |
|
55 | - array('Jobs/Options'), |
|
56 | - array('Core/Options') |
|
57 | - ) |
|
58 | - ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
52 | + ->method('get') |
|
53 | + ->withConsecutive( |
|
54 | + array('Core/MailService'), |
|
55 | + array('Jobs/Options'), |
|
56 | + array('Core/Options') |
|
57 | + ) |
|
58 | + ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions)); |
|
59 | 59 | |
60 | 60 | $expectedOptions = array( |
61 | 61 | 'siteName' => $coreOptions->getSiteName(), |
@@ -52,10 +52,10 @@ |
||
52 | 52 | { |
53 | 53 | $select = $this->getMockBuilder('Jobs\Form\MultipostingSelect')->disableOriginalConstructor()->getMock(); |
54 | 54 | $select->expects($this->once()) |
55 | - ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
55 | + ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes'); |
|
56 | 56 | |
57 | 57 | $select->expects($this->once()) |
58 | - ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
58 | + ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js')); |
|
59 | 59 | |
60 | 60 | $factory = $this->getMockBuilder('\Laminas\ServiceManager\FactoryInterface') |
61 | 61 | ->setMethods(array('__invoke')) |
@@ -78,21 +78,21 @@ |
||
78 | 78 | $this->user = $user; |
79 | 79 | |
80 | 80 | $auth = $this->getMockBuilder('Auth\AuthenticationService') |
81 | - ->disableOriginalConstructor() |
|
82 | - ->getMock(); |
|
81 | + ->disableOriginalConstructor() |
|
82 | + ->getMock(); |
|
83 | 83 | |
84 | 84 | $auth->expects($this->once()) |
85 | - ->method('getUser') |
|
86 | - ->willReturn($user); |
|
85 | + ->method('getUser') |
|
86 | + ->willReturn($user); |
|
87 | 87 | |
88 | 88 | $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
89 | - ->disableOriginalConstructor() |
|
90 | - ->getMock(); |
|
89 | + ->disableOriginalConstructor() |
|
90 | + ->getMock(); |
|
91 | 91 | |
92 | 92 | $services->expects($this->once()) |
93 | - ->method('get') |
|
94 | - ->with('AuthenticationService') |
|
95 | - ->willReturn($auth); |
|
93 | + ->method('get') |
|
94 | + ->with('AuthenticationService') |
|
95 | + ->willReturn($auth); |
|
96 | 96 | |
97 | 97 | $this->services = $services; |
98 | 98 | } |
@@ -43,8 +43,8 @@ |
||
43 | 43 | $provider=new ProviderOptions(); |
44 | 44 | |
45 | 45 | $serviceManagerMock = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
46 | - ->disableOriginalConstructor() |
|
47 | - ->getMock(); |
|
46 | + ->disableOriginalConstructor() |
|
47 | + ->getMock(); |
|
48 | 48 | |
49 | 49 | |
50 | 50 | $serviceManagerMock |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function testInvokation() |
42 | 42 | { |
43 | - $provider=new ProviderOptions(); |
|
43 | + $provider = new ProviderOptions(); |
|
44 | 44 | |
45 | 45 | $serviceManagerMock = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager') |
46 | 46 | ->disableOriginalConstructor() |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * for multiple paths. |
24 | 24 | * example https://github.com/doctrine/DoctrineORMModule |
25 | 25 | */ |
26 | - 'paths' => [ __DIR__ . '/../src/Entity'], |
|
26 | + 'paths' => [__DIR__.'/../src/Entity'], |
|
27 | 27 | ], |
28 | 28 | ], |
29 | 29 | 'eventmanager' => [ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'translation_file_patterns' => [ |
45 | 45 | [ |
46 | 46 | 'type' => 'gettext', |
47 | - 'base_dir' => __DIR__ . '/../language', |
|
47 | + 'base_dir' => __DIR__.'/../language', |
|
48 | 48 | 'pattern' => '%s.mo', |
49 | 49 | ], |
50 | 50 | ], |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | 'factories' => [ |
155 | 155 | \Cv\Controller\IndexController::class => \Laminas\ServiceManager\Factory\InvokableFactory::class, |
156 | 156 | 'Cv/View' => 'Cv\Factory\Controller\ViewControllerFactory', |
157 | - 'Cv\Controller\Manage' => [ManageController::class,'factory'], |
|
157 | + 'Cv\Controller\Manage' => [ManageController::class, 'factory'], |
|
158 | 158 | ], |
159 | 159 | 'aliases' => [ |
160 | 160 | 'Cv/Index' => \Cv\Controller\IndexController::class, |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | 'resume-recruiter' => [ |
170 | 170 | 'label' => /*@translate*/ 'Talent-Pool', |
171 | 171 | 'route' => 'lang/cvs', |
172 | - 'active_on' => [ 'lang/cvs/edit', 'lang/cvs/view' ], |
|
172 | + 'active_on' => ['lang/cvs/edit', 'lang/cvs/view'], |
|
173 | 173 | 'resource' => 'navigation/resume-recruiter', |
174 | 174 | 'order' => 10, |
175 | 175 | 'query' => [ |
@@ -200,15 +200,15 @@ discard block |
||
200 | 200 | |
201 | 201 | // Map template to files. Speeds up the lookup through the template stack. |
202 | 202 | 'template_map' => [ |
203 | - 'cv/form/employment.view' => __DIR__ . '/../view/cv/form/employment.view.phtml', |
|
204 | - 'cv/form/employment.form' => __DIR__ . '/../view/cv/form/employment.form.phtml', |
|
205 | - 'cv/form/education.view' => __DIR__ . '/../view/cv/form/education.view.phtml', |
|
206 | - 'cv/form/education.form' => __DIR__ . '/../view/cv/form/education.form.phtml' |
|
203 | + 'cv/form/employment.view' => __DIR__.'/../view/cv/form/employment.view.phtml', |
|
204 | + 'cv/form/employment.form' => __DIR__.'/../view/cv/form/employment.form.phtml', |
|
205 | + 'cv/form/education.view' => __DIR__.'/../view/cv/form/education.view.phtml', |
|
206 | + 'cv/form/education.form' => __DIR__.'/../view/cv/form/education.form.phtml' |
|
207 | 207 | ], |
208 | 208 | |
209 | 209 | // Where to look for view templates not mapped above |
210 | 210 | 'template_path_stack' => [ |
211 | - __DIR__ . '/../view', |
|
211 | + __DIR__.'/../view', |
|
212 | 212 | ], |
213 | 213 | ], |
214 | 214 |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | */ |
26 | 26 | class AssertionManager extends AbstractPluginManager |
27 | 27 | { |
28 | - /** |
|
29 | - * @var ContainerInterface |
|
30 | - */ |
|
31 | - protected $container; |
|
28 | + /** |
|
29 | + * @var ContainerInterface |
|
30 | + */ |
|
31 | + protected $container; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Creates an instance. |
@@ -58,20 +58,20 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function injectEventManager($assertion, $serviceLocator) |
60 | 60 | { |
61 | - //@TODO: [ZF3] check if ACL working properly |
|
61 | + //@TODO: [ZF3] check if ACL working properly |
|
62 | 62 | /* @var $serviceLocator AssertionManager */ |
63 | 63 | |
64 | 64 | if (!$assertion instanceof EventManagerAwareInterface) { |
65 | 65 | return; |
66 | 66 | } |
67 | 67 | /* @var EventManager $events */ |
68 | - $container = $this->container; |
|
68 | + $container = $this->container; |
|
69 | 69 | $events = $assertion->getEventManager(); |
70 | 70 | if (!$events instanceof EventManagerInterface) { |
71 | 71 | $events = $container->get('EventManager'); /* @var $events \Laminas\EventManager\EventManagerInterface */ |
72 | 72 | $assertion->setEventManager($events); |
73 | 73 | } else { |
74 | - //@TODO: [ZF3] setSharedManager method now is removed |
|
74 | + //@TODO: [ZF3] setSharedManager method now is removed |
|
75 | 75 | //$sharedEvents = $container->get('SharedEventManager'); /* @var $sharedEvents \Laminas\EventManager\SharedEventManagerInterface */ |
76 | 76 | //$events->setSharedManager($sharedEvents); |
77 | 77 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | { |
43 | 43 | /* @var $events \Laminas\EventManager\SharedEventManager */ |
44 | 44 | $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_BOOTSTRAP, array($this, 'onBootstrap'), $priority); |
45 | - $this->listener = [$this,'onBootstrap']; |
|
45 | + $this->listener = [$this, 'onBootstrap']; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function detachShared(SharedEventManagerInterface $events) |
55 | 55 | { |
56 | - if ($events->detach($this->listener,'Laminas\Mvc\Application')) { |
|
56 | + if ($events->detach($this->listener, 'Laminas\Mvc\Application')) { |
|
57 | 57 | $this->listener = null; |
58 | 58 | } |
59 | 59 | return $this; |