@@ -60,7 +60,7 @@ |
||
60 | 60 | $state->getTimeCreated()->format('Y-m-d H:i:s'), |
61 | 61 | $state->getStatus() == State::STATUS_PENDING |
62 | 62 | ? self::PENDING |
63 | - : '<info>' . $state->getTimeExecuted()->format('Y-m-d H:i:s') . '</info>' |
|
63 | + : '<info>'.$state->getTimeExecuted()->format('Y-m-d H:i:s').'</info>' |
|
64 | 64 | ]); |
65 | 65 | } |
66 | 66 |
@@ -124,7 +124,7 @@ |
||
124 | 124 | */ |
125 | 125 | protected function configFilename(string $config): string |
126 | 126 | { |
127 | - $filename = $this->directories->directory('config') . $config . ConfigFactory::EXTENSION; |
|
127 | + $filename = $this->directories->directory('config').$config.ConfigFactory::EXTENSION; |
|
128 | 128 | |
129 | 129 | if (!$this->files->exists($filename)) { |
130 | 130 | throw new RegistratorException("Unable to find filename for config '{$config}'"); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $tempFilename = tempnam(sys_get_temp_dir(), 'spl'); |
104 | 104 | file_put_contents($tempFilename, $this->render()); |
105 | 105 | |
106 | - $process = new Process(PHP_BINARY . " -l {$tempFilename}"); |
|
106 | + $process = new Process(PHP_BINARY." -l {$tempFilename}"); |
|
107 | 107 | |
108 | 108 | return $process->run() === 0; |
109 | 109 | } finally { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | |
210 | 210 | $result = []; |
211 | 211 | foreach ($lines as $line) { |
212 | - $result[] = $indent . $line; |
|
212 | + $result[] = $indent.$line; |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | if (!empty($line) && $line[strlen($line) - 1] != ',') { |
@@ -127,7 +127,7 @@ |
||
127 | 127 | foreach ($finder->getIterator() as $file) { |
128 | 128 | $this->publish( |
129 | 129 | (string)$file, |
130 | - $destination . '/' . $file->getRelativePathname(), |
|
130 | + $destination.'/'.$file->getRelativePathname(), |
|
131 | 131 | $merge, |
132 | 132 | $mode |
133 | 133 | ); |
@@ -132,7 +132,7 @@ |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
135 | - * @param $builder |
|
135 | + * @param SchemaBuilder $builder |
|
136 | 136 | */ |
137 | 137 | protected function showChanges($builder) |
138 | 138 | { |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @return array |
16 | 16 | */ |
17 | -$argumenter = function (array $arguments) use ($dumper, $styler, &$dumps) { |
|
17 | +$argumenter = function(array $arguments) use ($dumper, $styler, &$dumps) { |
|
18 | 18 | $result = []; |
19 | 19 | foreach ($arguments as $argument) { |
20 | 20 | $display = $type = strtolower(gettype($argument)); |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | return $result; |
59 | 59 | }; |
60 | 60 | |
61 | -$highlightQuery = function (string $query) { |
|
62 | - if(class_exists('SqlFormatter')) { |
|
61 | +$highlightQuery = function(string $query) { |
|
62 | + if (class_exists('SqlFormatter')) { |
|
63 | 63 | \SqlFormatter::$pre_attributes = ''; |
64 | 64 | |
65 | 65 | //Cutting container |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | <?php |
106 | 106 | $previous = $exception->getPrevious(); |
107 | - while($previous instanceof Throwable) { |
|
107 | + while ($previous instanceof Throwable) { |
|
108 | 108 | ?><div class="previous"> |
109 | 109 | • caused by <?= get_class($previous) ?>: |
110 | 110 | <strong><?= $previous->getMessage() ?></strong> |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | ?> |
117 | 117 | </div> |
118 | 118 | |
119 | - <?php if($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
119 | + <?php if ($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
120 | 120 | <div class="query"><?= $highlightQuery($exception->getQuery()) ?></div> |
121 | 121 | <?php } ?> |
122 | 122 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $arguments = $argumenter($trace['args']); |
143 | 143 | } |
144 | 144 | |
145 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
145 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
146 | 146 | if (isset($trace['type']) && isset($trace['class'])) { |
147 | 147 | $reflection = new ReflectionClass($trace['class']); |
148 | 148 | $function = \Spiral\interpolate( |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | continue; |
214 | 214 | } |
215 | 215 | |
216 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
216 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
217 | 217 | if (isset($trace['type']) && isset($trace['class'])) { |
218 | 218 | $reflection = new ReflectionClass($trace['class']); |
219 | 219 | $function = \Spiral\interpolate( |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @return array |
16 | 16 | */ |
17 | -$argumenter = function (array $arguments) use ($dumper, $styler, &$dumps) { |
|
17 | +$argumenter = function(array $arguments) use ($dumper, $styler, &$dumps) { |
|
18 | 18 | $result = []; |
19 | 19 | foreach ($arguments as $argument) { |
20 | 20 | $display = $type = strtolower(gettype($argument)); |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | return $result; |
51 | 51 | }; |
52 | 52 | |
53 | -$highlightQuery = function (string $query) { |
|
54 | - if(class_exists('SqlFormatter')) { |
|
53 | +$highlightQuery = function(string $query) { |
|
54 | + if (class_exists('SqlFormatter')) { |
|
55 | 55 | \SqlFormatter::$pre_attributes = ''; |
56 | 56 | |
57 | 57 | //Cutting container |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | in <i><?= $exception->getFile() ?></i> at <strong>line <?= $exception->getLine() ?></strong> |
87 | 87 | <?php |
88 | 88 | $previous = $exception->getPrevious(); |
89 | - while($previous instanceof Throwable) { |
|
89 | + while ($previous instanceof Throwable) { |
|
90 | 90 | ?><div class="previous"> |
91 | 91 | • caused by <?= get_class($previous) ?>: |
92 | 92 | <strong><?= $previous->getMessage() ?></strong> |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ?> |
99 | 99 | </div> |
100 | 100 | |
101 | - <?php if($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
101 | + <?php if ($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
102 | 102 | <div class="query"><?= $highlightQuery($exception->getQuery()) ?></div> |
103 | 103 | <?php } ?> |
104 | 104 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $arguments = $argumenter($trace['args']); |
125 | 125 | } |
126 | 126 | |
127 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
127 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
128 | 128 | if (isset($trace['type']) && isset($trace['class'])) { |
129 | 129 | $reflection = new ReflectionClass($trace['class']); |
130 | 130 | $function = \Spiral\interpolate( |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | continue; |
193 | 193 | } |
194 | 194 | |
195 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
195 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
196 | 196 | if (isset($trace['type']) && isset($trace['class'])) { |
197 | 197 | $reflection = new ReflectionClass($trace['class']); |
198 | 198 | $function = \Spiral\interpolate( |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @param array $arguments |
14 | 14 | * @return array |
15 | 15 | */ |
16 | -$argumenter = function (array $arguments) use ($dumper, $styler, &$dumps) { |
|
16 | +$argumenter = function(array $arguments) use ($dumper, $styler, &$dumps) { |
|
17 | 17 | $result = []; |
18 | 18 | foreach ($arguments as $argument) { |
19 | 19 | $display = $type = strtolower(gettype($argument)); |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | return $result; |
58 | 58 | }; |
59 | 59 | |
60 | -$highlightQuery = function (string $query) { |
|
61 | - if(class_exists('SqlFormatter')) { |
|
60 | +$highlightQuery = function(string $query) { |
|
61 | + if (class_exists('SqlFormatter')) { |
|
62 | 62 | \SqlFormatter::$pre_attributes = ''; |
63 | 63 | |
64 | 64 | //Cutting container |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | <?php |
105 | 105 | $previous = $exception->getPrevious(); |
106 | - while($previous instanceof Throwable) { |
|
106 | + while ($previous instanceof Throwable) { |
|
107 | 107 | ?><div class="previous"> |
108 | 108 | • caused by <?= get_class($previous) ?>: |
109 | 109 | <strong><?= $previous->getMessage() ?></strong> |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | ?> |
116 | 116 | </div> |
117 | 117 | |
118 | - <?php if($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
118 | + <?php if ($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
119 | 119 | <div class="query"><?= $highlightQuery($exception->getQuery()) ?></div> |
120 | 120 | <?php } ?> |
121 | 121 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $arguments = $argumenter($trace['args']); |
141 | 141 | } |
142 | 142 | |
143 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
143 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
144 | 144 | if (isset($trace['type']) && isset($trace['class'])) { |
145 | 145 | $reflection = new ReflectionClass($trace['class']); |
146 | 146 | $function = Spiral\interpolate( |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | continue; |
209 | 209 | } |
210 | 210 | |
211 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
211 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
212 | 212 | if (isset($trace['type']) && isset($trace['class'])) { |
213 | 213 | $reflection = new ReflectionClass($trace['class']); |
214 | 214 | $function = Spiral\interpolate( |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @param array $arguments |
14 | 14 | * @return array |
15 | 15 | */ |
16 | -$argumenter = function (array $arguments) use ($dumper, $styler, &$dumps) { |
|
16 | +$argumenter = function(array $arguments) use ($dumper, $styler, &$dumps) { |
|
17 | 17 | $result = []; |
18 | 18 | foreach ($arguments as $argument) { |
19 | 19 | $display = $type = strtolower(gettype($argument)); |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | return $result; |
50 | 50 | }; |
51 | 51 | |
52 | -$highlightQuery = function (string $query) { |
|
53 | - if(class_exists('SqlFormatter')) { |
|
52 | +$highlightQuery = function(string $query) { |
|
53 | + if (class_exists('SqlFormatter')) { |
|
54 | 54 | \SqlFormatter::$pre_attributes = ''; |
55 | 55 | |
56 | 56 | //Cutting container |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | in <i><?= $exception->getFile() ?></i> at <strong>line <?= $exception->getLine() ?></strong> |
86 | 86 | <?php |
87 | 87 | $previous = $exception->getPrevious(); |
88 | - while($previous instanceof Throwable) { |
|
88 | + while ($previous instanceof Throwable) { |
|
89 | 89 | ?><div class="previous"> |
90 | 90 | • caused by <?= get_class($previous) ?>: |
91 | 91 | <strong><?= $previous->getMessage() ?></strong> |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ?> |
98 | 98 | </div> |
99 | 99 | |
100 | - <?php if($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
100 | + <?php if ($exception instanceof \Spiral\Database\Exceptions\QueryExceptionInterface) {?> |
|
101 | 101 | <div class="query"><?= $highlightQuery($exception->getQuery()) ?></div> |
102 | 102 | <?php } ?> |
103 | 103 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $arguments = $argumenter($trace['args']); |
124 | 124 | } |
125 | 125 | |
126 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
126 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
127 | 127 | if (isset($trace['type']) && isset($trace['class'])) { |
128 | 128 | $reflection = new ReflectionClass($trace['class']); |
129 | 129 | $function = \Spiral\interpolate( |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | continue; |
190 | 190 | } |
191 | 191 | |
192 | - $function = '<strong>' . $trace['function'] . '</strong>'; |
|
192 | + $function = '<strong>'.$trace['function'].'</strong>'; |
|
193 | 193 | if (isset($trace['type']) && isset($trace['class'])) { |
194 | 194 | $reflection = new ReflectionClass($trace['class']); |
195 | 195 | $function = \Spiral\interpolate( |