Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
module/Organizations/src/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getConfig()
52 52
     {
53
-        return ModuleConfigLoader::load(__DIR__ . '/../config');
53
+        return ModuleConfigLoader::load(__DIR__.'/../config');
54 54
     }
55 55
 
56 56
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $createJobListener->attachShared($sharedManager);
65 65
 
66 66
         if ($e->getRequest() instanceof \Laminas\Http\Request) {
67
-            $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $event) {
67
+            $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $event) {
68 68
                 $serviceManager = $event->getApplication()
69 69
                     ->getServiceManager();
70 70
                 $options = $serviceManager->get('Organizations/ImageFileCacheOptions');
Please login to merge, or discard this patch.
module/Organizations/src/Controller/IndexController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         try {
135 135
             /* @var $handler \Organizations\Controller\Plugin\GetOrganizationHandler */
136 136
             $handler = $this->plugin('Organizations/GetOrganizationHandler');
137
-            $org  = $handler->process($this->params(), true);
137
+            $org = $handler->process($this->params(), true);
138 138
         } catch (MissingParentOrganizationException $e) {
139 139
             return $this->getErrorViewModel('no-parent');
140 140
         } catch (NotFoundException $e) {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             ];
146 146
         }
147 147
 
148
-        $container       = $this->getFormular($org);
148
+        $container = $this->getFormular($org);
149 149
 
