Completed
Push — master ( dc4dd2...16100a )
by Mathias
08:39
created
module/Applications/src/Entity/ApplicationInterface.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,6 @@  discard block
 block discarded – undo
241 241
      * Gets all comments for the application.
242 242
      *
243 243
      * @return ArrayCollection;
244
-
245 244
      */
246 245
     public function getComments();
247 246
     
@@ -272,7 +271,6 @@  discard block
 block discarded – undo
272 271
      * Gets all attributes for an application.
273 272
      *
274 273
      * @return ArrayCollection;
275
-
276 274
      */
277 275
     public function getAttributes();
278 276
 
Please login to merge, or discard this patch.
module/Applications/src/Mail/NewApplication.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             'link'  => $this->router->assemble(
101 101
                             ['id' => $this->application->getId()],
102 102
                             ['name'=>'lang/applications/detail', 'force_canonical'=>true]
103
-                       ),
103
+                        ),
104 104
         ];
105 105
 
106 106
         $this->setTo($this->user->getInfo()->getEmail(), $this->user->getInfo()->getDisplayName(false));
Please login to merge, or discard this patch.
module/Applications/src/Controller/CommentController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
                         $application->getStatus(),
86 86
                         sprintf(
87 87
                                     /* @translate */ 'Application was rated by %s',
88
-                                     $this->auth()->getUser()->getInfo()->getDisplayName()
88
+                                        $this->auth()->getUser()->getInfo()->getDisplayName()
89 89
                     )
90 90
                         );
91 91
                 }
Please login to merge, or discard this patch.
module/Applications/src/Controller/ManageController.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $application->changeStatus(
164 164
                 $application->getStatus(),
165 165
                 sprintf(/*@translate*/ 'Application was read by %s',
166
-                                       $this->auth()->getUser()->getInfo()->getDisplayName()
166
+                                        $this->auth()->getUser()->getInfo()->getDisplayName()
167 167
                 )
168 168
             );
169 169
         }
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
                         $viewModel->setVariables(
193 193
                             /*array(
194 194
                             'application' => */$this->builders
195
-                                              ->get('JsonApplication')
196
-                                              ->unbuild($application)
195
+                                                ->get('JsonApplication')
196
+                                                ->unbuild($application)
197 197
                         );
198 198
                         $viewModel->setVariable('isUnread', $applicationIsUnread);
199 199
                         $return = $viewModel;
@@ -358,12 +358,12 @@  discard block
 block discarded – undo
358 358
         /* @var ApplicationEvent $event */
359 359
         $event = $events->getEvent(
360 360
             ApplicationEvent::EVENT_APPLICATION_STATUS_CHANGE,
361
-                                   $this,
362
-                                   [
363
-                                       'application' => $application,
364
-                                       'status' => $status,
365
-                                       'user' => $this->auth()->getUser(),
366
-                                   ]
361
+                                    $this,
362
+                                    [
363
+                                        'application' => $application,
364
+                                        'status' => $status,
365
+                                        'user' => $this->auth()->getUser(),
366
+                                    ]
367 367
         );
368 368
         
369 369
         $event->setIsPostRequest($request->isPost());
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         $emailAddress = $this->params()->fromQuery('email');
413 413
         /* @var \Applications\Entity\Application $application */
414 414
         $application  = $this->repositories->get('Applications/Application')
415
-                                 ->find($this->params('id'));
415
+                                    ->find($this->params('id'));
416 416
         
417 417
         $this->acl($application, 'forward');
418 418
         
Please login to merge, or discard this patch.
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.