Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
10 | public function newAction() |
||
11 | { |
||
12 | // Using container |
||
13 | $translated = $this->get('translator')->trans('trans0'); |
||
14 | |||
15 | // As a parameter |
||
16 | $model->setMessage( |
||
17 | $this->get('translator')->trans( |
||
18 | 'trans1', |
||
19 | array( |
||
20 | 'a' => 'x', |
||
21 | 'b' => 'y', |
||
22 | 'c' => 'z', |
||
23 | ) |
||
24 | ) |
||
25 | ); |
||
26 | |||
27 | return array(); |
||
28 | } |
||
29 | |||
40 |
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.