150 150
         if (isset($formIdentifier) && $request->isPost()) {
151 151
             /* @var $form \Laminas\Form\FormInterface */
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             $form = $container->get($formIdentifier);
171 171
             $form->setData(array_merge($postData, $filesData));
172 172
             if (!isset($form)) {
173
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
173
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
174 174
             }
175 175
             $isValid = $form->isValid();
176 176
 
Please login to merge, or discard this patch.
module/Organizations/src/Controller/ProfileController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function indexAction()
80 80
     {
81 81
         $result = $this->pagination([
82
-            'params' => ['Organizations_Profile',[
82
+            'params' => ['Organizations_Profile', [
83 83
                     'q',
84 84
                     'count' => $this->options['count'],
85 85
                     'page' => 1,
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
         $result = $this->pagination([
137 137
             'params' => [
138
-                'Organization_Jobs',[
138
+                'Organization_Jobs', [
139 139
                     'q',
140 140
                     'organization_id' => $id,
141 141
                     'count' => $this->options['count'],
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             /* @var \Laminas\Paginator\Paginator $paginator */
155 155
             $paginator = $result['jobs'];
156 156
             $count = $paginator->getTotalItemCount();
157
-            if (0===$count) {
157
+            if (0 === $count) {
158 158
                 return $this->disabledProfileViewModel($organization);
159 159
             }
160 160
         }
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Form/EmployeeFieldsetFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@
 block discarded – undo
49 49
 
50 50
         $repos = $this->getMockBuilder('\Core\Repository\RepositoryService')->disableOriginalConstructor()->getMock();
51 51
         $repos->expects($this->once())
52
-              ->method('get')->with('Auth/User')->willReturn($users);
52
+                ->method('get')->with('Auth/User')->willReturn($users);
53 53
 
54 54
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
55 55
         $services->expects($this->once())
56
-                 ->method('get')->with('repositories')->willReturn($repos);
56
+                    ->method('get')->with('repositories')->willReturn($repos);
57 57
         
58 58
         $fieldset = $target->__invoke($services, 'irrelevant');
59 59
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Form/EmployeesFieldsetFactoryTest.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,15 +46,15 @@  discard block
 block discarded – undo
46 46
 
47 47
         $headscript = $this->getMockBuilder('\Laminas\View\Helper\HeadScript')->disableOriginalConstructor()->getMock();
48 48
         $headscript->expects($this->once())
49
-                   ->method('__call')
50
-                   ->with('appendFile', array('modules/Organizations/js/organizations.employees.js'))
51
-                   ->willReturn(null);
49
+                    ->method('__call')
50
+                    ->with('appendFile', array('modules/Organizations/js/organizations.employees.js'))
51
+                    ->willReturn(null);
52 52
 
53 53
         $basepath   = $this->getMockBuilder('\Laminas\View\Helper\BasePath')->disableOriginalConstructor()->getMock();
54 54
         $basepath->expects($this->once())
55
-                 ->method('__invoke')
56
-                 ->with('modules/Organizations/js/organizations.employees.js')
57
-                 ->will($this->returnArgument(0));
55
+                    ->method('__invoke')
56
+                    ->with('modules/Organizations/js/organizations.employees.js')
57
+                    ->will($this->returnArgument(0));
58 58
 
59 59
         $helpers = $this->getMockBuilder('\Laminas\View\HelperPluginManager')->disableOriginalConstructor()->getMock();
60 60
         $helpers->expects($this->exactly(2))
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
                 ->will($this->onConsecutiveCalls($headscript, $basepath));
67 67
 
68 68
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()
69
-                         ->getMock();
69
+                            ->getMock();
70 70
 
71 71
         $services->expects($this->once())
72
-                 ->method('get')
73
-                 ->with('ViewHelperManager')
74
-                 ->willReturn($helpers);
72
+                    ->method('get')
73
+                    ->with('ViewHelperManager')
74
+                    ->willReturn($helpers);
75 75
 
76 76
         $fieldset = $target->__invoke($services, 'irrelevant');
77 77
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                    ->with('appendFile', array('modules/Organizations/js/organizations.employees.js'))
51 51
                    ->willReturn(null);
52 52
 
53
-        $basepath   = $this->getMockBuilder('\Laminas\View\Helper\BasePath')->disableOriginalConstructor()->getMock();
53
+        $basepath = $this->getMockBuilder('\Laminas\View\Helper\BasePath')->disableOriginalConstructor()->getMock();
54 54
         $basepath->expects($this->once())
55 55
                  ->method('__invoke')
56 56
                  ->with('modules/Organizations/js/organizations.employees.js')
Please login to merge, or discard this patch.
module/Applications/src/Form/SettingsFieldset.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
     public function init()
42 42
     {
43 43
         $this->setName('emails')
44
-             ->setLabel(/* @translate */ 'E-Mail Notifications');
44
+                ->setLabel(/* @translate */ 'E-Mail Notifications');
45 45
         
46 46
         $this->add(
47 47
             array('type' => Checkbox::class,
48 48
                 'name' => 'mailAccess',
49 49
                 'label' => 'foo',
50 50
                 'options' => array('label' => /* @translate */ 'receive E-Mail alert',
51
-                                   'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
51
+                                    'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
52 52
                 )
53 53
         );
54 54
         $this->add(
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
             array('type' => 'Laminas\Form\Element\Checkbox',
63 63
                 'name' => 'autoConfirmMail',
64 64
                 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit',
65
-                                   'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
65
+                                    'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
66 66
                 )
67 67
         );
68 68
         $this->add(
69 69
             array('type' => 'Laminas\Form\Element\Textarea',
70 70
                         'name' => 'mailConfirmationText',
71
-                         'options' => array('label' => /* @translate */ 'Confirmation mail text',
71
+                            'options' => array('label' => /* @translate */ 'Confirmation mail text',
72 72
                                             '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>' ))
73 73
         );
74 74
         
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             array('type' => 'Laminas\Form\Element\Textarea',
70 70
                         'name' => 'mailConfirmationText',
71 71
                          'options' => array('label' => /* @translate */ 'Confirmation mail text',
72
-                                            '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>' ))
72
+                                            '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>'))
73 73
         );
74 74
         
75 75
         $this->add(
Please login to merge, or discard this patch.
module/Core/src/Listener/NotificationListener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
      */
43 43
     public function attachShared(SharedEventManagerInterface $events)
44 44
     {
45
-        $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this,'add'), 1);
46
-        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderJSON'), -240);
47
-        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderHTML'), -250);
45
+        $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this, 'add'), 1);
46
+        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderJSON'), -240);
47
+        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderHTML'), -250);
48 48
         // Sometimes the Dispatch-Event is not reached, for instance with a route-direct
49 49
         // but also for Events, that are happening after the Dispatch
50
-        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_FINISH, array($this,'renderHTML'), -250);
50
+        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_FINISH, array($this, 'renderHTML'), -250);
51 51
         return $this;
52 52
     }
53 53
 
Please login to merge, or discard this patch.
module/Core/src/Mail/HTMLTemplateMessage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             }
234 234
 
235 235
             /* @var \Laminas\Mvc\View\Http\ViewManager $viewManager */
236
-            $viewManager  = $this->serviceManager->get('ViewManager');
236
+            $viewManager = $this->serviceManager->get('ViewManager');
237 237
             $resolver = $this->serviceManager->get('ViewResolver');
238 238
 
239 239
             /* @var \Laminas\Mvc\MvcEvent $event */
@@ -241,13 +241,13 @@  discard block
 block discarded – undo
241 241
             $lang = $forceLanguage ?: $event->getRouteMatch()->getParam('lang');
242 242
 
243 243
 
244
-            if ($resolver->resolve($this->getTemplate() . '.' . $lang)) {
245
-                $viewModel->setTemplate($this->getTemplate() . '.' . $lang);
244
+            if ($resolver->resolve($this->getTemplate().'.'.$lang)) {
245
+                $viewModel->setTemplate($this->getTemplate().'.'.$lang);
246 246
             } else {
247 247
                 $viewModel->setTemplate($this->getTemplate());
248 248
             }
249 249
 
250
-            $view         = $viewManager->getView();
250
+            $view = $viewManager->getView();
251 251
 
252 252
             $viewModel->setVariables($this->getVariables());
253 253
             $viewModel->setVariable('mail', $this);
Please login to merge, or discard this patch.
module/Core/src/Factory/View/Helper/SocialButtonsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         /* @var $serviceLocator \Laminas\View\HelperPluginManager */
31 31
         $options = $container->get('Auth/Options');
32 32
         $config = $container->get('Config');
33
-        $helper = new SocialButtons($options,$config);
33
+        $helper = new SocialButtons($options, $config);
34 34
         return $helper;
35 35
     }
36 36
 }
Please login to merge, or discard this patch.