Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function __construct($filename) |
||
49 | { |
||
50 | $this->root = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR; |
||
51 | $this->paths[] = $this->root . 'src' . DIRECTORY_SEPARATOR . 'MageScan' |
||
52 | . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . $filename; |
||
53 | $homePath = getenv('HOME') . DIRECTORY_SEPARATOR . '.magescan' . DIRECTORY_SEPARATOR |
||
54 | . 'config' . DIRECTORY_SEPARATOR . $filename; |
||
55 | if (file_exists($homePath)) { |
||
56 | $this->paths[] = $homePath; |
||
57 | } |
||
58 | } |
||
59 | |||
75 |