Completed
Push — master ( 66ca74...a4fc5a )
by Matthias
02:39
created
src/Objects/Image.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     const PURPOSE_BADGE = "badge";
24 24
     const PURPOSE_ANY = "any";
25 25
 
26
-    private $purpose = [ ];
27
-    private $sizes = [ ];
26
+    private $purpose = [];
27
+    private $sizes = [];
28 28
     private $src;
29 29
     private $type;
30 30
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function addSize($width, $height)
77 77
     {
78
-        $this->sizes[] = [ (int)$width, (int)$height ];
78
+        $this->sizes[] = [(int)$width, (int)$height];
79 79
         return $this;
80 80
     }
81 81
 
Please login to merge, or discard this patch.
src/Generators/ManifestGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function get(AppConfiguration $configuration)
34 34
     {
35
-        $manifest = [ ];
35
+        $manifest = [];
36 36
 
37 37
         if (($backgroundColor = $configuration->getBackgroundColor()) !== null) {
38 38
             $manifest["background_color"] = $backgroundColor;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         }
52 52
 
53 53
         if (count($icons = $configuration->getIcons()) > 0) {
54
-            $manifest["icons"] = [ ];
54
+            $manifest["icons"] = [];
55 55
 
56 56
             foreach ($icons as $icon) {
57 57
                 $manifest["icons"][] = $this->getImageData($icon);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $data["sizes"] = implode(
108 108
                 " ",
109 109
                 array_map(
110
-                    function (array $size) {
110
+                    function(array $size) {
111 111
                         return "{$size[0]}x{$size[1]}";
112 112
                     },
113 113
                     $sizes
Please login to merge, or discard this patch.
src/AppConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     private $description;
48 48
     private $direction;
49 49
     private $display;
50
-    private $icons = [ ];
50
+    private $icons = [];
51 51
     private $language;
52 52
     private $name;
53 53
     private $orientation;
Please login to merge, or discard this patch.
src/Generators/TagGenerator.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         return implode(
47 47
             "\n",
48 48
             array_map(
49
-                function (array $tag) {
49
+                function(array $tag) {
50 50
                     return $this->renderTag($tag);
51 51
                 },
52 52
                 $this->getData($configuration, $standardTags, $legacyTags, $appleTags, $microsoftTags)
@@ -114,16 +114,16 @@  discard block
 block discarded – undo
114 114
     private function getData(AppConfiguration $configuration, $standardTags, $legacyTags, $appleTags, $microsoftTags)
115 115
     {
116 116
         return array_merge(
117
-            $standardTags ? $this->getStandardTags($configuration) : [ ],
118
-            $legacyTags ? $this->getLegacyTags($configuration) : [ ],
119
-            $appleTags ? $this->getAppleTags($configuration) : [ ],
120
-            $microsoftTags ? $this->getMicrosoftTags($configuration) : [ ]
117
+            $standardTags ? $this->getStandardTags($configuration) : [],
118
+            $legacyTags ? $this->getLegacyTags($configuration) : [],
119
+            $appleTags ? $this->getAppleTags($configuration) : [],
120
+            $microsoftTags ? $this->getMicrosoftTags($configuration) : []
121 121
         );
122 122
     }
123 123
 
124 124
     private function getStandardTags(AppConfiguration $configuration)
125 125
     {
126
-        $tags = [ ];
126
+        $tags = [];
127 127
 
128 128
         // Manifest
129 129
         // https://www.w3.org/TR/appmanifest/#using-a-link-element-to-link-to-a-manifest
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
     private function getLegacyTags(AppConfiguration $configuration)
140 140
     {
141
-        $tags = [ ];
141
+        $tags = [];
142 142
 
143 143
         // Application name
144 144
         // https://html.spec.whatwg.org/multipage/semantics.html#meta-application-name
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
         // Icons
164 164
         // https://html.spec.whatwg.org/multipage/semantics.html#rel-icon
165 165
         foreach ($configuration->getIcons() as $icon) {
166
-            if (in_array($icon->getPlatform(), [ null, Image::PLATFORM_WEB ])) {
166
+            if (in_array($icon->getPlatform(), [null, Image::PLATFORM_WEB])) {
167 167
                 $sizes = array_map(
168
-                    function (array $size) {
168
+                    function(array $size) {
169 169
                         return "{$size[0]}x{$size[1]}";
170 170
                     },
171 171
                     $icon->getSizes()
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
     private function getAppleTags(AppConfiguration $configuration)
187 187
     {
188
-        $tags = [ ];
188
+        $tags = [];
189 189
 
190 190
         // format-detection
191 191
         // https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html#//apple_ref/doc/uid/TP40008193-SW5
@@ -207,9 +207,9 @@  discard block
 block discarded – undo
207 207
         // Icons
208 208
         // https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html#//apple_ref/doc/uid/TP40002051-CH3-SW4
209 209
         foreach ($configuration->getIcons() as $icon) {
210
-            if (in_array($icon->getPlatform(), [ null, Image::PLATFORM_IOS ])) {
210
+            if (in_array($icon->getPlatform(), [null, Image::PLATFORM_IOS])) {
211 211
                 $sizes = array_map(
212
-                    function (array $size) {
212
+                    function(array $size) {
213 213
                         return "{$size[0]}x{$size[1]}";
214 214
                     },
215 215
                     $icon->getSizes()
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
     private function getMicrosoftTags(AppConfiguration $configuration)
250 250
     {
251
-        $tags = [ ];
251
+        $tags = [];
252 252
 
253 253
         // Start URL
254 254
         // https://msdn.microsoft.com/en-us/library/gg491732(v=vs.85).aspx#msapplication-starturl
Please login to merge, or discard this patch.