@@ -46,7 +46,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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, AppConfiguration::PLATFORM_WEB ])) { |
|
166 | + if (in_array($icon->getPlatform(), [null, AppConfiguration::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 |
||
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 |
||
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, AppConfiguration::PLATFORM_IOS ])) { |
|
210 | + if (in_array($icon->getPlatform(), [null, AppConfiguration::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 |
||
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 |