Completed
Push — master ( c5e2b8...ec08fd )
by Alberto
19s queued 12s
created
src/Utility/AssetsRevisions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             $path = CONFIG . 'rev-manifest.json';
42 42
         }
43 43
         if (file_exists($path)) {
44
-            static::$assets = (array)json_decode(file_get_contents($path), true);
44
+            static::$assets = (array) json_decode(file_get_contents($path), true);
45 45
         }
46 46
     }
47 47
 
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
         }
60 60
 
61 61
         if (!empty(static::$assets[$name])) {
62
-            return (string)static::$assets[$name];
62
+            return (string) static::$assets[$name];
63 63
         }
64 64
         if (!empty($extension) && !empty(static::$assets[$name . $extension])) {
65
-            return (string)static::$assets[$name . $extension];
65
+            return (string) static::$assets[$name . $extension];
66 66
         }
67 67
 
68 68
         return $name;
Please login to merge, or discard this patch.
src/View/Twig/BeditaTwigExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         return [
42 42
             new TwigFunction('config', [Configure::class, 'read']),
43
-            new TwigFunction('write_config', function ($key, $val) {
43
+            new TwigFunction('write_config', function($key, $val) {
44 44
                 // avoid unwanted return value display in templates
45 45
                 Configure::write($key, $val);
46 46
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         return [
58 58
             new TwigFilter(
59 59
                 'shuffle',
60
-                function (array $array) {
60
+                function(array $array) {
61 61
                     shuffle($array);
62 62
 
63 63
                     return $array;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             ),
66 66
             new TwigFilter(
67 67
                 'ksort',
68
-                function (array $array) {
68
+                function(array $array) {
69 69
                     ksort($array);
70 70
 
71 71
                     return $array;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             ),
74 74
             new TwigFilter(
75 75
                 'krsort',
76
-                function (array $array) {
76
+                function(array $array) {
77 77
                     krsort($array);
78 78
 
79 79
                     return $array;
Please login to merge, or discard this patch.
src/View/Helper/HtmlHelper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     {
53 53
         parent::initialize($config);
54 54
 
55
-        $this->metadata = (array)Configure::read('Meta', []) + $this->metadata;
56
-        $this->metadata = (array)Hash::get($config, 'meta', []) + $this->metadata;
55
+        $this->metadata = (array) Configure::read('Meta', []) + $this->metadata;
56
+        $this->metadata = (array) Hash::get($config, 'meta', []) + $this->metadata;
57 57
     }
58 58
 
59 59
     /**
@@ -99,19 +99,19 @@  discard block
 block discarded – undo
99 99
         $html = '';
100 100
 
101 101
         // description
102
-        $description = (string)$this->getMeta($data, 'description', '');
102
+        $description = (string) $this->getMeta($data, 'description', '');
103 103
         $html .= $this->metaDescription($description);
104 104
 
105 105
         // author
106
-        $author = (string)$this->getMeta($data, 'author', '');
106
+        $author = (string) $this->getMeta($data, 'author', '');
107 107
         $html .= $this->metaAuthor($author);
108 108
 
109 109
         // css
110
-        $docType = (string)$this->getMeta($data, 'docType', 'xhtml-strict');
110
+        $docType = (string) $this->getMeta($data, 'docType', 'xhtml-strict');
111 111
         $html .= $this->metaCss($docType);
112 112
 
113 113
         // generator
114
-        $project = (array)$this->getMeta($data, 'project', []);
114
+        $project = (array) $this->getMeta($data, 'project', []);
115 115
         $html .= $this->metaGenerator($project);
116 116
 
117 117
         // other data
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     public function metaAuthor(?string $creator): string
161 161
     {
162 162
         if (empty($creator)) {
163
-            $creator = (string)$this->getMeta([], 'author', '');
163
+            $creator = (string) $this->getMeta([], 'author', '');
164 164
             if (empty($creator)) {
165 165
                 return '';
166 166
             }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     public function metaCss(string $docType): string
186 186
     {
187 187
         if ($docType === 'html5') {
188
-            $docType = (string)$this->getMeta([], 'docType', '');
188
+            $docType = (string) $this->getMeta([], 'docType', '');
189 189
             if (empty($docType)) {
190 190
                 return '';
191 191
             }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function metaGenerator(array $project): string
211 211
     {
212 212
         if (empty($project['name'])) {
213
-            $project = (array)$this->getMeta([], 'project', []);
213
+            $project = (array) $this->getMeta([], 'project', []);
214 214
             if (empty($project['name'])) {
215 215
                 return '';
216 216
             }
Please login to merge, or discard this patch.