Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Auth/src/Auth/Form/SocialProfiles.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -61,14 +61,14 @@
 block discarded – undo
61 61
         return $this->useDefaultValidation ? \Zend\Form\Form::isValid() : parent::isValid();
62 62
     }
63 63
     
64
-	/**
65
-	 * @param bool $bool
66
-	 * @return SocialProfiles
67
-	 */
68
-	public function setUseDefaultValidation($bool)
69
-	{
70
-		$this->useDefaultValidation = (bool)$bool;
64
+    /**
65
+     * @param bool $bool
66
+     * @return SocialProfiles
67
+     */
68
+    public function setUseDefaultValidation($bool)
69
+    {
70
+        $this->useDefaultValidation = (bool)$bool;
71 71
 		
72
-		return $this;
73
-	}
72
+        return $this;
73
+    }
74 74
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 	 */
68 68
 	public function setUseDefaultValidation($bool)
69 69
 	{
70
-		$this->useDefaultValidation = (bool)$bool;
70
+		$this->useDefaultValidation = (bool) $bool;
71 71
 		
72 72
 		return $this;
73 73
 	}
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/ManageController.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         $forms = $serviceLocator->get('forms');
44 44
         $container = $forms->get('Auth/userprofilecontainer');
45 45
         $user = $serviceLocator->get('AuthenticationService')->getUser(); /* @var $user \Auth\Entity\User */
46
-        $postProfiles = (array)$this->params()->fromPost('social_profiles');
46
+        $postProfiles = (array) $this->params()->fromPost('social_profiles');
47 47
         $userProfiles = $user->getProfile();
48 48
         $formSocialProfiles = $forms->get('Auth/SocialProfiles')
49 49
             ->setUseDefaultValidation(true)
50
-            ->setData(['social_profiles' => array_map(function ($array)
50
+            ->setData(['social_profiles' => array_map(function($array)
51 51
             {
52 52
                 return $array['data'];
53 53
             }, $userProfiles)]);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                                 ));
127 127
                             } else {
128 128
                                 $profile = [
129
-                                    'auth' => (array)$authProfile,
129
+                                    'auth' => (array) $authProfile,
130 130
                                     'data' => \Zend\Json\Json::decode($dataProfiles[$network])
131 131
                                 ];
132 132
                                 $user->addProfile($network, $profile);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 }
137 137
                 
138 138
                 // keep data in sync & properly decoded
