comparison vendor/squizlabs/php_codesniffer/src/Util/Standards.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
114 }//end foreach 114 }//end foreach
115 115
116 $installedStandards = []; 116 $installedStandards = [];
117 117
118 foreach ($rulesets as $rulesetPath) { 118 foreach ($rulesets as $rulesetPath) {
119 $ruleset = simplexml_load_string(file_get_contents($rulesetPath)); 119 $ruleset = @simplexml_load_string(file_get_contents($rulesetPath));
120 if ($ruleset === false) { 120 if ($ruleset === false) {
121 continue; 121 continue;
122 } 122 }
123 123
124 $standardName = (string) $ruleset['name']; 124 $standardName = (string) $ruleset['name'];