| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | protected static function checkPath(/*# string */ $path) |
||
| 42 | { |
||
| 43 | if (!file_exists($path)) { |
||
| 44 | throw new NotFoundException( |
||
| 45 | Message::get(Message::MSG_PATH_NOTFOUND, $path), |
||
| 46 | Message::MSG_PATH_NOTFOUND |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | |||
| 50 | if (!is_readable($path)) { |
||
| 51 | throw new RuntimeException( |
||
| 52 | Message::get(Message::MSG_PATH_NONREADABLE, $path), |
||
| 53 | Message::MSG_PATH_NONREADABLE |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | } |
||
| 57 | } |
||
| 58 |