Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Settings/src/Form/Element/DisableElementsCapableFormSettings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
                 $this->prepareCheckboxes($box, $prefix);
195 195
             } else {
196 196
                 /* @var $box Checkbox */
197
-                $box->setName($prefix . $box->getName());
197
+                $box->setName($prefix.$box->getName());
198 198
             }
199 199
         }
200 200
     }
@@ -231,10 +231,10 @@  discard block
 block discarded – undo
231 231
         foreach ($form as $element) {
232 232
             /* @var $element \Laminas\Form\ElementInterface|DisableElementsCapableInterface|DisableCapableInterface */
233 233
             $name = $element->getName();
234
-            $elementName = $prefix . '[' . $element->getName() . ']';
234
+            $elementName = $prefix.'['.$element->getName().']';
235 235
             $options = $element->getOption('disable_capable');
236 236
             $boxOptions = array(
237
-                'long_label'  => isset($options['label']) ? $options['label'] : ($element->getLabel() ? : $name),
237
+                'long_label'  => isset($options['label']) ? $options['label'] : ($element->getLabel() ?: $name),
238 238
                 'description' => isset($options['description']) ? $options['description']
239 239
                         : 'Toggle availability of this element in the form.',
240 240
             );
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
                     $return[$name] = $this->buildCheckboxes($element, $elementName);
245 245
                 }
246 246
                 if ($element->isDisableCapable()) {
247
-                    $box = $this->createCheckbox($elementName . '[__all__]', $boxOptions);
247
+                    $box = $this->createCheckbox($elementName.'[__all__]', $boxOptions);
248 248
                     $box->setAttribute('checked', true);
249 249
                     $return[$name]['__all__'] = $box;
250 250
                 }
Please login to merge, or discard this patch.
module/Install/src/Listener/TracyListener.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -23,31 +23,31 @@
 block discarded – undo
23 23
  */
24 24
 class TracyListener implements ListenerAggregateInterface
25 25
 {
26
-	use ListenerAggregateTrait;
26
+    use ListenerAggregateTrait;
27 27
 	
28
-	/**
29
-	 * {@inheritDoc}
30
-	 * @see \Laminas\EventManager\ListenerAggregateInterface::attach()
31
-	 */
32
-	public function attach(EventManagerInterface $events, $priority = 1)
33
-	{
34
-		$this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'handleError'], $priority);
35
-		$this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER_ERROR, [$this, 'handleError'], $priority);
36
-	}
28
+    /**
29
+     * {@inheritDoc}
30
+     * @see \Laminas\EventManager\ListenerAggregateInterface::attach()
31
+     */
32
+    public function attach(EventManagerInterface $events, $priority = 1)
33
+    {
34
+        $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'handleError'], $priority);
35
+        $this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER_ERROR, [$this, 'handleError'], $priority);
36
+    }
37 37
 	
38
-	/**
39
-	 * @param MvcEvent $e
40
-	 */
41
-	public function handleError(MvcEvent $e)
42
-	{
43
-		if ($e->getError() == \Laminas\Mvc\Application::ERROR_EXCEPTION) {
44
-			if (Debugger::$productionMode) {
45
-				// log an exception in production environment (this will send email as well if email address is set)
46
-				Debugger::log($e->getParam('exception'), Debugger::ERROR);
47
-			} else {
48
-				// just re-throw an exception in non-production environment to let tracy display so called blue screen
49
-				throw $e->getParam('exception');
50
-			}
51
-		}
52
-	}
38
+    /**
39
+     * @param MvcEvent $e
40
+     */
41
+    public function handleError(MvcEvent $e)
42
+    {
43
+        if ($e->getError() == \Laminas\Mvc\Application::ERROR_EXCEPTION) {
44
+            if (Debugger::$productionMode) {
45
+                // log an exception in production environment (this will send email as well if email address is set)
46
+                Debugger::log($e->getParam('exception'), Debugger::ERROR);
47
+            } else {
48
+                // just re-throw an exception in non-production environment to let tracy display so called blue screen
49
+                throw $e->getParam('exception');
50
+            }
51
+        }
52
+    }
53 53
 }
Please login to merge, or discard this patch.
module/Install/config/module.config.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -8,15 +8,15 @@  discard block
 block discarded – undo
8 8
  */
