Completed
Branch feature/pre-split (7f7f80)
by Anton
05:56
created
source/Spiral/Database/Drivers/MySQL/MySQLDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function identifier($identifier)
59 59
     {
60
-        return $identifier == '*' ? '*' : '`' . str_replace('`', '``', $identifier) . '`';
60
+        return $identifier == '*' ? '*' : '`'.str_replace('`', '``', $identifier).'`';
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
source/Spiral/Database/Injections/Parameter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     {
109 109
         if (is_array($this->value)) {
110 110
             //Array were mocked
111
-            return '(' . trim(str_repeat('?, ', count($this->value)), ', ') . ')';
111
+            return '('.trim(str_repeat('?, ', count($this->value)), ', ').')';
112 112
         }
113 113
 
114 114
         return '?';
Please login to merge, or discard this patch.
source/Spiral/Support/Serializer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         //Delimiters between rows and sub-arrays.
50
-        $subIndent = "\n" . str_repeat(self::INDENT, $level + 2);
51
-        $keyIndent = "\n" . str_repeat(self::INDENT, $level + 1);
50
+        $subIndent = "\n".str_repeat(self::INDENT, $level + 2);
51
+        $keyIndent = "\n".str_repeat(self::INDENT, $level + 1);
52 52
 
53 53
         //No keys for associated array
54 54
         $associated = array_diff_key($array, array_keys(array_keys($array)));
@@ -70,28 +70,28 @@  discard block
 block discarded – undo
70 70
                         var_export($key, true),
71 71
                         $innerIndent, ' ',
72 72
                         STR_PAD_RIGHT
73
-                    ) . " => ";
73
+                    )." => ";
74 74
             }
75 75
 
76 76
             if (!is_array($value)) {
77
-                $result[] = $prefix . $this->packValue($value);
77
+                $result[] = $prefix.$this->packValue($value);
78 78
                 continue;
79 79
             }
80 80
 
81 81
             if ($value === []) {
82
-                $result[] = $prefix . "[]";
82
+                $result[] = $prefix."[]";
83 83
                 continue;
84 84
             }
85 85
 
86 86
             $subArray = $this->packArray($value, $level + 1);
87
-            $result[] = $prefix . "[{$subIndent}" . $subArray . "{$keyIndent}]";
87
+            $result[] = $prefix."[{$subIndent}".$subArray."{$keyIndent}]";
88 88
         }
89 89
 
90 90
         if ($level !== 0) {
91 91
             return $result ? join(",{$keyIndent}", $result) : "";
92 92
         }
93 93
 
94
-        return "[{$keyIndent}" . join(",{$keyIndent}", $result) . "\n]";
94
+        return "[{$keyIndent}".join(",{$keyIndent}", $result)."\n]";
95 95
     }
96 96
 
97 97
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         if (is_string($value) && class_exists($value)) {
124 124
             $reflection = new \ReflectionClass($value);
125 125
 
126
-            return '\\' . $reflection->getName() . '::class';
126
+            return '\\'.$reflection->getName().'::class';
127 127
         }
128 128
 
129 129
         return var_export($value, true);
Please login to merge, or discard this patch.
source/Spiral/Reactor/Prototypes/Declaration.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
      */
30 30
     protected function indent($string, $indent = 0)
31 31
     {
32
-        return str_repeat(self::INDENT, max($indent, 0)) . $string;
32
+        return str_repeat(self::INDENT, max($indent, 0)).$string;
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
source/Spiral/Reactor/DeclarationAggregator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
         $result = '';
203 203
 
204 204
         foreach ($this->elements as $element) {
205
-            $result .= $element->render($indentLevel) . "\n\n";
205
+            $result .= $element->render($indentLevel)."\n\n";
206 206
         }
207 207
 
208 208
         return rtrim($result, "\n");
Please login to merge, or discard this patch.
source/Spiral/Reactor/Body/DocComment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $lines = $this->getLines();
25 25
 
26
-        array_walk($lines, function (&$line) use ($search, $replace) {
26
+        array_walk($lines, function(&$line) use ($search, $replace) {
27 27
             $line = str_replace($search, $replace, $line);
28 28
         });
29 29
 
Please login to merge, or discard this patch.
source/Spiral/Reactor/Body/Source.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     public function render($indentLevel = 0)
112 112
     {
113 113
         $lines = $this->lines;
114
-        array_walk($lines, function (&$line) use ($indentLevel) {
114
+        array_walk($lines, function(&$line) use ($indentLevel) {
115 115
             $line = $this->indent($line, $indentLevel);
116 116
         });
117 117
 
Please login to merge, or discard this patch.
source/Spiral/Reactor/ClassDeclaration/PropertyDeclaration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     {
94 94
         $result = '';
95 95
         if (!$this->docComment->isEmpty()) {
96
-            $result .= $this->docComment->render($indentLevel) . "\n";
96
+            $result .= $this->docComment->render($indentLevel)."\n";
97 97
         }
98 98
 
99 99
         $result .= $this->indent("{$this->access} \${$this->getName()}", $indentLevel);
Please login to merge, or discard this patch.
source/Spiral/Reactor/FileDeclaration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $result = "<?php\n";
109 109
 
110 110
         if (!$this->docComment->isEmpty()) {
111
-            $result .= $this->docComment->render($indentLevel) . "\n";
111
+            $result .= $this->docComment->render($indentLevel)."\n";
112 112
         }
113 113
 
114 114
         if (!empty($this->namespace)) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
 
118 118
         if (!empty($this->uses)) {
119
-            $result .= $this->renderUses($indentLevel) . "\n\n";
119
+            $result .= $this->renderUses($indentLevel)."\n\n";
120 120
         }
121 121
 
122 122
         $result .= $this->elements->render($indentLevel);
Please login to merge, or discard this patch.