Passed
Push — master ( 6292f6...e5b7ab )
by Mathias
10:49 queued 04:59
created
module/Core/src/Factory/Service/HtmlPurifierFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $options = $container->get('Core/Options');
32 32
         $cacheDir = $options->getCacheDir();
33 33
 
34
-        if(!is_dir($cacheDir)){
34
+        if (!is_dir($cacheDir)) {
35 35
             mkdir($cacheDir, 0775, true);
36 36
         }
37 37
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Service/HtmlPurifierFactoryTest.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
             ->with('Core/Options')
31 31
             ->willReturn($options);
32 32
 
33
-        $purifier = (new HtmlPurifierFactory())($container,'some-name');
33
+        $purifier = (new HtmlPurifierFactory())($container, 'some-name');
34 34
         $config = $purifier->config->getAll();
35 35
         $this->assertEquals($cacheDir, $config['Cache']['SerializerPath']);
36 36
     }
Please login to merge, or discard this patch.
Settings/src/Form/View/Helper/FormDisableElementsCapableFormSettings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         $headscript->appendFile($basepath('modules/Settings/js/forms.decfs.js'));
38 38
 
39
-        return '<ul class="disable-elements-list" id="' . $element->getAttribute('id') . '-list"' . '>'
39
+        return '<ul class="disable-elements-list" id="'.$element->getAttribute('id').'-list"'.'>'
40 40
                . $this->renderCheckboxes($element->getCheckboxes())
41 41
                . '</ul>';
42 42
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                     unset($boxes['__all__']);
60 60
                 }
61 61
 
62
-                $markup .= '<ul class="disable-elements">' . $this->renderCheckboxes($boxes) . '</ul>';
62
+                $markup .= '<ul class="disable-elements">'.$this->renderCheckboxes($boxes).'</ul>';
63 63
             } else {
64 64
                 $markup .= $this->renderCheckbox($boxes);
65 65
             }
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
         /* @var $renderer \Laminas\View\Renderer\PhpRenderer */
82 82
         $renderer = $this->getView();
83 83
         if (null !== $class) {
84
-            $box->setAttribute('class', $box->getAttribute('class') . ' ' . $class);
84
+            $box->setAttribute('class', $box->getAttribute('class').' '.$class);
85 85
         }
86 86
         $markup = $renderer->formCheckBox($box);
87 87
         if ($desc = $box->getOption('description')) {
88 88
             $desc = $this->getTranslator()->translate($desc, $this->getTranslatorTextDomain());
89
-            $markup .= '<div class="alert alert-info"><p>' . $desc . '</p></div>';
89
+            $markup .= '<div class="alert alert-info"><p>'.$desc.'</p></div>';
90 90
         }
91 91
         return $markup;
92 92
     }
Please login to merge, or discard this patch.
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/config/module.config.php 1 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/EmployeesFieldsetFactoryTest.php 1 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/Controller/ManageController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $this->appOptions       = $appOptions;
71 71
         $this->appEvents        = $appEvents;
72 72
         $this->translator       = $translator;
73
-        $this->container         = $container;
73
+        $this->container = $container;
74 74
     }
75 75
     
76 76
     /**
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 
172 172
         
173
-        $format=$this->params()->fromQuery('format');
173
+        $format = $this->params()->fromQuery('format');
174 174
 
175 175
         if ($application->isDraft()) {
176 176
             $list = false;
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                    && ($network = $this->params()->fromQuery('network'))
299 299
                    && ($data    = $this->params()->fromPost('data'))
300 300
         ) {
301
-            $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network;
301
+            $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network;
302 302
             $profile      = new $profileClass();
303 303
             $profile->setData(\Laminas\Json\Json::decode($data, \Laminas\Json\Json::TYPE_ARRAY));
304 304
         } else {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
         
417 417
         $this->acl($application, 'forward');
418 418
         
419
-        $translator   = $this->translator;
419
+        $translator = $this->translator;
420 420
          
421 421
         if (!$emailAddress) {
422 422
             throw new \InvalidArgumentException('An email address must be supplied.');
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
     public function deleteAction()
457 457
     {
458 458
         $id          = $this->params('id');
459
-        $repositories= $this->repositories;
459
+        $repositories = $this->repositories;
460 460
         $repository  = $repositories->get('Applications/Application');
461 461
         $application = $repository->find($id);
462 462
         
@@ -466,8 +466,8 @@  discard block
 block discarded – undo
466 466
 
467 467
         $this->acl($application, 'delete');
468 468
 
469
-        $events   = $this->appEvents;
470
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]);
469
+        $events = $this->appEvents;
470
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]);
471 471
         
472 472
         $repositories->remove($application);
473 473
         
Please login to merge, or discard this patch.