Completed
Branch 09branch (740a7d)
by Anton
02:52
created
source/functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      * @param array  $values  Arguments (key=>value). Will skip n
74 74
      * @param string $prefix  Value prefix, "{" by default.
75 75
      * @param string $postfix Value postfix "}" by default.
76
-     * @return mixed
76
+     * @return string
77 77
      */
78 78
     function interpolate($format, array $values, $prefix = '{', $postfix = '}')
79 79
     {
Please login to merge, or discard this patch.
source/Spiral/Http/Routing/Router.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,6 @@
 block discarded – undo
50 50
     /**
51 51
      * {@inheritdoc}
52 52
      *
53
-     * @param RouteInterface|array $default Default route or options to construct instance of
54
-     *                                      DirectRoute.
55
-     * @param bool                 $keepOutput
56 53
      * @throws RouterException
57 54
      */
58 55
     public function __construct(ContainerInterface $container, $basePath = '/')
Please login to merge, or discard this patch.
source/Spiral/Models/Traits/TimestampsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     private static function __timestamps__saveListener()
79 79
     {
80
-        return function (EntityEvent $event, $eventName) {
80
+        return function(EntityEvent $event, $eventName) {
81 81
             /**
82 82
              * @var DataEntity $model
83 83
              */
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     private static function __timestamps__describeListener()
113 113
     {
114
-        return function (DescribeEvent $event) {
114
+        return function(DescribeEvent $event) {
115 115
             if ($event->getProperty() != 'schema') {
116 116
                 return;
117 117
             }
Please login to merge, or discard this patch.
source/Spiral/Views/Engines/Twig/Extensions/SpiralExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function getFunctions()
35 35
     {
36 36
         return [
37
-            new \Twig_SimpleFunction('spiral', function ($alias) {
37
+            new \Twig_SimpleFunction('spiral', function($alias) {
38 38
                 return $this->container->get($alias);
39 39
             }),
40 40
             new \Twig_SimpleFunction('dump', 'dump')
Please login to merge, or discard this patch.
source/Spiral/Views/Processors/PrettifyProcessor.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $sourceLines = explode("\n", $source);
83 83
 
84 84
         //Step #3, no blank lines and html comments (will keep conditional commends)
85
-        $sourceLines = array_filter($sourceLines, function ($line) {
85
+        $sourceLines = array_filter($sourceLines, function($line) {
86 86
             return trim($line);
87 87
         });
88 88
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      * @param array  $values  Arguments (key=>value). Will skip n
74 74
      * @param string $prefix  Value prefix, "{" by default.
75 75
      * @param string $postfix Value postfix "}" by default.
76
-     * @return mixed
76
+     * @return string
77 77
      */
78 78
     function interpolate($format, array $values, $prefix = '{', $postfix = '}')
79 79
     {
Please login to merge, or discard this patch.
source/Spiral/Support/Strings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public static function shorter($string, $limit = 300)
74 74
     {
75 75
         if (mb_strlen($string) + 3 > $limit) {
76
-            return trim(mb_substr($string, 0, $limit - 3, 'UTF-8')) . '...';
76
+            return trim(mb_substr($string, 0, $limit - 3, 'UTF-8')).'...';
77 77
         }
78 78
 
79 79
         return $string;
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             $bytes /= 1024;
94 94
         }
95 95
 
96
-        return number_format($bytes, $unit ? $decimals : 0) . " " . $pows[$unit];
96
+        return number_format($bytes, $unit ? $decimals : 0)." ".$pows[$unit];
97 97
     }
98 98
 
99 99
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 strlen(str_replace("\t", $tabulationCost, $indent)) - $minIndent
185 185
             );
186 186
 
187
-            $line = $useIndent . substr($line, strlen($indent));
187
+            $line = $useIndent.substr($line, strlen($indent));
188 188
             unset($line);
189 189
         }
190 190
 
Please login to merge, or discard this patch.
source/Spiral/Debug/Configs/SnapshotConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,6 +79,6 @@
 block discarded – undo
79 79
             'name' => $name
80 80
         ]);
81 81
 
82
-        return $this->reportingDirectory() . $filename;
82
+        return $this->reportingDirectory().$filename;
83 83
     }
84 84
 }
85 85
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/Translator/Configs/TranslatorConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      */
86 86
     public function localeDirectory($locale)
87 87
     {
88
-        return $this->config['localesDirectory'] . $locale . '/';
88
+        return $this->config['localesDirectory'].$locale.'/';
89 89
     }
90 90
 
91 91
     /**
Please login to merge, or discard this patch.
source/Spiral/Views/Engines/Twig/TwigCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
      */
43 43
     public function generateKey($name, $className)
44 44
     {
45
-        $hash = hash('md5', $className . '.' . $this->environment->getID());
45
+        $hash = hash('md5', $className.'.'.$this->environment->getID());
46 46
 
47
-        return $this->environment->cacheDirectory() . '/' . $hash[0] . $hash[1] . '/' . $hash . '.php';
47
+        return $this->environment->cacheDirectory().'/'.$hash[0].$hash[1].'/'.$hash.'.php';
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.