| Conditions | 4 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public static function cleanPathname($path){ |
||
| 34 | if(StrUtils::isNotNull($path)){ |
||
| 35 | if(DS==="/") |
||
| 36 | $path=\str_replace("\\", DS, $path); |
||
| 37 | else |
||
| 38 | $path=\str_replace("/", DS, $path); |
||
| 39 | $path=\str_replace(DS.DS, DS, $path); |
||
| 40 | if(!StrUtils::endswith($path, DS)){ |
||
| 41 | $path=$path.DS; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | return $path; |
||
| 45 | } |
||
| 46 | } |