Completed
Push — develop ( e70242...efddeb )
by Mathias
65:39 queued 53:48
created
module/Applications/src/Applications/Controller/CommentController.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
  */
26 26
 class CommentController extends AbstractActionController implements ContainerAwareInterface
27 27
 {
28
-	private $repositories;
28
+    private $repositories;
29 29
 	
30
-	private $formManager;
30
+    private $formManager;
31 31
 	
32 32
     /**
33 33
      * Lists comments of an application
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                     $application->getComments()->add($comment);
84 84
                     $application->changeStatus($application->getStatus(), sprintf(
85 85
                                     /* @translate */ 'Application was rated by %s',
86
-                                     $this->auth()->getUser()->getInfo()->getDisplayName())
86
+                                        $this->auth()->getUser()->getInfo()->getDisplayName())
87 87
                         );
88 88
                 }
89 89
                 $viewModel->setVariable('isSaved', true);
@@ -100,18 +100,18 @@  discard block
 block discarded – undo
100 100
         return $viewModel;
101 101
     }
102 102
 	
103
-	public function setContainer( ContainerInterface $container )
104
-	{
105
-		$this->repositories = $container->get('repositories');
106
-		$this->formManager = $container->get('forms');
107
-	}
103
+    public function setContainer( ContainerInterface $container )
104
+    {
105
+        $this->repositories = $container->get('repositories');
106
+        $this->formManager = $container->get('forms');
107
+    }
108 108
 	
