Completed
Branch 09branch (80326b)
by Anton
05:21
created
source/Spiral/Commands/Migrations/StatusCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
source/Spiral/Session/Handlers/FileHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,6 +103,6 @@
 block discarded – undo
103 103
      */
104 104
     protected function getFilename($session_id)
105 105
     {
106
-        return $this->directory . FilesInterface::SEPARATOR . $session_id;
106
+        return $this->directory.FilesInterface::SEPARATOR.$session_id;
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
source/Spiral/Session/Handlers/CacheHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function destroy($session_id)
56 56
     {
57
-        $this->store->delete($this->options['prefix'] . $session_id);
57
+        $this->store->delete($this->options['prefix'].$session_id);
58 58
     }
59 59
 
60 60
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function read($session_id)
80 80
     {
81
-        return $this->store->get($this->options['prefix'] . $session_id);
81
+        return $this->store->get($this->options['prefix'].$session_id);
82 82
     }
83 83
 
84 84
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function write($session_id, $session_data)
88 88
     {
89 89
         return $this->store->set(
90
-            $this->options['prefix'] . $session_id,
90
+            $this->options['prefix'].$session_id,
91 91
             $session_data,
92 92
             $this->lifetime
93 93
         );
Please login to merge, or discard this patch.
source/Spiral/Modules/Registrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
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}'");
Please login to merge, or discard this patch.
source/Spiral/Modules/ConfigInjector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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] != ',') {
Please login to merge, or discard this patch.
source/Spiral/Modules/Publisher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
source/Spiral/Validation/Checkers/AddressChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     {
53 53
         if (!$requireScheme && stripos($url, '://') === false) {
54 54
             //Forcing scheme (not super great idea)
55
-            $url = 'http://' . $url;
55
+            $url = 'http://'.$url;
56 56
         }
57 57
 
58 58
         if ((bool)filter_var($url, FILTER_VALIDATE_URL)) {
Please login to merge, or discard this patch.
source/Spiral/Commands/ORM/SchemaCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
     }
133 133
 
134 134
     /**
135
-     * @param $builder
135
+     * @param SchemaBuilder $builder
136 136
      */
137 137
     protected function showChanges($builder)
138 138
     {
Please login to merge, or discard this patch.
source/views/exceptions/dark/slow.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             &bull; caused by <?= get_class($previous) ?>:
110 110
             <strong><?= $previous->getMessage() ?></strong>
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.