Passed
Push — develop ( fcad5b...722a36 )
by Mathias
18:06 queued 09:30
created
module/Applications/src/Controller/MultimanageController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,8 @@
 block discarded – undo
137 137
             $application->changeStatus(
138 138
                 Status::REJECTED,
139 139
                 sprintf(
140
-                           /*@translate */ 'Mail was sent to %s',
141
-                                           $application->contact->email
140
+                            /*@translate */ 'Mail was sent to %s',
141
+                                            $application->contact->email
142 142
                 )
143 143
             );
144 144
             $repositoryService->store($application);
Please login to merge, or discard this patch.
module/Applications/src/Controller/ApplyController.php 1 patch
Indentation   +28 added lines, -28 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
-	}
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 84
 	
85 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
-	}
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/Controller/ConsoleController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $table = new Table(
159 159
             array('columnWidths' => array(40, 40, 40),
160
-                                 'decorator' => 'ascii')
160
+                                    'decorator' => 'ascii')
161 161
         );
162 162
 
163 163
         $table->appendRow(array('Module', 'Name', 'Description'));
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
             $attachments = $app->getAttachments();
239 239
             foreach ($attachments as $attachment) {
240 240
                 $attachment->getPermissions()
241
-                           ->clear()
242
-                           ->inherit($permissions);
241
+                            ->clear()
242
+                            ->inherit($permissions);
243 243
             }
244 244
             $contact = $app->getContact();
245 245
             if ($contact) {
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
 
248 248
                 if ($image) {
249 249
                     $image->getPermissions()
250
-                          ->clear()
251
-                          ->inherit($permissions);
250
+                            ->clear()
251
+                            ->inherit($permissions);
252 252
                 }
253 253
             }
254 254
         }
Please login to merge, or discard this patch.
module/Core/config/doctrine.config.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
 //                'driver'             => 'odm_default',
27 27
 //
28 28
 //                'generate_proxies'   => true,
29
-                  'proxy_dir'          => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy',
29
+                    'proxy_dir'          => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy',
30 30
 //                'proxy_namespace'    => 'DoctrineMongoODMModule\Proxy',
31 31
 //
32 32
 //                'generate_hydrators' => true,
33
-                  'hydrator_dir'       => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator',
33
+                    'hydrator_dir'       => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator',
34 34
 //                'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator',
35 35
 //
36 36
 //                'default_db'         => '',
Please login to merge, or discard this patch.
module/Core/src/Repository/SnapshotRepository.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             'entity' => $snapshot
125 125
         ]);
126 126
         $this->dm->getEventManager()
127
-                 ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs);
127
+                    ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs);
128 128
 
129 129
         $this->copy($source, $snapshot);
130 130
 
@@ -200,12 +200,12 @@  discard block
 block discarded – undo
200 200
     public function findLatest($sourceId, $isDraft = false)
201 201
     {
202 202
         $entity = $this->createQueryBuilder()
203
-          ->field('snapshotEntity')->equals(new \MongoId($sourceId))
204
-          ->field('snapshotMeta.isDraft')->equals($isDraft)
205
-          ->sort('snapshotMeta.dateCreated.date', 'desc')
206
-          ->limit(1)
207
-          ->getQuery()
208
-          ->getSingleResult()
203
+            ->field('snapshotEntity')->equals(new \MongoId($sourceId))
204
+            ->field('snapshotMeta.isDraft')->equals($isDraft)
205
+            ->sort('snapshotMeta.dateCreated.date', 'desc')
206
+            ->limit(1)
207
+            ->getQuery()
208
+            ->getSingleResult()
209 209
         ;
210 210
         if ($entity) {
211 211
             $this->dm->getEventManager()->dispatchEvent(
Please login to merge, or discard this patch.
module/Core/src/Form/Element/FileUpload.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@
 block discarded – undo
158 158
         if ($mimetypes) {
159 159
             $mimeTypeValidator = new MimeType();
160 160
             $mimeTypeValidator->setMagicFile(false)
161
-                              ->disableMagicFile(true)
162
-                              ->setMimeType($this->getAllowedTypes());
161
+                                ->disableMagicFile(true)
162
+                                ->setMimeType($this->getAllowedTypes());
163 163
 
164 164
             $validators[] = $mimeTypeValidator;
165 165
         }
Please login to merge, or discard this patch.
module/Core/src/Form/Element/Phone.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
     protected $validator;
15 15
 
16 16
     /**
17
-    * Get a validator if none has been set.
18
-    * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265
19
-    * @return RegexValidator
20
-    */
17
+     * Get a validator if none has been set.
18
+     * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265
19
+     * @return RegexValidator
20
+     */
21 21
     public function getValidator()
22 22
     {
23 23
         if (null === $this->validator) {
Please login to merge, or discard this patch.
module/Core/src/Form/Tree/ManagementFieldset.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     public function init()
52 52
     {
53
-    	$this->setName('items');
53
+        $this->setName('items');
54 54
         $this->add([
55 55
                 'type' => 'Collection',
56 56
                 'name' => 'items',
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormEditor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@
 block discarded – undo
134 134
             $elementOptions = $element->getOptions();
135 135
             if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) {
136 136
                 $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' .
137
-                               (empty($content)?'':'display:none;') .
138
-                               '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>';
137
+                                (empty($content)?'':'display:none;') .
138
+                                '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>';
139 139
             }
140 140
             return
141 141
                 $placeHolder
Please login to merge, or discard this patch.