Conditions | 5 |
Paths | 5 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | public function run() |
||
20 | { |
||
21 | $session = Yii::$app->session; |
||
22 | $flashes = $session->getAllFlashes(); |
||
|
|||
23 | foreach ($flashes as $type => $data) { |
||
24 | $datas = (array) $data; |
||
25 | if (is_array($datas[0])) { |
||
26 | foreach ($datas as $value) { |
||
27 | $this->generateToastr($type, $value[1], $value[0]); |
||
28 | } |
||
29 | } else { |
||
30 | foreach ($datas as $value) { |
||
31 | $this->generateToastr($type, $value); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | $session->removeFlash($type); |
||
36 | } |
||
57 |
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.