Passed
Push — master ( 45ac95...d04c5a )
by Carsten
12:05
created
module/Core/test/CoreTest/Form/DefaultButtonsFieldsetTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
     }
36 36
 
37 37
     /**
38
-    * @todo
39
-    */
38
+     * @todo
39
+     */
40 40
     /*
41 41
     public function testInit()
42 42
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/BaseFormTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     protected function setUp(): void
27 27
     {
28 28
         $this->target = $this->getMockBuilder('Core\Form\BaseForm')
29
-                             ->disableOriginalConstructor()
30
-                             ->setMethods(array('AddButtonsFieldset', 'AddBaseFieldset', 'add'))
31
-                             ->getMock();
29
+                                ->disableOriginalConstructor()
30
+                                ->setMethods(array('AddButtonsFieldset', 'AddBaseFieldset', 'add'))
31
+                                ->getMock();
32 32
     }
33 33
 
34 34
     public function testConstructor()
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
     }
51 51
     
52 52
     /**
53
-    * @todo
54
-    */
53
+     * @todo
54
+     */
55 55
     /*
56 56
     public function testAddBaseFieldsetWithoutBaseFieldsetSet()
57 57
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/FormTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-    * @todo
45
-    */
44
+     * @todo
45
+     */
46 46
     /*
47 47
     public function testAdd()
48 48
     {
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-    * @todo
111
-    */
110
+     * @todo
111
+     */
112 112
     /*
113 113
     public function testDisableElement()
114 114
     {    }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $fs->setName('myField');
32 32
         $target = new Form();
33 33
         $target->add($fs);
34
-        $this->target=$target;
34
+        $this->target = $target;
35 35
     }
36 36
 
37 37
     public function testConstructor()
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
     public function testSetDescriptionWithAdditionalParams()
78 78
     {
79 79
         $input = "this is my description";
80
-        $this->target->setDescription($input, ['p1','p2']);
80
+        $this->target->setDescription($input, ['p1', 'p2']);
81 81
         $this->assertAttributeSame(['description' => $input,
82
-                                    'description_params' => ['p1','p2']], 'options', $this->target);
82
+                                    'description_params' => ['p1', 'p2']], 'options', $this->target);
83 83
     }
84 84
 
85 85
     /**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $this->target->addClass($classes);
153 153
         }
154 154
 
155
-        $x=$this->target->getAttribute('class');
155
+        $x = $this->target->getAttribute('class');
156 156
         $this->assertEquals($x, $expected);
157 157
     }
158 158
 
Please login to merge, or discard this patch.
module/Install/test/InstallTest/ModuleTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     protected function setUp(): void
50 50
     {
51
-        $this->moduleDir = realpath(__DIR__ . '/../../');
51
+        $this->moduleDir = realpath(__DIR__.'/../../');
52 52
         $this->target    = new Module();
53 53
     }
54 54
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function testProvidesCorrectConfigArray()
64 64
     {
65
-        $config = include $this->moduleDir . '/config/module.config.php';
65
+        $config = include $this->moduleDir.'/config/module.config.php';
66 66
 
67 67
         $this->assertEquals($config, $this->target->getConfig());
68 68
     }
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
         $application->expects($this->once())->method('getServiceManager')->willReturn($services);
102 102
 
103 103
         $event = $this->getMockBuilder('\Laminas\Mvc\MvcEvent')
104
-                      ->disableOriginalConstructor()
105
-                      ->getMock();
104
+                        ->disableOriginalConstructor()
105
+                        ->getMock();
106 106
 
107 107
         $event->expects($this->once())->method('getApplication')->willReturn($application);
108 108
 
Please login to merge, or discard this patch.
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.
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.