Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function canHandleFile($file = null) |
||
17 | { |
||
18 | if (is_null($file)) { |
||
19 | throw new \Exception('В обработчик ' . get_class() . " передано неверное имя файла: $file"); |
||
20 | } |
||
21 | |||
22 | $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); |
||
23 | |||
24 | return in_array($ext, $this->validExt); |
||
25 | } |
||
26 | |||
46 |