Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Core/test/CoreTest/Listener/LanguageRouteListener/BaseTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     private $target;
39 39
 
40
-    private $inheritance = [ ListenerAggregateInterface::class ];
40
+    private $inheritance = [ListenerAggregateInterface::class];
41 41
 
42 42
     protected function setUp(): void
43 43
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function testDetach()
75 75
     {
76
-        $callableListener = [new CallableListenerMock(),'doSomething'];
76
+        $callableListener = [new CallableListenerMock(), 'doSomething'];
77 77
         
78 78
         $events = $this
79 79
             ->getMockBuilder(EventManager::class)
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Listener/ModuleVersionAdminWidgetProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                                         ->setMethods(['getLoadedModules'])
52 52
                                         ->getMock();
53 53
 
54
-        return [ $this->moduleManagerMock ];
54
+        return [$this->moduleManagerMock];
55 55
     }
56 56
 
57 57
     public function testConstructorInjectsDependencies()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/AdminControllerTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
 
44 44
     protected function setUp(): void
45 45
     {
46
-	    $events = $this->getMockBuilder(EventManager::class)
47
-	                   ->setMethods(['getEvent', 'triggerEvent'])
48
-	                   ->getMock();
49
-	    $this->target = new AdminController($events);
46
+        $events = $this->getMockBuilder(EventManager::class)
47
+                        ->setMethods(['getEvent', 'triggerEvent'])
48
+                        ->getMock();
49
+        $this->target = new AdminController($events);
50 50
     }
51 51
 
52 52
     public function testIndexAction()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     protected $target = '\Core\Controller\AdminController';
41 41
 
42
-    protected $inheritance = [ 'Laminas\Mvc\Controller\AbstractActionController' ];
42
+    protected $inheritance = ['Laminas\Mvc\Controller\AbstractActionController'];
43 43
 
44 44
     protected function setUp(): void
45 45
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Filter/XssFilterFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             ->willReturn($purifier);
30 30
 
31 31
         $factory = new XssFilterFactory();
32
-        $ob = $factory->__invoke($container,'some-name');
32
+        $ob = $factory->__invoke($container, 'some-name');
33 33
 
34 34
         $this->assertInstanceOf(XssFilter::class, $ob);
35 35
         $this->assertInstanceOf(HTMLPurifier::class, $ob->getHtmlPurifier());
Please login to merge, or discard this patch.
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.