Completed
Branch 09branch (740a7d)
by Anton
02:52
created
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 1 patch
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.
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.
source/Spiral/Views/Engines/StemplerEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
     protected function processSource($source, $path, $compiledFilename = null)
194 194
     {
195 195
         foreach ($this->getProcessors() as $processor) {
196
-            $benchmark = $this->benchmark('process', get_class($processor) . '-{' . $path);
196
+            $benchmark = $this->benchmark('process', get_class($processor).'-{'.$path);
197 197
             try {
198 198
                 $source = $processor->process(
199 199
                     $source,
Please login to merge, or discard this patch.
source/Spiral/Commands/Modules/Traits/ModuleTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
         $module = str_replace('/', '\\', $module);
27 27
         $module = explode('\\', $module);
28 28
 
29
-        array_walk($module, function (&$chunk) {
29
+        array_walk($module, function(&$chunk) {
30 30
             $chunk = Inflector::classify($chunk);
31 31
         });
32 32
 
33
-        return join('\\', $module) . 'Module';
33
+        return join('\\', $module).'Module';
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.