Passed
Push — master ( 10b50b...4a76d9 )
by Mathias
14:14
created
Auth/test/AuthTest/Listener/SocialProfilesUnconfiguredErrorListenerTest.php 1 patch
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.
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.
module/Auth/test/AuthTest/Controller/RegisterControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
 
55 55
 
56 56
         $this->serviceMock = $this->getMockBuilder('Auth\Service\Register')
57
-                                  ->disableOriginalConstructor()
58
-                                  ->getMock();
57
+                                    ->disableOriginalConstructor()
58
+                                    ->getMock();
59 59
 
60 60
 
61 61
         $this->paramsMock = $this->getMockBuilder('Laminas\Mvc\Controller\Plugin\Params')
Please login to merge, or discard this patch.
module/Auth/test/TestConfig.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@  discard block
 block discarded – undo
8 8
 use PHPUnit\Framework\TestCase;
9 9
     'modules' => array_merge($commonModules,array(
10 10
         'Core',
11
-	    'Auth',
12
-	    'Jobs',
13
-	    'Organizations',
11
+        'Auth',
12
+        'Jobs',
13
+        'Organizations',
14 14
     )),
15 15
 
16 16
     // These are various options for the listeners attached to the ModuleManager
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     //     ),
69 69
     // )
70 70
 
71
-   // Initial configuration with which to seed the ServiceManager.
72
-   // Should be compatible with Laminas\ServiceManager\Config.
73
-   // 'service_manager' => array(),
71
+    // Initial configuration with which to seed the ServiceManager.
72
+    // Should be compatible with Laminas\ServiceManager\Config.
73
+    // 'service_manager' => array(),
74 74
 );
Please login to merge, or discard this patch.
module/Core/test/CoreConfig.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     //     ),
65 65
     // )
66 66
 
67
-   // Initial configuration with which to seed the ServiceManager.
68
-   // Should be compatible with Laminas\ServiceManager\Config.
69
-   // 'service_manager' => array(),
67
+    // Initial configuration with which to seed the ServiceManager.
68
+    // Should be compatible with Laminas\ServiceManager\Config.
69
+    // 'service_manager' => array(),
70 70
 );
Please login to merge, or discard this patch.
module/Jobs/src/Entity/AtsMode.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
         return $this->email;
209 209
     }
210 210
 
211
-	/**
212
-	 * @return bool
213
-	 */
214
-	public function getOneClickApply()
215
-	{
216
-		return $this->oneClickApply;
217
-	}
211
+    /**
212
+     * @return bool
213
+     */
214
+    public function getOneClickApply()
215
+    {
216
+        return $this->oneClickApply;
217
+    }
218 218
 
219 219
 
220 220
     /**
@@ -222,29 +222,29 @@  discard block
 block discarded – undo
222 222
      *
223 223
      * @return $this
224 224
      */
225
-	public function setOneClickApply($oneClickApply)
226
-	{
227
-		$this->oneClickApply = (bool)$oneClickApply;
228
-
229
-		return $this;
230
-	}
231
-
232
-	/**
233
-	 * @return array
234
-	 */
235
-	public function getOneClickApplyProfiles()
236
-	{
237
-		return $this->oneClickApplyProfiles;
238
-	}
239
-
240
-	/**
241
-	 * @param array $oneClickApplyProfiles
242
-	 * @return AtsMode
243
-	 */
244
-	public function setOneClickApplyProfiles(array $oneClickApplyProfiles)
245
-	{
246
-		$this->oneClickApplyProfiles = $oneClickApplyProfiles;
247
-
248
-		return $this;
249
-	}
225
+    public function setOneClickApply($oneClickApply)
226
+    {
227
+        $this->oneClickApply = (bool)$oneClickApply;
228
+
229
+        return $this;
230
+    }
231
+
232
+    /**
233
+     * @return array
234
+     */
235
+    public function getOneClickApplyProfiles()
236
+    {
237
+        return $this->oneClickApplyProfiles;
238
+    }
239
+
240
+    /**
241
+     * @param array $oneClickApplyProfiles
242
+     * @return AtsMode
243
+     */
244
+    public function setOneClickApplyProfiles(array $oneClickApplyProfiles)
245
+    {
246
+        $this->oneClickApplyProfiles = $oneClickApplyProfiles;
247
+
248
+        return $this;
249
+    }
250 250
 }