9 9
 
10 10
 return [
11
-	'tracy' => [
12
-		'enabled' => true, // flag whether to load tracy at all
13
-		'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array
14
-		'bar' => false, // bool = enabled|Toggle nette diagnostics bar.
15
-		'strict' => true, // bool = cause immediate death|int = matched against error severity
16
-		'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files)
17
-		'email' => null, // in production mode notifies the recipient
18
-		'email_snooze' => 900 // interval for sending email in seconds
19
-	],
11
+    'tracy' => [
12
+        'enabled' => true, // flag whether to load tracy at all
13
+        'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array
14
+        'bar' => false, // bool = enabled|Toggle nette diagnostics bar.
15
+        'strict' => true, // bool = cause immediate death|int = matched against error severity
16
+        'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files)
17
+        'email' => null, // in production mode notifies the recipient
18
+        'email_snooze' => 900 // interval for sending email in seconds
19
+    ],
20 20
 
21 21
     'doctrine' => [
22 22
         'driver' => [
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
         'invokables' => [
36 36
             'Install/Listener/LanguageSetter' => 'Install\Listener\LanguageSetter',
37 37
         ],
38
-	    'factories' => [
39
-		    'mvctranslator' => \Laminas\Mvc\I18n\TranslatorFactory::class,
40
-		    'FilterManager' => \Laminas\Filter\FilterPluginManagerFactory::class,
38
+        'factories' => [
39
+            'mvctranslator' => \Laminas\Mvc\I18n\TranslatorFactory::class,
40
+            'FilterManager' => \Laminas\Filter\FilterPluginManagerFactory::class,
41 41
             'Tracy' => [\Core\Service\Tracy::class,'factory'],
42 42
             'Core/Options' => 'Core\Factory\ModuleOptionsFactory',
43 43
         ],
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
     ],
64 64
 
65 65
     'controllers' => [
66
-	    'abstract_factories' => [
67
-	    	\Install\Factory\Controller\LazyControllerFactory::class
68
-	    ],
66
+        'abstract_factories' => [
67
+            \Install\Factory\Controller\LazyControllerFactory::class
68
+        ],
69 69
     ],
70 70
 
71 71
     'controller_plugins' => [
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	    'factories' => [
39 39
 		    'mvctranslator' => \Laminas\Mvc\I18n\TranslatorFactory::class,
40 40
 		    'FilterManager' => \Laminas\Filter\FilterPluginManagerFactory::class,
41
-            'Tracy' => [\Core\Service\Tracy::class,'factory'],
41
+            'Tracy' => [\Core\Service\Tracy::class, 'factory'],
42 42
             'Core/Options' => 'Core\Factory\ModuleOptionsFactory',
43 43
         ],
44 44
         'abstract_factories' => [
@@ -108,12 +108,12 @@  discard block
 block discarded – undo
108 108
         'exception_template' => 'error/index',
109 109
         // Map template to files. Speeds up the lookup through the template stack.
110 110
         'template_map' => [
111
-            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
112
-            'error/index' => __DIR__ . '/../view/error/index.phtml',
111
+            'layout/layout' => __DIR__.'/../view/layout/layout.phtml',
112
+            'error/index' => __DIR__.'/../view/error/index.phtml',
113 113
         ],
114 114
         // Where to look for view templates not mapped above
115 115
         'template_path_stack' => [
116
-            __DIR__ . '/../view',
116
+            __DIR__.'/../view',
117 117
         ],
118 118
     ],
119 119
 
@@ -127,13 +127,13 @@  discard block
 block discarded – undo
127 127
         'translation_file_patterns' => [
128 128
             [
129 129
                 'type' => 'gettext',
130
-                'base_dir' => __DIR__ . '/../language',
130
+                'base_dir' => __DIR__.'/../language',
131 131
                 'pattern' => '%s.mo',
132 132
                 'text_domain' => 'Install',
133 133
             ],
134 134
             [
135 135
                 'type'     => 'phparray',
136
-                'base_dir' => __DIR__ . '/../../Core/language',
136
+                'base_dir' => __DIR__.'/../../Core/language',
137 137
                 'pattern' => 'Zend_Validate.%s.php',
138 138
                 'text_domain' => 'default',
139 139
             ],
Please login to merge, or discard this patch.
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/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.