Completed
Pull Request — master (#189)
by Valentin
02:37
created
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/Translator/Catalogue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     protected function loadDomain(string $domain)
213 213
     {
214
-        $data = $this->memory->loadData(Translator::MEMORY . '.' . $this->domainSection($domain));
214
+        $data = $this->memory->loadData(Translator::MEMORY.'.'.$this->domainSection($domain));
215 215
 
216 216
         if (empty($data)) {
217 217
             $data = [];
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     protected function saveDomain(string $domain, array $data)
234 234
     {
235
-        $this->memory->saveData(Translator::MEMORY . '.' . $this->domainSection($domain), $data);
235
+        $this->memory->saveData(Translator::MEMORY.'.'.$this->domainSection($domain), $data);
236 236
     }
237 237
 
238 238
     /**
Please login to merge, or discard this patch.
source/Spiral/Core/Memory.php 1 patch
Spacing   +3 added lines, -3 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 &$filename = null)
55
+    public function loadData(string $section, string & $filename = null)
56 56
     {
57 57
         $filename = $this->memoryFilename($section);
58 58
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $filename = $this->memoryFilename($section);
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);
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
         $name = strtolower(str_replace(['/', '\\'], '-', $name));
94 94
 
95 95
         //Runtime cache
96
-        return $this->directory . $name . static::EXTENSION;
96
+        return $this->directory.$name.static::EXTENSION;
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
source/Spiral/Core/AbstractCore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             );
41 41
         }
42 42
 
43
-        $benchmark = $this->benchmark('callAction', $controller . '::' . ($action ?? '~default~'));
43
+        $benchmark = $this->benchmark('callAction', $controller.'::'.($action ?? '~default~'));
44 44
 
45 45
         //Making sure that all static functionality works well
46 46
         $iocScope = self::staticContainer($this->container);
Please login to merge, or discard this patch.
source/Spiral/Console/ConsoleDispatcher.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
      * @param \Closure                                          $closure
210 210
      * @param \Symfony\Component\Console\Output\OutputInterface $output
211 211
      *
212
-     * @return mixed
212
+     * @return OutputInterface
213 213
      */
214 214
     private function runScoped(\Closure $closure, OutputInterface $output)
215 215
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         //Let's keep output reference to render exceptions
103 103
         $this->output = $output ?? new ConsoleOutput();
104 104
 
105
-        $this->runScoped(function () use ($input) {
105
+        $this->runScoped(function() use ($input) {
106 106
             $this->consoleApplication()->run($input, $this->output);
107 107
         }, $this->output);
108 108
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         $output = $output ?? new BufferedOutput();
133 133
 
134
-        $code = $this->runScoped(function () use ($input, $output, $command) {
134
+        $code = $this->runScoped(function() use ($input, $output, $command) {
135 135
             return $this->consoleApplication()->find($command)->run($input, $output);
136 136
         }, $output);
137 137
 
Please login to merge, or discard this patch.
source/Spiral/Views/Configs/ViewsConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     public function cacheDirectory(): string
78 78
     {
79
-        return rtrim($this->config['cache']['directory'], '/') . '/';
79
+        return rtrim($this->config['cache']['directory'], '/').'/';
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
source/Spiral/Views/Engines/StemplerEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
 
195 195
             $benchmark = $this->benchmark(
196 196
                 'process',
197
-                get_class($processor) . '-{' . $source->getName()
197
+                get_class($processor).'-{'.$source->getName()
198 198
             );
199 199
 
200 200
             $source->getCode();
Please login to merge, or discard this patch.
source/Spiral/Views/Processors/TranslateProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@
 block discarded – undo
57 57
 
58 58
         //Translator options must automatically route this view name to specific domain
59 59
         $domain = $this->translator->resolveDomain(
60
-            $this->options['prefix'] . str_replace(['/', '\\'], '-', $bundle)
60
+            $this->options['prefix'].str_replace(['/', '\\'], '-', $bundle)
61 61
         );
62 62
 
63 63
         //We are not forcing locale for now
64 64
 
65 65
         return preg_replace_callback(
66 66
             $this->options['pattern'],
67
-            function ($matches) use ($domain) {
67
+            function($matches) use ($domain) {
68 68
                 return $this->translator->trans($matches[1], [], $domain);
69 69
             },
70 70
             $code
Please login to merge, or discard this patch.
source/functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      * @param string $prefix  Value prefix, "{" by default.
106 106
      * @param string $postfix Value postfix "}" by default.
107 107
      *
108
-     * @return mixed
108
+     * @return string
109 109
      */
110 110
     function interpolate(
111 111
         string $format,
Please login to merge, or discard this patch.