| @@ 89-96 (lines=8) @@ | ||
| 86 | * |
|
| 87 | * @return bool |
|
| 88 | */ |
|
| 89 | public function isProjectPresent() |
|
| 90 | { |
|
| 91 | if (isset($this->isProjectPresent)) { |
|
| 92 | return $this->isProjectPresent; |
|
| 93 | } |
|
| 94 | ||
| 95 | return $this->isProjectPresent = file_exists($this->home->homeDir() . DIRECTORY_SEPARATOR . 'composer.json'); |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * Check if the vendor directory is present. |
|
| @@ 103-110 (lines=8) @@ | ||
| 100 | * |
|
| 101 | * @return bool |
|
| 102 | */ |
|
| 103 | public function isProjectInstalled() |
|
| 104 | { |
|
| 105 | if (isset($this->isProjectInstalled)) { |
|
| 106 | return $this->isProjectInstalled; |
|
| 107 | } |
|
| 108 | ||
| 109 | return $this->isProjectInstalled = is_dir($this->home->homeDir() . DIRECTORY_SEPARATOR . 'vendor'); |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * Flag if everything is completely installed. |
|