| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function getSolution(): Solution |
||
| 40 | { |
||
| 41 | $documentationLinks = Str::endsWith($this->baseClass, 'State') |
||
| 42 | ? ['Configuring states' => 'https://docs.spatie.be/laravel-model-states/v1/working-with-states/01-configuring-states/'] |
||
| 43 | : ['Custom transition classes' => 'https://docs.spatie.be/laravel-model-states/v1/working-with-transitions/02-custom-transition-classes/']; |
||
| 44 | |||
| 45 | return BaseSolution::create('') |
||
| 46 | ->setSolutionDescription("Make sure that `{$this->class}` extends `{$this->baseClass}`") |
||
| 47 | ->setDocumentationLinks($documentationLinks); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |