Conditions | 7 |
Paths | 7 |
Total Lines | 28 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function canSolve(Throwable $throwable): bool |
||
15 | { |
||
16 | if (! PHP_OS === 'Darwin') { |
||
17 | return false; |
||
18 | } |
||
19 | |||
20 | if (! $throwable instanceof QueryException) { |
||
21 | return false; |
||
22 | } |
||
23 | |||
24 | if (! $this->isAccessDeniedCode($throwable->getCode())) { |
||
25 | return false; |
||
26 | } |
||
27 | |||
28 | if (! $this->envFileExists()) { |
||
29 | return false; |
||
30 | } |
||
31 | |||
32 | if (! $this->isValetInstalled()) { |
||
33 | return false; |
||
34 | } |
||
35 | |||
36 | if ($this->usingCorrectDefaultCredentials()) { |
||
37 | return false; |
||
38 | } |
||
39 | |||
40 | return true; |
||
41 | } |
||
42 | |||
68 |