| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0625 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 19 | public function register(): void |
|
| 28 | { |
||
| 29 | 19 | $this->app->bind( |
|
| 30 | 19 | 'git.version', |
|
| 31 | 19 | function ($app) { |
|
| 32 | ($process = new Process('git describe --tags $(git rev-list --tags --max-count=1)', $app->basePath()))->run(); |
||
| 33 | |||
| 34 | return trim($process->getOutput()) ?: 'unreleased'; |
||
| 35 | 19 | } |
|
| 36 | ); |
||
| 37 | 19 | } |
|
| 38 | } |
||
| 39 |