Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
24 | 6 | public function __toString(): string |
|
25 | { |
||
26 | 6 | return \sprintf( |
|
27 | 6 | 'git clone %s %s&& cd %s && git checkout %s && composer install --no-dev --prefer-dist -n && box compile && mv %s %s && chmod +x %s && cd && rm -rf %s', |
|
28 | 6 | $this->repository, |
|
29 | 6 | $this->targetDir(), |
|
30 | 6 | $this->targetDir(), |
|
31 | 6 | $this->version ?? '$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null)', |
|
32 | 6 | $this->phar, |
|
33 | 6 | $this->bin, |
|
34 | 6 | $this->bin, |
|
35 | 6 | $this->targetDir() |
|
36 | 6 | ); |
|
46 |