| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php defined('SYSPATH') or die('No direct access allowed.'); |
||
| 22 | public function styles() |
||
| 23 | { |
||
| 24 | static $styles_output; |
||
| 25 | |||
| 26 | if (! $styles_output) { |
||
| 27 | $styles_output = true; |
||
| 28 | return file_get_contents(Kohana::find_file('views', 'kohana_profiler_table', false, 'css')); |
||
|
|
|||
| 29 | } |
||
| 30 | |||
| 31 | return ''; |
||
| 32 | } |
||
| 33 | |||
| 69 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: