Passed
Pull Request — master (#631)
by ANTHONIUS
08:16
created
module/Applications/config/module.config.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -22,20 +22,20 @@  discard block
 block discarded – undo
22 22
 
23 23
 return [
24 24
     'doctrine' => [
25
-       'driver' => [
25
+        'driver' => [
26 26
             'odm_default' => [
27 27
                 'drivers' => [
28 28
                     'Applications\Entity' => 'annotation',
29 29
                 ],
30 30
             ],
31 31
             'annotation' => [
32
-               /*
32
+                /*
33 33
                 * All drivers (except DriverChain) require paths to work on. You
34 34
                 * may set this value as a string (for a single path) or an array
35 35
                 * for multiple paths.
36 36
                 * example https://github.com/doctrine/DoctrineORMModule
37 37
                 */
38
-               'paths' => [ __DIR__ . '/../src/Entity']
38
+                'paths' => [ __DIR__ . '/../src/Entity']
39 39
             ],
40 40
         ],
41 41
         'eventmanager' => [
@@ -75,19 +75,19 @@  discard block
 block discarded – undo
75 75
             'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions',
76 76
         ],
77 77
         'factories' => [
78
-           'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
79
-           'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
80
-           'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
81
-           'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
82
-           'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
83
-           'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory',
84
-           'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory',
78
+            'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
79
+            'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
80
+            'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
81
+            'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
82
+            'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
83
+            'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory',
84
+            'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory',
85 85
             Listener\JobSelectValues::class => Factory\Listener\JobSelectValuesFactory::class,
86 86
             Listener\LoadDependendEntities::class => InvokableFactory::class,
87 87
             UploadHandler::class => UploadHandlerFactory::class
88 88
         ],
89 89
         'aliases' => [
90
-           'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
90
+            'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
91 91
         ]
92 92
     ],
93 93
 
@@ -191,20 +191,20 @@  discard block
 block discarded – undo
191 191
     ],
192 192
     'form_elements' => [
193 193
         'invokables' => [
194
-             'Applications/Mail' => 'Applications\Form\Mail',
195
-             'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
196
-             'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
197
-             'Applications/CommentForm' => 'Applications\Form\CommentForm',
198
-             'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
199
-             'Applications/Apply' => 'Applications\Form\Apply',
200
-             'Applications/Contact' => 'Applications\Form\ContactContainer',
201
-             'Applications/Base'  => 'Applications\Form\Base',
202
-             'Applications/Facts' => 'Applications\Form\Facts',
203
-             'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
204
-             'Applications/Attributes' => 'Applications\Form\Attributes',
205
-             'href' => 'Applications\Form\Element\Ref',
194
+                'Applications/Mail' => 'Applications\Form\Mail',
195
+                'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
196
+                'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
197
+                'Applications/CommentForm' => 'Applications\Form\CommentForm',
198
+                'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
199
+                'Applications/Apply' => 'Applications\Form\Apply',
200
+                'Applications/Contact' => 'Applications\Form\ContactContainer',
201
+                'Applications/Base'  => 'Applications\Form\Base',
202
+                'Applications/Facts' => 'Applications\Form\Facts',
203
+                'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
204
+                'Applications/Attributes' => 'Applications\Form\Attributes',
205
+                'href' => 'Applications\Form\Element\Ref',
206 206
 
207
-         ],
207
+            ],
208 208
         'factories' => [
209 209
             'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory',
210 210
             'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory',
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             Form\Element\JobSelect::class => Factory\Form\JobSelectFactory::class,
214 214
             UploadHandler::class => [UploadHandler::class, 'factory']
215 215
         ],
216
-     ],
216
+        ],
217 217
 
218 218
     'form_elements_config' => [
219 219
         'Applications/Apply' => [
Please login to merge, or discard this patch.
module/Applications/src/Controller/ApplyController.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
         $this->uploadHandler = $uploadHandler;
108 108
     }
109 109
 
110
-	/**
111
-	 * @param ContainerInterface $container
112
-	 *
113
-	 * @return ApplyController
114
-	 */
110
+    /**
111
+     * @param ContainerInterface $container
112
+     *
113
+     * @return ApplyController
114
+     */
115 115
     static public function factory(ContainerInterface $container)
116 116
     {
117 117
         $config            = $container->get('Config');
@@ -133,13 +133,13 @@  discard block
 block discarded – undo
133 133
         );
134 134
     }
135 135
 
136
-	public function attachDefaultListeners()
137
-	{
138
-		parent::attachDefaultListeners();
139
-		$events = $this->getEventManager();
140
-		$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10);
141
-		return $this;
142
-	}
136
+    public function attachDefaultListeners()
137
+    {
138
+        parent::attachDefaultListeners();
139
+        $events = $this->getEventManager();
140
+        $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10);
141
+        return $this;
142
+    }
143 143
 
144 144
     public function preDispatch(MvcEvent $e)
145 145
     {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             ->getHybridAuth();
318 318
         /* @var $authProfile Hybrid_User_Profile */
319 319
         $authProfile = $hybridAuth->authenticate($network)
320
-           ->getUserProfile();
320
+            ->getUserProfile();
321 321
 
322 322
         /* @var AbstractProfile $profile */
323 323
         $profile = $this->plugin('Auth/SocialProfiles')->fetch($network);
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         }
371 371
 
