Passed
Push — master ( 6292f6...e5b7ab )
by Mathias
10:49 queued 04:59
created
module/Core/test/CoreTest/Controller/IndexControllerTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @return IndexController
48 48
      */
49
-    public function setupTarget($auth=null, $layout=null, $forward=null, $config=null)
49
+    public function setupTarget($auth = null, $layout = null, $forward = null, $config = null)
50 50
     {
51 51
         $auth->expects($this->any())
52 52
             ->method('__invoke')
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
         $plugins->expects($this->any())
60 60
             ->method('get')
61 61
             ->willReturnMap([
62
-                ['Auth',null,$auth],
63
-                ['layout',null,$layout],
64
-                ['forward',null,$forward],
65
-                ['config',null,$config]
62
+                ['Auth', null, $auth],
63
+                ['layout', null, $layout],
64
+                ['forward', null, $forward],
65
+                ['config', null, $config]
66 66
             ])
67 67
         ;
68 68
         $this->pluginsMock = $plugins;
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             ->method('dispatch')
153 153
             ->with(
154 154
                 'Jobs/Index',
155
-                ['action' => 'dashboard','type'=>'recent']
155
+                ['action' => 'dashboard', 'type'=>'recent']
156 156
             )
157 157
             ->willReturnOnConsecutiveCalls(null, $viewModel)
158 158
         ;
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         ;
166 166
 
167 167
         $target = $this->getMockBuilder(IndexController::class)
168
-            ->setConstructorArgs([$this->moduleManager,$this->config])
168
+            ->setConstructorArgs([$this->moduleManager, $this->config])
169 169
             ->setMethods(['getResponse'])
170 170
             ->getMock()
171 171
         ;
Please login to merge, or discard this patch.
Core/test/CoreTest/Factory/Controller/Plugin/SearchFormFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     protected $target = SearchFormFactory::class;
43 43
 
44
-    protected $inheritance = [ FactoryInterface::class ];
44
+    protected $inheritance = [FactoryInterface::class];
45 45
 
46 46
     public function testCreatesPluginAndInjectsFormElementManager()
47 47
     {
Please login to merge, or discard this patch.
Core/test/CoreTest/Factory/Listener/DeleteImageSetListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         '@testCreateService' => ['mock' => ['__invoke' => ['@with' => 'getCreateServiceInvokationArgs', 'count' => 1]]],
40 40
     ];
41 41
 
42
-    private $inheritance = [ FactoryInterface::class ];
42
+    private $inheritance = [FactoryInterface::class];
43 43
 
44 44
     private function getCreateServiceInvokationArgs()
45 45
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/Service/ImagineFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         '@testCreateService' => ['mock' => ['__invoke' => ['@with' => 'getInvokationMockArgs', 'count' => 1]]],
42 42
     ];
43 43
 
44
-    private $inheritance = [ FactoryInterface::class ];
44
+    private $inheritance = [FactoryInterface::class];
45 45
 
46 46
     private function getInvokationMockArgs()
47 47
     {
@@ -88,6 +88,6 @@  discard block
 block discarded – undo
88 88
             }
89 89
         }
90 90
 
91
-        $this->fail('Imagine instance creation for ' .$lib . ' failed.');
91
+        $this->fail('Imagine instance creation for '.$lib.' failed.');
92 92
     }
93 93
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Factory/View/Helper/SnippetFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         '@testCreateService' => ['mock' => ['__invoke']],
45 45
     ];
46 46
 
47
-    private $inheritance = [ FactoryInterface::class ];
47
+    private $inheritance = [FactoryInterface::class];
48 48
 
49 49
 
50 50
     public function testCreateService()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/MailService/BaseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             'stringtemplate' => '\Core\Mail\StringTemplateMessage',
67 67
         );
68 68
         $factories = array(
69
-            'htmltemplate'   => [HTMLTemplateMessage::class,'factory']
69
+            'htmltemplate'   => [HTMLTemplateMessage::class, 'factory']
70 70
         );
71 71
 
72 72
         $this->assertAttributeEquals(false, 'shareByDefault', $target, 'shareByDefault is not set to FALSE');
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/StringTemplateMessageTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
         $addressList = new AddressList();
68 68
         $addressValue = ArrayUtils::iteratorToArray($addressList);
69 69
         return [
70
-            ['variables',[
70
+            ['variables', [
71 71
                 'value' => ['some' => 'value'],
72 72
                 'default' => [],
73 73
             ]],
74
-            ['variables',[
74
+            ['variables', [
75 75
                 'value' => $this,
76 76
                 'setter_exception' => [
77 77
                     \InvalidArgumentException::class,
@@ -79,30 +79,30 @@  discard block
 block discarded – undo
79 79
                 ],
80 80
 
81 81
             ]],
82
-            ['variables',[
82
+            ['variables', [
83 83
                 'value' => $addressList,
84 84
                 'expect' => $addressValue
85 85
             ]],
86
-            ['template',[
86
+            ['template', [
87 87
                 'value' => 'some-template',
88 88
                 'default' => null
89 89
             ]],
90
-            ['callbacks',[
90
+            ['callbacks', [
91 91
                 'value' => [
92
-                    'some' => [$this,'someCallback']
92
+                    'some' => [$this, 'someCallback']
93 93
                 ],
94 94
                 'default' => array(),
95 95
             ]],
96
-            ['callbacks',[
96
+            ['callbacks', [
97 97
                 'value' => $this,
98 98
                 'setter_exception' => [
99 99
                     \InvalidArgumentException::class,
100 100
                     'Expect an array or an instance of \Traversable, but received'
101 101
                 ]
102 102
             ]],
103
-            ['callbacks',[
103
+            ['callbacks', [
104 104
                 'value' => [
105
-                    'uncallable' => [$this,'notCallable']
105
+                    'uncallable' => [$this, 'notCallable']
106 106
                 ],
107 107
                 'setter_exception' => [
108 108
                     \InvalidArgumentException::class,
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     public function testGetBodyText()
116 116
     {
117 117
         $translator = $this->createMock(TranslatorInterface::class);
118
-        $target =  new StringTemplateMessage();
118
+        $target = new StringTemplateMessage();
119 119
         $target->setTranslator($translator);
120 120
 
121 121
         $translator->expects($this->any())
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             trim($target->getSubject())
156 156
         );
157 157
 
158
-        $target->setCallback('callback', function () {
158
+        $target->setCallback('callback', function() {
159 159
             return 'Hello From Callback!';
160 160
         });
161 161
         $target->setCallback('object', 'getSubject');
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/FileTransportTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $options = $this->createMock(FileOptions::class);
36 36
         $options->expects($this->once())
37 37
             ->method('getCallback')
38
-            ->willReturn([$this,'getFileName'])
38
+            ->willReturn([$this, 'getFileName'])
39 39
         ;
40 40
         $options->expects($this->exactly(2))
41 41
             ->method('getPath')
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/TranslatorAwareMessageTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
      */
39 39
     private $target = TranslatorAwareMessage::class;
40 40
 
41
-    private $inheritance = [ Message::class, TranslatorAwareInterface::class ];
41
+    private $inheritance = [Message::class, TranslatorAwareInterface::class];
42 42
 
43 43
     public function propertiesProvider()
44 44
     {
45
-        $setTranslator = function () {
45
+        $setTranslator = function() {
46 46
             $this->target->setTranslator(new Translator());
47 47
         };
48 48
 
Please login to merge, or discard this patch.