Please login to merge, or discard this patch.
module/Jobs/src/Factory/Form/Hydrator/OrganizationNameHydratorFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @filesource
6 6
  * @copyright https://yawik.org/COPYRIGHT.php
7 7
  * @license   MIT
8
-  */
8
+ */
9 9
 
10 10
 namespace Jobs\Factory\Form\Hydrator;
11 11
 
Please login to merge, or discard this patch.
module/Applications/src/Controller/ApplyController.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
 
61 61
     protected $viewHelper;
62 62
 
63
-	/**
64
-	 * @param ContainerInterface $container
65
-	 *
66
-	 * @return ApplyController
67
-	 */
63
+    /**
64
+     * @param ContainerInterface $container
65
+     *
66
+     * @return ApplyController
67
+     */
68 68
     static public function factory(ContainerInterface $container)
69 69
     {
70 70
         $ob = new self();
@@ -72,24 +72,24 @@  discard block
 block discarded – undo
72 72
         return $ob;
73 73
     }
74 74
 
75
-	public function setContainer( ContainerInterface $container )
76
-	{
77
-		$this->config            = $container->get('Config');
78
-		$this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager');
79
-		$this->validator         = $container->get('ValidatorManager');
80
-		$this->repositories      = $container->get('repositories');
81
-		$this->appEvents         = $container->get('Applications/Events');
82
-		$this->viewHelper        = $container->get('ViewHelperManager');
83
-	}
84
-
85
-
86
-	public function attachDefaultListeners()
87
-	{
88
-		parent::attachDefaultListeners();
89
-		$events = $this->getEventManager();
90
-		$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10);
91
-		return $this;
92
-	}
75
+    public function setContainer( ContainerInterface $container )
76
+    {
77
+        $this->config            = $container->get('Config');
78
+        $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager');
79
+        $this->validator         = $container->get('ValidatorManager');
80
+        $this->repositories      = $container->get('repositories');
81
+        $this->appEvents         = $container->get('Applications/Events');
82
+        $this->viewHelper        = $container->get('ViewHelperManager');
83
+    }
84
+
85
+
86
+    public function attachDefaultListeners()
87
+    {
88
+        parent::attachDefaultListeners();
89
+        $events = $this->getEventManager();
90
+        $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10);
91
+        return $this;
92
+    }
93 93
 
94 94
     public function preDispatch(MvcEvent $e)
95 95
     {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             ->getHybridAuth();
267 267
         /* @var $authProfile \Hybrid_User_Profile */
268 268
         $authProfile = $hybridAuth->authenticate($network)
269
-           ->getUserProfile();
269
+            ->getUserProfile();
270 270
 
271 271
         /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */
272 272
         $profile = $this->plugin('Auth/SocialProfiles')->fetch($network);
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
         }
320 320
 
321 321
         return $this->redirect()
322
-           ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
322
+            ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
323 323
     }
324 324
 
325 325
     public function processPreviewAction()
@@ -329,11 +329,11 @@  discard block
 block discarded – undo
329 329
 
330 330
     public function processAction()
331 331
     {
332
-    	$params = $this->params();
332
+        $params = $this->params();
333 333
         $formName  = $params->fromQuery('form');
334 334
         $form      = $this->formContainer->getForm($formName);
335 335
         $postData  = $form->getOption('use_post_array') ? $params->fromPost() : array();
336
-	    //@TODO: [ZF3] option use_files_array is false by default
336
+        //@TODO: [ZF3] option use_files_array is false by default
337 337
         //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array();
338 338
         $form->setData(array_merge($postData,$_FILES));
339 339
 
@@ -363,9 +363,9 @@  discard block
 block discarded – undo
363 363
 
364 364
         return new JsonModel(
365 365
             array(
366
-	            'valid' => $form->isValid(),
367
-	            'content' => $content,
368
-	            'isApplicationValid' => $this->checkApplication($application)
366
+                'valid' => $form->isValid(),
367
+                'content' => $content,
368
+                'isApplicationValid' => $this->checkApplication($application)
369 369
             )
370 370
         );
371 371
     }
Please login to merge, or discard this patch.
module/Applications/src/Entity/Hydrator/ApiApplicationHydrator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         ;
90 90
         $data['attachments'] = [];
91 91
         foreach ($object->getAttachments() as $file) {
92
-           $data['attachments'][] = $this->serverUrl . $file->getUri();
92
+            $data['attachments'][] = $this->serverUrl . $file->getUri();
93 93
         }
94 94
 
95 95
         unset(
Please login to merge, or discard this patch.