372 372
         return $this->redirect()
373
-           ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
373
+            ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
374 374
     }
375 375
 
376 376
     public function processPreviewAction()
@@ -380,13 +380,13 @@  discard block
 block discarded – undo
380 380
 
381 381
     public function processAction()
382 382
     {
383
-    	$params = $this->params();
383
+        $params = $this->params();
384 384
         $formName  = $params->fromQuery('form');
385 385
         $form      = $this->formContainer->getForm($formName);
386 386
         $postData  = $form->getOption('use_post_array') ? $params->fromPost() : array();
387 387
         $uploadHandler = $this->uploadHandler;
388 388
 
389
-	    //@TODO: [ZF3] option use_files_array is false by default
389
+        //@TODO: [ZF3] option use_files_array is false by default
390 390
         //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array();
391 391
 
392 392
         $form->setData(array_merge($postData,$_FILES));
@@ -432,9 +432,9 @@  discard block
 block discarded – undo
432 432
 
433 433
         return new JsonModel(
434 434
             array(
435
-	            'valid' => $form->isValid(),
436
-	            'content' => $content,
437
-	            'isApplicationValid' => $this->checkApplication($application)
435
+                'valid' => $form->isValid(),
436
+                'content' => $content,
437
+                'isApplicationValid' => $this->checkApplication($application)
438 438
             )
439 439
         );
440 440
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -399,7 +399,7 @@
 block discarded – undo
399 399
                 'content' => $content,
400 400
                 'isApplicationValid' => $this->checkApplication($application)
401 401
             ]);
402
-        }elseif('attachments' === $formName){
402
+        } elseif('attachments' === $formName){
403 403
             $attachment = $uploadHandler->handleAttachmentUpload($postData['applicationId'], $_FILES['attachments']);
404 404
             $basepath = $this->viewHelper->get('basepath');
405 405
             $content = $basepath($attachment->getUri());
Please login to merge, or discard this patch.
module/Applications/src/Repository/Application.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $qb = $this->getPaginationQueryBuilder($params);
108 108
         $cursor = $qb->hydrate(false)
109
-                     ->select('_id')
110
-                     ->getQuery()
111
-                     ->execute();
109
+                        ->select('_id')
110
+                        ->getQuery()
111
+                        ->execute();
112 112
 
113 113
         $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor)));
114 114
         return $list;
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $auth=$this->getService('AuthenticationService');
139 139
         $qb=$this->createQueryBuilder()
140
-                  ->field("readBy")->notIn(array($auth->getUser()->getId()))
141
-                  ->field("job")->equals(new ObjectId($job->getId()));
140
+                    ->field("readBy")->notIn(array($auth->getUser()->getId()))
141
+                    ->field("job")->equals(new ObjectId($job->getId()));
142 142
         return $qb->getQuery()->execute();
143 143
     }
144 144
 
Please login to merge, or discard this patch.
module/Core/test/CoreTestUtils/TestCase/TestUsesTraitsTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         if (!property_exists($this, 'traits') || !property_exists($this, 'target')) {
39 39
             throw new PHPUnitFrameworkException(self::class . ': ' . static::class
40
-                                                   . ' must define the properties $target and $traits.');
40
+                                                    . ' must define the properties $target and $traits.');
41 41
         }
42 42
 
43 43
         $this->assertUsesTraits($this->traits, $this->target);
Please login to merge, or discard this patch.
module/Core/src/Service/FileManager.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             $user = $this->auth->getUser();
86 86
             if($user instanceof AnonymousUser){
87 87
                 $metadata->getPermissions()->grant($user, PermissionsInterface::PERMISSION_ALL);
88
-            }else{
88
+            } else{
89 89
                 $metadata->setUser($user);
90 90
                 $this->dm->persist($user);
91 91
                 $this->dm->flush();
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/FileSender.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         $metadata = $file->getMetadata();
59 59
         $response->getHeaders()->addHeaderline('Content-Type', $metadata->getContentType())
60
-                               ->addHeaderline('Content-Length', $file->getLength());
60
+                                ->addHeaderline('Content-Length', $file->getLength());
61 61
         $response->sendHeaders();
62 62
         
63 63
         $resource = $fileManager->getStream($file);
Please login to merge, or discard this patch.
module/Core/src/Paginator/Adapter/DoctrineMongoLateAdapter.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             $qb = $this->queryBuilder;
49 49
             $qb->skip($offset)->limit($itemCountPerPage);
50 50
             return $qb->getQuery()->toArray();
51
-        }catch (\Exception $e){
51
+        } catch (\Exception $e){
52 52
             throw $e;
53 53
         }
54 54
     }
Please login to merge, or discard this patch.
module/Core/src/Entity/Hydrator/ImageSetHydrator.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 
148 148
         if (is_string($image)) {
149 149
             $file = $image;
150
-        }else{
150
+        } else{
151 151
             $format = str_replace('image/', '', $data['type']);
152 152
             $content = $image->get($format);
153 153
             $file = '/tmp/php'.md5($content);
Please login to merge, or discard this patch.
module/Core/src/Entity/ImageSet.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                         return $image;
81 81
                     }
82 82
                 }
83
-            }catch (\Exception $e){
83
+            } catch (\Exception $e){
84 84
                 return null;
85 85
             }
86 86
         }
Please login to merge, or discard this patch.