| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function forward($initialControllerInstance,$controllerName,$actionName,$params=NULL){ |
||
| 27 | \ob_start(); |
||
| 28 | $ctrInfo=\yii::$app->createController($controllerName."/".$actionName); |
||
| 29 | $ctrInfo[0]->{$ctrInfo[1]}($params); |
||
| 30 | $result=\ob_get_contents(); |
||
| 31 | \ob_end_clean(); |
||
| 32 | return $result; |
||
| 33 | } |
||
| 34 | |||
| 43 | } |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.