Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Jobs/test/JobsTest/Factory/Listener/MailSenderFactoryTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,17 +45,17 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/MultipostingMultiCheckboxFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
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'))
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/HiringOrganizationSelectFactoryTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,21 +78,21 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Filter/ChannelPricesFactoryTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
module/Cv/config/module.config.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
module/Auth/src/Acl/Assertion/AssertionManager.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/TokenListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Auth/test/AuthTest/Listener/SocialProfilesUnconfiguredErrorListenerTest.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 
43 43
         $events = $this->getMockBuilder('\Laminas\EventManager\EventManager')->disableOriginalConstructor()->getMock();
44 44
         $events->expects($this->once())
45
-               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
46
-               ->willReturn('worked');
45
+                ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
46
+                ->willReturn('worked');
47 47
 
48 48
         $this->assertSame($target, $target->attach($events), 'Fluent interface broken');
49 49
         $this->assertAttributeEquals(['worked'], 'listeners', $target);
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
     public function provideTestData()
53 53
     {
54 54
         return [
55
-           [ true, true, true, true ],
56
-           [ false, true, true, false ],
57
-           [ true, false, true, false ],
58
-           [ true, true, false, false ],
59
-           [ false, false, true, false ],
60
-           [ false, true, false, false ],
61
-           [ true, false, false, false ],
62
-           [ false, false, false, false ],
63
-       ];
55
+            [ true, true, true, true ],
56
+            [ false, true, true, false ],
57
+            [ true, false, true, false ],
58
+            [ true, true, false, false ],
59
+            [ false, false, true, false ],
60
+            [ false, true, false, false ],
61
+            [ true, false, false, false ],
62
+            [ false, false, false, false ],
63
+        ];
64 64
     }
65 65
 
66 66
     /**
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
         $event = $this->getMockBuilder('\Laminas\Mvc\MvcEvent')->disableOriginalConstructor()->getMock();
81 81
 
82 82
         $event->expects($this->once())
83
-              ->method('getParam')->with('exception')
84
-              ->willReturn($exception);
83
+                ->method('getParam')->with('exception')
84
+                ->willReturn($exception);
85 85
 
86 86
         if ($useValidModel) {
87 87
             $model = $this->getMockBuilder('\Laminas\View\Model\ViewModel')->disableOriginalConstructor()->getMock();
@@ -91,16 +91,16 @@  discard block
 block discarded – undo
91 91
                 $model->expects($this->never())->method('setTemplate');
92 92
             }
93 93
             $event->expects($this->once())
94
-                  ->method('getError')
95
-                  ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError');
94
+                    ->method('getError')
95
+                    ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError');
96 96
         } else {
97 97
             $model = 'not a view model instance';
98 98
             $event->expects($this->never())->method('getError');
99 99
         }
100 100
 
101 101
         $event->expects($this->once())
102
-              ->method('getResult')
103
-              ->willReturn($model);
102
+                ->method('getResult')
103
+                ->willReturn($model);
104 104
 
105 105
         $target->onDispatchError($event);
106 106
     }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $events = $this->getMockBuilder('\Laminas\EventManager\EventManager')->disableOriginalConstructor()->getMock();
44 44
         $events->expects($this->once())
45
-               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
45
+               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [$target, 'onDispatchError'])
46 46
                ->willReturn('worked');
47 47
 
48 48
         $this->assertSame($target, $target->attach($events), 'Fluent interface broken');
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
     public function provideTestData()
53 53
     {
54 54
         return [
55
-           [ true, true, true, true ],
56
-           [ false, true, true, false ],
57
-           [ true, false, true, false ],
58
-           [ true, true, false, false ],
59
-           [ false, false, true, false ],
60
-           [ false, true, false, false ],
61
-           [ true, false, false, false ],
62
-           [ false, false, false, false ],
55
+           [true, true, true, true],
56
+           [false, true, true, false],
57
+           [true, false, true, false],
58
+           [true, true, false, false],
59
+           [false, false, true, false],
60
+           [false, true, false, false],
61
+           [true, false, false, false],
62
+           [false, false, false, false],
63 63
        ];
64 64
     }
65 65
 
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Listener/TokenListenerTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,22 +45,22 @@
 block discarded – undo
45 45
 
46 46
 
47 47
         $callback = $this->getMockBuilder('\Laminas\Stdlib\CallbackHandler')
48
-                         ->disableOriginalConstructor()
49
-                         ->getMock();
48
+                            ->disableOriginalConstructor()
49
+                            ->getMock();
50 50
 
51 51
         $events = $this->getMockBuilder('\Laminas\EventManager\SharedEventManagerInterface')
52
-                       ->setMethods(array('attach'))
53
-                       ->getMockForAbstractClass();
52
+                        ->setMethods(array('attach'))
53
+                        ->getMockForAbstractClass();
54 54
 
55 55
         $events->expects($this->once())
56
-               ->method('attach')
57
-               ->with($expId, $expEvent, $expCallback, $expPriority)
58
-               ->willReturn($expCallback);
56
+                ->method('attach')
57
+                ->with($expId, $expEvent, $expCallback, $expPriority)
58
+                ->willReturn($expCallback);
59 59
 
60 60
         $events->expects($this->once())
61
-               ->method('detach')
62
-               ->with($expCallback, 'Laminas\Mvc\Application')
63
-               ->willReturn(true);
61
+                ->method('detach')
62
+                ->with($expCallback, 'Laminas\Mvc\Application')
63
+                ->willReturn(true);
64 64
 
65 65
 
66 66
         $target->attachShared($events);
Please login to merge, or discard this patch.