Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
41 | 6 | public function message(): string |
|
42 | { |
||
43 | 6 | $modelIds = implode(', ', $this->modelIds); |
|
44 | |||
45 | 6 | $classBasename = class_basename($this->modelClassName); |
|
46 | |||
47 | 6 | return __('validation.model_ids', [ |
|
48 | 6 | 'attribute' => $this->attribute, |
|
49 | 6 | 'model' => $classBasename, |
|
50 | 6 | 'modelAttribute' => $this->modelAttribute, |
|
51 | 6 | 'modelIds' => $modelIds, |
|
52 | ]); |
||
53 | } |
||
54 | } |
||
55 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.