Conditions | 5 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function exist():bool |
||
38 | { |
||
39 | if ($this->existCase($this->path)) { |
||
40 | return true; |
||
41 | } |
||
42 | foreach ($this->gusse as $code) { |
||
43 | $file = iconv('UTF-8', $code, $this->path); |
||
44 | $abspath = $this->toAbsolutePath($file); |
||
45 | if ($file !== false && $this->existCase($abspath)) { |
||
46 | $this->realPath = $abspath; |
||
47 | return true; |
||
48 | } |
||
49 | } |
||
50 | return false; |
||
51 | } |
||
81 |