109
-	/**
110
-	 * @param ContainerInterface $container
111
-	 *
112
-	 * @return CommentController
113
-	 */
114
-	static public function factory(ContainerInterface $container)
109
+    /**
110
+     * @param ContainerInterface $container
111
+     *
112
+     * @return CommentController
113
+     */
114
+    static public function factory(ContainerInterface $container)
115 115
     {
116 116
         $ob = new self();
117 117
         $ob->setContainer($container);
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/SettingsFieldset.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
     public function init()
43 43
     {
44 44
         $this->setName('emails')
45
-             ->setLabel(/* @translate */ 'E-Mail Notifications');
45
+                ->setLabel(/* @translate */ 'E-Mail Notifications');
46 46
 	    
47 47
         $this->add(
48 48
             array('type' => Checkbox::class,
49 49
                 'name' => 'mailAccess',
50 50
                 'label' => 'foo',
51 51
                 'options' => array('label' => /* @translate */ 'receive E-Mail alert',
52
-                                   'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
52
+                                    'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
53 53
                 )
54 54
         );
55 55
         $this->add(
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
             array('type' => 'Zend\Form\Element\Checkbox',
64 64
                 'name' => 'autoConfirmMail',
65 65
                 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit',
66
-                                   'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
66
+                                    'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
67 67
                 )
68 68
         );
69 69
         $this->add(
70 70
             array('type' => 'Zend\Form\Element\Textarea',
71 71
                         'name' => 'mailConfirmationText',
72
-                         'options' => array('label' => /* @translate */ 'Confirmation mail text',
72
+                            'options' => array('label' => /* @translate */ 'Confirmation mail text',
73 73
                                             'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>' ))
74 74
         );
75 75
         
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
 
118 118
         $this->add(
119 119
             array(
120
-	            'type' => 'Settings/DisableElementsCapableFormSettingsFieldset',
121
-	            'name' => 'applyFormSettings',
122
-	            'options' => array(
120
+                'type' => 'Settings/DisableElementsCapableFormSettingsFieldset',
121
+                'name' => 'applyFormSettings',
122
+                'options' => array(
123 123
 	
124
-	            )
124
+                )
125 125
             )
126 126
         );
127 127
     }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Mail/Forward.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -115,27 +115,27 @@
 block discarded – undo
115 115
      */
116 116
     protected function generateHtml()
117 117
     {
118
-         /*
118
+            /*
119 119
           * "ViewHelperManager" defined by ZF2
120 120
           *  see http://framework.zend.com/manual/2.0/en/modules/zend.mvc.services.html#viewmanager
121 121
           */
122
-	    $viewManager = $this->viewManager;
122
+        $viewManager = $this->viewManager;
123 123
 
124 124
         return $viewManager->get("partial")->__invoke('applications/mail/forward', array("application"=>$this->application));
125 125
     }
126 126
 
127 127
     public function setContainer(ContainerInterface $container)
128 128
     {
129
-    	$this->viewManager = $container->get('ViewHelperManager');
129
+        $this->viewManager = $container->get('ViewHelperManager');
130 130
     }
131 131
 	
132
-	/**
133
-	 * @param ContainerInterface $container
134
-	 * @param $requestedName
135
-	 * @param array $options
136
-	 *
137
-	 * @return Forward
138
-	 */
132
+    /**
133
+     * @param ContainerInterface $container
134
+     * @param $requestedName
135
+     * @param array $options
136
+     *
137
+     * @return Forward
138
+     */
139 139
     static public function factory(ContainerInterface $container,$requestedName,array $options=[])
140 140
     {
141 141
         $ob = new self($options);
Please login to merge, or discard this patch.
module/Core/Module.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -112,16 +112,16 @@
 block discarded – undo
112 112
         $eventManager->attach(
113 113
             MvcEvent::EVENT_DISPATCH_ERROR,
114 114
             function ($event) {
115
-            	if($event instanceof MvcEvent){
116
-		            $application = $event->getApplication();
115
+                if($event instanceof MvcEvent){
116
+                    $application = $event->getApplication();
117 117
 		            
118
-		            if ($application::ERROR_EXCEPTION == $event->getError()) {
119
-			            $ex = $event->getParam('exception');
120
-			            if (404 == $ex->getCode()) {
121
-				            $event->setError($application::ERROR_CONTROLLER_NOT_FOUND);
122
-			            }
123
-		            }
124
-	            }
118
+                    if ($application::ERROR_EXCEPTION == $event->getError()) {
119
+                        $ex = $event->getParam('exception');
120
+                        if (404 == $ex->getCode()) {
121
+                            $event->setError($application::ERROR_CONTROLLER_NOT_FOUND);
122
+                        }
123
+                    }
124
+                }
125 125
             },
126 126
             500
127 127
         );
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/AbstractRepository.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function getService($name)
44 44
     {
45
-    	/* @TODO: [ZF3] ->getServiceLocator() should be removed in future */
46
-    	$config = $this->dm->getConfiguration();
45
+        /* @TODO: [ZF3] ->getServiceLocator() should be removed in future */
46
+        $config = $this->dm->getConfiguration();
47 47
         return $this->dm->getConfiguration()->getServiceLocator()->get($name);
48 48
     }
49 49
 
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
     {
127 127
         $this->checkEntityType($entity);
128 128
         $this->dm->remove($entity);
129
-		if($flush){
130
-			$this->dm->flush($entity);
131
-		}
129
+        if($flush){
130
+            $this->dm->flush($entity);
131
+        }
132 132
         return $this;
133 133
     }
134 134
 
Please login to merge, or discard this patch.
src/Core/Repository/DoctrineMongoODM/ServiceLocatorAwareConfiguration.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 class ServiceLocatorAwareConfiguration extends Configuration
16 16
 {
17
-	public function setServiceLocator($serviceLocator)
17
+    public function setServiceLocator($serviceLocator)
18 18
     {
19 19
         $this->attributes['serviceLocator'] = $serviceLocator;
20 20
         return $this;
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/DoctrineMongoODM/DocumentManagerFactory.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,17 +22,17 @@
 block discarded – undo
22 22
  */
23 23
 class DocumentManagerFactory implements FactoryInterface
24 24
 {
25
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
26
-		$container->setAllowOverride(true);
27
-		$container->setFactory('doctrine.configuration.odm_default', new ConfigurationFactory('odm_default'));
28
-		$container->setAllowOverride(false);
25
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
26
+        $container->setAllowOverride(true);
27
+        $container->setFactory('doctrine.configuration.odm_default', new ConfigurationFactory('odm_default'));
28
+        $container->setAllowOverride(false);
29 29
 		
30
-		$configFactory = new ConfigurationFactory('odm_default');
31
-		$config = $configFactory->createService($container);
30
+        $configFactory = new ConfigurationFactory('odm_default');
31
+        $config = $configFactory->createService($container);
32 32
 		
33
-		$dm = $container->get('doctrine.documentmanager.odm_default');
34
-		$dm = DoctrineDocumentManager::create($dm->getConnection(), $config, $dm->getEventManager());
35
-		$dm->getSchemaManager()->ensureIndexes();
36
-		return $dm;
37
-	}
33
+        $dm = $container->get('doctrine.documentmanager.odm_default');
34
+        $dm = DoctrineDocumentManager::create($dm->getConnection(), $config, $dm->getEventManager());
35
+        $dm->getSchemaManager()->ensureIndexes();
36
+        return $dm;
37
+    }
38 38
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/RepositoryServiceFactory.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@
 block discarded – undo
21 21
 class RepositoryServiceFactory implements FactoryInterface
22 22
 {
23 23
 	
24
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
25
-		$dm      = $container->get('Core/DocumentManager');
26
-		$service = new RepositoryService($dm);
24
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
25
+        $dm      = $container->get('Core/DocumentManager');
26
+        $service = new RepositoryService($dm);
27 27
 		
28
-		/* Attach persistence listener */
29
-		$application = $container->get('Application');
30
-		$events      = $application->getEventManager();
31
-		$persistenceListener = new PersistenceListener($service);
32
-		$persistenceListener->attach($events);
28
+        /* Attach persistence listener */
29
+        $application = $container->get('Application');
30
+        $events      = $application->getEventManager();
31
+        $persistenceListener = new PersistenceListener($service);
32
+        $persistenceListener->attach($events);
33 33
 		
34
-		return $service;
35
-	}
34
+        return $service;
35
+    }
36 36
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Filter/XssFilterFactory.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -22,20 +22,20 @@
 block discarded – undo
22 22
  */
23 23
 class XssFilterFactory implements FactoryInterface
24 24
 {
25
-	/**
26
-	 * @param ContainerInterface $container
27
-	 * @param string $requestedName
28
-	 * @param array|null $options
29
-	 *
30
-	 * @return XssFilter
31
-	 */
32
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
33
-	{
34
-		$htmlPurifier = new Filter\HTMLPurifierFilter();
35
-		$htmlPurifier->setConfig(array("Cache.SerializerPath" => "cache/HtmlPurifier"));
25
+    /**
26
+     * @param ContainerInterface $container
27
+     * @param string $requestedName
28
+     * @param array|null $options
29
+     *
30
+     * @return XssFilter
31
+     */
32
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
33
+    {
34
+        $htmlPurifier = new Filter\HTMLPurifierFilter();
35
+        $htmlPurifier->setConfig(array("Cache.SerializerPath" => "cache/HtmlPurifier"));
36 36
 		
37
-		$filter = new XssFilter($htmlPurifier);
37
+        $filter = new XssFilter($htmlPurifier);
38 38
 		
39
-		return $filter;
40
-	}
39
+        return $filter;
40
+    }
41 41
 }
Please login to merge, or discard this patch.