@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | try { |
34 | 34 | list($domain, $finder, $rules, $options) = self::getThumbnailMeta($domain, $url); |
35 | 35 | |
36 | - $className = '\\WebThumbnailer\\Finder\\' . $finder . 'Finder'; |
|
36 | + $className = '\\WebThumbnailer\\Finder\\'.$finder.'Finder'; |
|
37 | 37 | if (!class_exists($className)) { |
38 | 38 | throw new Exception\UnsupportedDomainException(); |
39 | 39 | } |
40 | - } catch(Exception\UnsupportedDomainException $e) { |
|
40 | + } catch (Exception\UnsupportedDomainException $e) { |
|
41 | 41 | $className = '\\WebThumbnailer\\Finder\\DefaultFinder'; |
42 | 42 | $rules = []; |
43 | 43 | $options = []; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $jsonFiles = ConfigManager::get('settings.rules_filename', ['rules.json']); |
64 | 64 | $allRules = []; |
65 | 65 | foreach ($jsonFiles as $file) { |
66 | - $allRules = array_merge($allRules, DataUtils::loadJson(FileUtils::RESOURCES_PATH . $file)); |
|
66 | + $allRules = array_merge($allRules, DataUtils::loadJson(FileUtils::RESOURCES_PATH.$file)); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | $domain = null; |
@@ -83,16 +83,16 @@ discard block |
||
83 | 83 | continue; |
84 | 84 | } |
85 | 85 | |
86 | - if(!empty($value['url_exclude'])) { |
|
86 | + if (!empty($value['url_exclude'])) { |
|
87 | 87 | preg_match(FinderUtils::buildRegex($value['url_exclude'], 'i'), $url, $match); |
88 | - if(!empty($match)) { |
|
88 | + if (!empty($match)) { |
|
89 | 89 | continue; |
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
93 | - if(!empty($value['url_require'])) { |
|
93 | + if (!empty($value['url_require'])) { |
|
94 | 94 | preg_match(FinderUtils::buildRegex($value['url_require'], 'i'), $url, $match); |
95 | - if(empty($match)) { |
|
95 | + if (empty($match)) { |
|
96 | 96 | continue; |
97 | 97 | } |
98 | 98 | } |