Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class InputStream |
||
16 | { |
||
17 | protected $stream; |
||
18 | public $position = 0; |
||
19 | |||
20 | /** |
||
21 | * Build a new CSS input stream from a string. |
||
22 | * |
||
23 | * @param string |
||
24 | * String to turn into an input stream. |
||
25 | */ |
||
26 | public function __construct($string) |
||
27 | { |
||
28 | $this->stream = str_split($string); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Look ahead one character. |
||
33 | * |
||
34 | * @return char |
||
|
|||
35 | * Returns the next character, but does not remove it from |
||
36 | * the stream. |
||
37 | */ |
||
38 | public function peek() |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Get the next unconsumed character in the stream. |
||
45 | * This will remove that character from the front of the |
||
46 | * stream and return it. |
||
47 | */ |
||
48 | public function consume() |
||
49 | { |
||
50 | $ret = array_shift($this->stream); |
||
51 | if (!empty($ret)) { |
||
52 | $this->position++; |
||
53 | } |
||
54 | |||
55 | return $ret; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Check if the stream is empty. |
||
60 | * |
||
61 | * @return boolean |
||
62 | * Returns TRUE when the stream is empty, FALSE otherwise. |
||
63 | */ |
||
64 | public function isEmpty() |
||
67 | } |
||
68 | } |
||
69 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths