Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.1481 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function setCompiledOutput($compiledOutput) |
|
28 | { |
||
29 | 1 | if (!StrUtils::canBeCastedToString($compiledOutput)) |
|
30 | { |
||
31 | @trigger_error('CompileProcessPostRenderPageView :: Value cannot be set to something that cannot be cast into a string.', E_USER_WARNING); |
||
|
|||
32 | |||
33 | return; |
||
34 | } |
||
35 | |||
36 | 1 | $this->compiledOutput = $compiledOutput; |
|
37 | 1 | } |
|
38 | } |
||
39 |
If you suppress an error, we recommend checking for the error condition explicitly: