Passed
Push — master ( 4e6e6f...89006f )
by Maxim
03:08
created
src/Types/Iterateable.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
      * @param $var mixed variable
24 24
      * @return bool result of the checkout
25 25
      */
26
-	final public static function is($var): bool
27
-	{
28
-		return is_iterable($var) && static::isThis($var);
29
-	}
26
+    final public static function is($var): bool
27
+    {
28
+        return is_iterable($var) && static::isThis($var);
29
+    }
30 30
 
31 31
     /**
32 32
      * Checks the type of the variable.
@@ -34,5 +34,5 @@  discard block
 block discarded – undo
34 34
      * @param $var mixed variable
35 35
      * @return bool result of the checkout
36 36
      */
37
-	abstract protected static function isThis($var): bool;
37
+    abstract protected static function isThis($var): bool;
38 38
 }
Please login to merge, or discard this patch.
src/InjectedStringSuit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function resolveClassNames(string $namespace): string
34 34
     {
35
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
35
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
36 36
             return str_replace(':', ':\\', $matches[0]);
37 37
         }, $this->expression);
38 38
         $expression = preg_replace('/(?<!:):(?=([a-zA-Z_][a-zA-Z0-9_]*))/', "$namespace\\", $expression);
39
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
39
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
40 40
             return str_replace(':\\', ':', $matches[0]);
41 41
         }, $expression);
42 42
         return $expression;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         return preg_replace_callback(
48 48
             '/`([^`]|\\\\`)+((?<!\\\\)`)/',
49
-            function (array $matches) use($charlist): string {
49
+            function(array $matches) use($charlist): string {
50 50
                 return addcslashes($matches[0], $charlist);
51 51
             },
52 52
             $this->expression
Please login to merge, or discard this patch.
src/TypeProcessor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      * 
199 199
      * @param string $type type
200 200
      */
201
-    private function replaceBool(string &$type): void
201
+    private function replaceBool(string & $type): void
202 202
     {
203 203
         switch ($type) {
204 204
             case 'bool':
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param string $type type
214 214
      */
215
-    private function replaceInt(string &$type): void
215
+    private function replaceInt(string & $type): void
216 216
     {
217 217
         switch ($type) {
218 218
             case 'int':
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      *
227 227
      * @param string $type type
228 228
      */
229
-    private function replaceFloat(string &$type): void
229
+    private function replaceFloat(string & $type): void
230 230
     {
231 231
         switch ($type) {
232 232
             case 'int':
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      * 
241 241
      * @param string $type type
242 242
      */
243
-    private function replaceComplex(string &$type): void
243
+    private function replaceComplex(string & $type): void
244 244
     {
245 245
         switch ($type) {
246 246
             case 'array':
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      *
256 256
      * @param string $type type
257 257
      */
258
-    private function replaceAxs(string &$type): void
258
+    private function replaceAxs(string & $type): void
259 259
     {
260 260
         switch ($type) {
261 261
             case 'string':
Please login to merge, or discard this patch.