Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $result = new InspectionResult("Bad practice");
- $pluginYml = file_get_contents($this->dir . "plugin.yml");
- $manifest = yaml_parse($pluginYml);
- $mainFile = realpath($this->dir . "src/" . str_replace("\\", "/", $manifest["main"]) . ".php");
- foreach(new \RegexIterator(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->dir)), "#\\.php\$#") as $file){
- $contents = file_get_contents($file);
- $isMain = $file == $mainFile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement