Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
20 | 5 | public function __toString(): string |
|
21 | { |
||
22 | 5 | return \sprintf( |
|
23 | 5 | 'git clone %s %s && cd %s && git checkout %s && composer install --no-dev --no-suggest --prefer-dist -n', |
|
24 | 5 | $this->repository, |
|
25 | 5 | $this->targetDir, |
|
26 | 5 | $this->targetDir, |
|
27 | 5 | $this->version ?? '$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null)' |
|
28 | ); |
||
31 |