| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | static function get_installed_path() { |
||
| 29 | $installed_paths = PHP_CodeSniffer::getConfigData('installed_paths'); |
||
| 30 | if ( $installed_paths === null || strlen($installed_paths) === 0 ) { |
||
| 31 | // Because: explode(',' , NULL) == array('') |
||
| 32 | // and we assert no data is empty array |
||
| 33 | return array(); |
||
| 34 | } |
||
| 35 | return explode(',', $installed_paths); |
||
| 36 | } |
||
| 37 | |||
| 46 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.