| Conditions | 3 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public function handle(): void |
||
| 31 | { |
||
| 32 | if (!$site = Site::resolveFromPathOrCurrentWorkingDirectory()) { |
||
| 33 | $this->error('Please run this command in a project directory'); |
||
| 34 | |||
| 35 | return; |
||
| 36 | } |
||
| 37 | |||
| 38 | $version = optional($site)->php_version ?: PhpVersion::defaultVersion(); |
||
| 39 | |||
| 40 | $this->info("PHP Version: {$version->version_number}"); |
||
| 41 | |||
| 42 | $this->dockerCompose |
||
| 43 | ->runContainer("php_cli_{$version->safe}") |
||
| 44 | ->bash('php artisan tinker') |
||
| 45 | ->perform(); |
||
| 46 | } |
||
| 48 |