| Conditions | 4 |
| Paths | 3 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | protected function isCorrectPath( $_file ) { |
||
| 45 | if(!is_string($_file)) |
||
| 46 | throw new JException("Path must be a string."); |
||
| 47 | if(!(file_exists($_file) || $this->isCorrectUrl($_file))) |
||
| 48 | throw new JException("File [$_file] not found."); |
||
| 49 | } |
||
| 50 | protected function isCorrectUrl( $_url ) { |
||
| 55 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.