| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct($path) |
||
| 14 | { |
||
| 15 | $this->path = $path; |
||
| 16 | $composer_json_path = "$path/composer.json"; |
||
| 17 | if (!file_exists($composer_json_path)) { |
||
| 18 | return; |
||
| 19 | } |
||
| 20 | |||
| 21 | $composer_json_contents = file_get_contents($composer_json_path); |
||
| 22 | if (empty($composer_json_contents)) { |
||
| 23 | return; |
||
| 24 | } |
||
| 25 | |||
| 26 | $this->composer_json = json_decode($composer_json_contents, true); |
||
| 27 | } |
||
| 28 | |||
| 57 |