139
-                $formSocialProfiles->setData(['social_profiles' => array_map(function ($array)
139
+                $formSocialProfiles->setData(['social_profiles' => array_map(function($array)
140 140
                 {
141 141
                     return \Zend\Json\Json::decode($array) ?: '';
142 142
                 }, $dataProfiles)]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
                     'content' => $content,
97 97
                     )
98 98
                 );
99
-            }
100
-            elseif ($postProfiles) {
99
+            } elseif ($postProfiles) {
101 100
                 $formSocialProfiles->setData($this->params()->fromPost());
102 101
                 
103 102
                 if ($formSocialProfiles->isValid()) {
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Container.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     /**
99 99
      * Gets an iterator to iterate over the enabled formulars.
100 100
      *
101
-     * @return \ArrayIterator
101
+     * @return PriorityList
102 102
      * @see IteratorAggregate::getIterator()
103 103
      */
104 104
     public function getIterator()
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
         $formAction = $formInstance->getAttribute('action');
322 322
 
323 323
         if (empty($formAction)) {
324
-            $formInstance->setAttribute('action', '?form=' . $formName);
324
+            $formInstance->setAttribute('action', '?form='.$formName);
325 325
         }
326 326
 
327 327
         if (isset($form['label'])) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
                 $spec->setParent($this);
387 387
             }
388 388
 
389
-            $spec = [ '__instance__' => $spec, 'name' => $key, 'entity' => '*' ];
389
+            $spec = ['__instance__' => $spec, 'name' => $key, 'entity' => '*'];
390 390
         }
391 391
 
392 392
         if (!is_array($spec)) {
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
         }
506 506
         $this->activeForms = array_filter(
507 507
             $this->activeForms,
508
-            function ($item) use ($key) {
508
+            function($item) use ($key) {
509 509
                 return !in_array($item, $key);
510 510
             }
511 511
         );
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
      * @throws \InvalidArgumentException
520 520
      * @return Container
521 521
      */
522
-    public function setEntity($entity, $key='*')
522
+    public function setEntity($entity, $key = '*')
523 523
     {
524 524
         if (!$entity instanceof EntityInterface)
525 525
         {
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
      *
543 543
      * @return \Core\Entity\EntityInterface
544 544
      */
545
-    public function getEntity($key='*')
545
+    public function getEntity($key = '*')
546 546
     {
547 547
         return isset($this->entities[$key]) ? $this->entities[$key] : null;
548 548
     }
@@ -745,10 +745,10 @@  discard block
 block discarded – undo
745 745
         $actualKey = $this->getActiveFormActual();
746 746
         if (isset($actualKey)) {
747 747
             $forms = array_keys($this->forms);
748
-            $formsFlip =  array_flip($forms);
748
+            $formsFlip = array_flip($forms);
749 749
             $index = $formsFlip[$actualKey];
750 750
             if (0 < $index) {
751
-                $key = $forms[$index-1];
751
+                $key = $forms[$index - 1];
752 752
             }
753 753
         }
754 754
         return $key;
@@ -765,10 +765,10 @@  discard block
 block discarded – undo
765 765
         $actualKey = $this->getActiveFormActual();
766 766
         if (isset($actualKey)) {
767 767
             $forms = array_keys($this->forms);
768
-            $formsFlip =  array_flip($forms);
768
+            $formsFlip = array_flip($forms);
769 769
             $index = $formsFlip[$actualKey];
770 770
             if ($index < count($forms) - 1) {
771
-                $key = $forms[$index+1];
771
+                $key = $forms[$index + 1];
772 772
             }
773 773
         }
774 774
         return $key;
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
      */
783 783
     public function formatAction($name)
784 784
     {
785
-        return sprintf('%s%s', $this->hasParent() ? $this->getName() . '.' : '', $name);
785
+        return sprintf('%s%s', $this->hasParent() ? $this->getName().'.' : '', $name);
786 786
     }
787 787
 
788 788
     /**
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
     public function getActionFor($key)
793 793
     {
794 794
         if (isset($this->forms[$key])) {
795
-            return '?form=' . $this->formatAction($this->forms[$key]['name']);
795
+            return '?form='.$this->formatAction($this->forms[$key]['name']);
796 796
         }
797 797
     }
798 798
 }
799 799
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/Module.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function getConsoleBanner(Console $console)
37 37
     {
38 38
         $version = `git describe 2>/dev/null`;
39
-        $name = 'YAWIK ' . trim($version);
39
+        $name = 'YAWIK '.trim($version);
40 40
         $width = $console->getWidth();
41 41
         return sprintf(
42 42
             "==%1\$s==\n%2\$s%3\$s\n**%1\$s**\n",
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
         $sharedManager       = $eventManager->getSharedManager();
73 73
         
74 74
         if (!\Zend\Console\Console::isConsole()) {
75
-            $redirectCallback = function () use ($e) {
75
+            $redirectCallback = function() use ($e) {
76 76
                 $routeMatch = $e->getRouteMatch();
77 77
                 $lang = $routeMatch ? $routeMatch->getParam('lang', 'en') : 'en';
78
-                $uri    = $e->getRouter()->getBaseUrl() . '/' . $lang . '/error';
78
+                $uri = $e->getRouter()->getBaseUrl().'/'.$lang.'/error';
79 79
                 
80
-                header('Location: ' . $uri);
80
+                header('Location: '.$uri);
81 81
             };
82 82
             
83 83
             $errorHandlerListener = new ErrorHandlerListener($sm->get('ErrorLogger'), $redirectCallback);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         
110 110
         $eventManager->attach(
111 111
             MvcEvent::EVENT_DISPATCH_ERROR,
112
-            function ($event) {
112
+            function($event) {
113 113
                 $application = $event->getApplication();
114 114
                 if ($application::ERROR_EXCEPTION == $event->getError()) {
115 115
                     $ex = $event->getParam('exception');
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         );
124 124
         $eventManager->attach(
125 125
             MvcEvent::EVENT_DISPATCH,
126
-            function ($event) use ($eventManager) {
126
+            function($event) use ($eventManager) {
127 127
                 $eventManager->trigger('postDispatch', $event);
128 128
             },
129 129
             -150
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function getConfig()
140 140
     {
141
-        $config = include __DIR__ . '/config/module.config.php';
141
+        $config = include __DIR__.'/config/module.config.php';
142 142
         return $config;
143 143
         if (\Zend\Console\Console::isConsole()) {
144 144
             $config['doctrine']['configuration']['odm_default']['generate_proxies'] = false;
@@ -158,9 +158,9 @@  discard block
 block discarded – undo
158 158
         return array(
159 159
             'Zend\Loader\StandardAutoloader' => array(
160 160
                 'namespaces' => array(
161
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
162
-                    'CoreTest' => __DIR__ . '/test/' . 'CoreTest',
163
-                    'CoreTestUtils' => __DIR__ . '/test/CoreTestUtils',
161
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
162
+                    'CoreTest' => __DIR__.'/test/'.'CoreTest',
163
+                    'CoreTestUtils' => __DIR__.'/test/CoreTestUtils',
164 164
                 ),
165 165
             ),
166 166
         );
Please login to merge, or discard this patch.
Applications/src/Applications/Factory/Listener/StatusChangeFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @param ServiceLocatorInterface $serviceLocator
29 29
      *
30
-     * @return mixed
30
+     * @return StatusChange
31 31
      */
32 32
     public function createService(ServiceLocatorInterface $serviceLocator)
33 33
     {
Please login to merge, or discard this patch.
module/Applications/src/Applications/Listener/StatusChange.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 
158 158
     /**
159 159
      * @param Application $application
160
-     * @param             $status
160
+     * @param             string $status
161 161
      *
162 162
      * @return AddressList
163 163
      */
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @param ApplicationEvent $e
70 70
      */
71
-    public function prepareFormData(ApplicationEvent $e){
71
+    public function prepareFormData(ApplicationEvent $e) {
72 72
         if ($e->isPostRequest()) {
73 73
             return;
74 74
         }
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
                 $key = 'mailRejectionText';
96 96
                 break;
97 97
             default:
98
-                throw new \InvalidArgumentException('Unknown status value: ' .$status);
98
+                throw new \InvalidArgumentException('Unknown status value: '.$status);
99 99
         }
100
-        $mailText      = $settings->$key ? $settings->$key : '';
100
+        $mailText = $settings->$key ? $settings->$key : '';
101 101
         $mail->setBody($mailText);
102 102
         $mail->setApplication($this->application);
103 103
         $mailText = $mail->getBodyText();
104
-        $mailSubject   = sprintf(
104
+        $mailSubject = sprintf(
105 105
             $this->translator->translate('Your application dated %s'),
106 106
             strftime('%x', $this->application->getDateCreated()->getTimestamp())
107 107
         );
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @param ApplicationEvent $event
123 123
      */
124
-    public function  sendMail(ApplicationEvent $event){
124
+    public function  sendMail(ApplicationEvent $event) {
125 125
         if (!$event->isPostRequest()) {
126 126
             return;
127 127
         }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $this->mailService->send($mail);
168 168
 
169 169
 
170
-        $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0] );
170
+        $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0]);
171 171
         $this->application->changeStatus($status, $historyText);
172 172
         $event->setNotification($historyText);
173 173
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      *
179 179
      * @return AddressList
180 180
      */
181
-    protected function getRecipient( Application $application, $status) {
181
+    protected function getRecipient(Application $application, $status) {
182 182
 
183 183
         $recipient = Status::ACCEPTED == $status
184 184
             ? $application->getJob()->getUser()->getInfo()
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         $email = $recipient->getEmail();
188 188
         $name  = $recipient->getDisplayName(false);
189 189
 
190
-        return $name ? [ $email => $name ] : [ $email ];
190
+        return $name ? [$email => $name] : [$email];
191 191
     }
192 192
 
193 193
 }
194 194
\ No newline at end of file
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/WorkflowSettingsInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      * @param bool $acceptApplicationByDepartmentManager
18 18
      * @return WorkflowSettings
19 19
      */
20
-    public function setAcceptApplicationByDepartmentManager( $acceptApplicationByDepartmentManager );
20
+    public function setAcceptApplicationByDepartmentManager($acceptApplicationByDepartmentManager);
21 21
 
22 22
     /**
23 23
      * Gets AcceptApplicationByDepartmentManager
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param bool $assignDepartmentManagersToJobs
33 33
      * @return WorkflowSettings
34 34
      */
35
-    public function setAssignDepartmentManagersToJobs( $assignDepartmentManagersToJobs );
35
+    public function setAssignDepartmentManagersToJobs($assignDepartmentManagersToJobs);
36 36
 
37 37
     /**
38 38
      * Gets AssignDepartmentManagersToJobs
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/WorkflowSettings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
      * @param bool $acceptApplicationByDepartmentManager
41 41
      * @return WorkflowSettings
42 42
      */
43
-    public function setAcceptApplicationByDepartmentManager( $acceptApplicationByDepartmentManager )
43
+    public function setAcceptApplicationByDepartmentManager($acceptApplicationByDepartmentManager)
44 44
     {
45
-        $this->acceptApplicationByDepartmentManager= $acceptApplicationByDepartmentManager;
45
+        $this->acceptApplicationByDepartmentManager = $acceptApplicationByDepartmentManager;
46 46
         return $this;
47 47
     }
48 48
     
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param bool $assignDepartmentManagersToJobs
63 63
      * @return WorkflowSettings
64 64
      */
65
-    public function setAssignDepartmentManagersToJobs( $assignDepartmentManagersToJobs )
65
+    public function setAssignDepartmentManagersToJobs($assignDepartmentManagersToJobs)
66 66
     {
67 67
         $this->assignDepartmentManagersToJobs = $assignDepartmentManagersToJobs;
68 68
         return $this;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     /**
143 143
      * @return bool
144 144
      */
145
-    public function getAutoConfirmMail(){
145
+    public function getAutoConfirmMail() {
146 146
         return $this->autoConfirmMail;
147 147
     }
148 148
 }
Please login to merge, or discard this patch.