Completed
Branch 09branch (ecf38f)
by Anton
04:23
created
source/views/exceptions/dark/slow.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
85 85
         in&nbsp;<i><?= $exception->getFile() ?></i>&nbsp;at&nbsp;<strong>line&nbsp;<?= $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
             &bull; caused by <?= get_class($previous) ?>:
91 91
             <strong><?= $previous->getMessage() ?></strong>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
source/views/exceptions/dark/fast.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
85 85
         in&nbsp;<i><?= $exception->getFile() ?></i>&nbsp;at&nbsp;<strong>line&nbsp;<?= $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
             &bull; caused by <?= get_class($previous) ?>:
91 91
             <strong><?= $previous->getMessage() ?></strong>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
source/views/exceptions/light/slow.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
85 85
         in&nbsp;<i><?= $exception->getFile() ?></i>&nbsp;at&nbsp;<strong>line&nbsp;<?= $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
             &bull; caused by <?= get_class($previous) ?>:
91 91
             <strong><?= $previous->getMessage() ?></strong>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
source/Spiral/Debug/LogManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      *
112 112
      * @param string $channel
113 113
      *
114
-     * @return array
114
+     * @return HandlerInterface[]
115 115
      */
116 116
     protected function createHandlers(string $channel): array
117 117
     {
Please login to merge, or discard this patch.
source/Spiral/Core/Memory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @param string $filename Cache filename.
54 54
      */
55
-    public function loadData(string $section, string $location = null, string &$filename = null)
55
+    public function loadData(string $section, string $location = null, string & $filename = null)
56 56
     {
57 57
         $filename = $this->memoryFilename($section, $location);
58 58
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $filename = $this->memoryFilename($section, $location);
76 76
 
77 77
         //We are packing data into plain php
78
-        $data = '<?php return ' . var_export($data, true) . ';';
78
+        $data = '<?php return '.var_export($data, true).';';
79 79
 
80 80
         //We need help to write file with directory creation
81 81
         $this->files->write($filename, $data, FilesInterface::RUNTIME, true);
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
         $name = strtolower(str_replace(['/', '\\'], '-', $name));
95 95
 
96 96
         if (!empty($location)) {
97
-            $location = $this->directory . $location . '/';
97
+            $location = $this->directory.$location.'/';
98 98
         } else {
99 99
             $location = $this->directory;
100 100
         }
101 101
 
102 102
         //Runtime cache
103
-        return $location . $name . static::EXTENSION;
103
+        return $location.$name.static::EXTENSION;
104 104
     }
105 105
 }
Please login to merge, or discard this patch.