| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 2 | public function __construct(array $prefix, ?IStTranslations $lang = null) |
|
| 31 | { |
||
| 32 | 2 | $this->setStLang($lang); |
|
| 33 | 2 | if ($pt = realpath(implode(DIRECTORY_SEPARATOR, $prefix))) { |
|
| 34 | 1 | $this->prefix = strval($pt); |
|
| 35 | } else { |
||
| 36 | 1 | throw new StorageException($this->getStLang()->stPathNotFound()); |
|
| 37 | } |
||
| 45 |