Completed
Push — master ( d2919a...aba5d5 )
by Ernestas
10s
created
src/Traits/Helpers/ChecksSingletons.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $this->assertSame(
23 23
             $this->app->make($class),
24 24
             $this->app->make($class),
25
-            $class.' must be registered as singleton'
25
+            $class . ' must be registered as singleton'
26 26
         );
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Traits/Helpers/BuildsMocks.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
         $mock = $builder->getMock();
123 123
         $mockedClass = get_class($mock);
124 124
         $helperClass = $this->getClassShortName(TestHelpersMock::class);
125
-        $wrapperClass = $helperClass.'_'.$mockedClass.'_'.str_random();
125
+        $wrapperClass = $helperClass . '_' . $mockedClass . '_' . str_random();
126 126
 
127
-        $template = file_get_contents(__DIR__.'/../../Helpers/TestHelpersMock.php');
127
+        $template = file_get_contents(__DIR__ . '/../../Helpers/TestHelpersMock.php');
128 128
         $template = str_replace("class $helperClass", "class $wrapperClass extends $mockedClass", $template);
129 129
         $template = substr($template, strpos($template, "class $wrapperClass"));
130 130
 
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
             $wrapperClass,
134 134
             $mock,
135 135
             $mockClass,
136
-            ! is_null($constructorArgs),
137
-            (array) $constructorArgs
136
+            !is_null($constructorArgs),
137
+            (array)$constructorArgs
138 138
         );
139 139
     }
140 140
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $proxyTarget,
158 158
         string $type = '',
159 159
         bool $callOriginalConstructor = false,
160
-        array $arguments = [],
160
+        array $arguments = [ ],
161 161
         bool $callAutoload = false,
162 162
         bool $returnValueGeneration = true
163 163
     ) {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
         if ($callOriginalConstructor &&
167 167
             is_string($type) &&
168
-            ! interface_exists($type, $callAutoload)) {
168
+            !interface_exists($type, $callAutoload)) {
169 169
             if (count($arguments) === 0) {
170 170
                 $object = new $className;
171 171
             } else {
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     private function evalClass(string $code, string $className): void
194 194
     {
195
-        if (! class_exists($className, false)) {
195
+        if (!class_exists($className, false)) {
196 196
             eval($code);
197 197
         }
198 198
     }
@@ -211,11 +211,11 @@  discard block
 block discarded – undo
211 211
         string $injectorClass = null
212 212
     ): void {
213 213
         if ($onlyForInjector) {
214
-            if (! isset($injectorClass)) {
214
+            if (!isset($injectorClass)) {
215 215
                 throw MockInjectionException::injectorNotGiven();
216 216
             }
217 217
 
218
-            $this->app->when($injectorClass)->needs($mockClass)->give(function () use ($mock) {
218
+            $this->app->when($injectorClass)->needs($mockClass)->give(function() use ($mock) {
219 219
                 return $mock;
220 220
             });
221 221
         } else {
Please login to merge, or discard this patch.