mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-05 21:07:57 +00:00
Fix possible warning on empty php files
This commit is contained in:
parent
1b2bdbe41e
commit
72c8ed99ef
@ -128,6 +128,12 @@ class JedcheckerRulesFramework extends JEDcheckerRule
|
||||
protected function find($file)
|
||||
{
|
||||
$origContent = (array) file($file);
|
||||
|
||||
if (count($origContent) === 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$cleanContent = preg_split("/(?:\r\n|\n|\r)(?!$)/", $this->cleanNonCode($file));
|
||||
|
||||
$result = false;
|
||||
|
Loading…
Reference in New Issue
Block a user