| Conditions | 6 |
| Paths | 6 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function isProject(): bool |
||
| 22 | { |
||
| 23 | if (file_exists($this->getTargetPath().'/.git')) { |
||
| 24 | return true; |
||
| 25 | } |
||
| 26 | if (file_exists($this->getTargetPath().'/.gitignore')) { |
||
| 27 | return true; |
||
| 28 | } |
||
| 29 | if (file_exists($this->getTargetPath().'/pubspec.yaml')) { |
||
| 30 | return true; |
||
| 31 | } |
||
| 32 | if (file_exists($this->getTargetPath().'/composer.json')) { |
||
| 33 | return true; |
||
| 34 | } |
||
| 35 | if (file_exists($this->getTargetPath().'/package.json')) { |
||
| 36 | return true; |
||
| 37 | } |
||
| 38 | |||
| 39 | return false; |
||
| 40 | } |
||
| 41 | } |