Completed
Branch 09branch (946dde)
by Anton
05:16
created
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/Engines/Stempler/StemplerCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
      */
59 59
     public function cacheFilename(string $path): string
60 60
     {
61
-        $hash = hash('md5', $path . '.' . $this->environment->getID());
61
+        $hash = hash('md5', $path.'.'.$this->environment->getID());
62 62
 
63
-        return $this->environment->cacheDirectory() . $hash . '.php';
63
+        return $this->environment->cacheDirectory().$hash.'.php';
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
source/Spiral/Views/Loaders/ModifiableLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $source = $this->parent->getSource($path);
68 68
 
69 69
         foreach ($this->modifiers as $modifier) {
70
-            $benchmark = $this->benchmark('process', $path . '@' . get_class($modifier));
70
+            $benchmark = $this->benchmark('process', $path.'@'.get_class($modifier));
71 71
             try {
72 72
                 $source = $source->withCode(
73 73
                     $modifier->modify($this->environment, $source, $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.
source/Spiral/Http/Routing/Router.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -49,9 +49,6 @@
 block discarded – undo
49 49
     /**
50 50
      * {@inheritdoc}
51 51
      *
52
-     * @param RouteInterface|array $default Default route or options to construct instance of
53
-     *                                      DirectRoute.
54
-     * @param bool                 $keepOutput
55 52
      *
56 53
      * @throws RouterException
57 54
      */
Please login to merge, or discard this patch.
source/Spiral/Models/Traits/TimestampsTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     /**
101 101
      * Create appropriate schema modification listener. Executed only in analysis.
102 102
      *
103
-     * @return callable
103
+     * @return \Closure
104 104
      */
105 105
     private static function __timestamps__describeListener()
106 106
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private static function __timestamps__saveListener()
72 72
     {
73
-        return function (EntityEvent $event, $eventName) {
73
+        return function(EntityEvent $event, $eventName) {
74 74
             $entity = $event->getEntity();
75 75
             if ($event instanceof RecordEvent && $event->isContextual()) {
76 76
                 switch ($eventName) {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     private static function __timestamps__describeListener()
106 106
     {
107
-        return function (DescribeEvent $event) {
107
+        return function(DescribeEvent $event) {
108 108
             if ($event->getProperty() != 'schema') {
109 109
                 return;
110 110
             }
Please login to merge, or discard this patch.
source/Spiral/Models/Accessors/AbstractTimestamp.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
     {
35 35
         //Datetime accessor default timezone is same as currently in application
36 36
         parent::__construct(
37
-            "@" . $this->fetchTimestamp($value)
37
+            "@".$this->fetchTimestamp($value)
38 38
         );
39 39
 
40 40
         $this->initial = clone $this;
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
             //Allow urls without http schema
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.