@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | protected static function getServiceMetaData(string $hostname = null): array |
102 | 102 | { |
103 | - switch($hostname) |
|
103 | + switch ($hostname) |
|
104 | 104 | { |
105 | 105 | case 'www.crunchyroll.com': |
106 | 106 | return [ |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | if (array_key_exists('titles', $data)) |
214 | 214 | { |
215 | - foreach($data['titles'] as $alternateTitle) |
|
215 | + foreach ($data['titles'] as $alternateTitle) |
|
216 | 216 | { |
217 | 217 | if (self::titleIsUnique($alternateTitle, $valid)) |
218 | 218 | { |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | return false; |
239 | 239 | } |
240 | 240 | |
241 | - foreach($existingTitles as $existing) |
|
241 | + foreach ($existingTitles as $existing) |
|
242 | 242 | { |
243 | 243 | $isSubset = stripos($existing, $title) !== FALSE; |
244 | 244 | $diff = levenshtein($existing, $title); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | for ($i = 0; $i < $length; $i++) |
185 | 185 | { |
186 | 186 | $el = $nodeList->item($i); |
187 | - $current =& $root[$el->nodeName]; |
|
187 | + $current = & $root[$el->nodeName]; |
|
188 | 188 | |
189 | 189 | // It's a top level element! |
190 | 190 | if (is_a($el->childNodes->item(0), 'DomText') || ( ! $el->hasChildNodes())) |
@@ -232,14 +232,14 @@ discard block |
||
232 | 232 | * @param array $data The data for the current node |
233 | 233 | * @return void |
234 | 234 | */ |
235 | - private static function arrayPropertiesToXmlNodes(DOMDocument &$dom, DOMNode &$parent, array $data) |
|
235 | + private static function arrayPropertiesToXmlNodes(DOMDocument & $dom, DOMNode & $parent, array $data) |
|
236 | 236 | { |
237 | - foreach($data as $key => $props) |
|
237 | + foreach ($data as $key => $props) |
|
238 | 238 | { |
239 | 239 | // 'Flatten' the array as you create the xml |
240 | 240 | if (is_numeric($key)) |
241 | 241 | { |
242 | - foreach($props as $key => $props) |
|
242 | + foreach ($props as $key => $props) |
|
243 | 243 | { |
244 | 244 | break; |
245 | 245 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Hummingbird Anime Client |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Anime List Client |
4 | 4 | * |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $config = AnimeClient::loadToml($CONF_DIR); |
76 | 76 | $config_array = array_merge($base_config, $config); |
77 | 77 | |
78 | - $di = function ($config_array) use ($APP_DIR) { |
|
78 | + $di = function($config_array) use ($APP_DIR) { |
|
79 | 79 | $container = new Container(); |
80 | 80 | |
81 | 81 | // ------------------------------------------------------------------------- |