| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function newAction() |
||
| 20 | { |
||
| 21 | // Using container |
||
| 22 | $translated = $this->get('translator')->trans('trans0'); |
||
| 23 | |||
| 24 | // As a parameter |
||
| 25 | $model->setMessage( |
||
| 26 | $this->get('translator')->trans( |
||
| 27 | 'trans1', |
||
| 28 | array( |
||
| 29 | 'a' => 'x', |
||
| 30 | 'b' => 'y', |
||
| 31 | 'c' => 'z', |
||
| 32 | ) |
||
| 33 | ) |
||
| 34 | ); |
||
| 35 | |||
| 36 | return array(); |
||
| 37 | } |
||
| 38 | |||
| 59 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.