| Total Complexity | 7 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Roll extends Roulette { |
||
| 14 | |||
| 15 | private static $items; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Put items to $items. |
||
| 19 | */ |
||
| 20 | public static function put($items) |
||
| 21 | { |
||
| 22 | self::$items = $items; |
||
| 23 | |||
| 24 | return new static(); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Spin Roullete. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public static function spin() |
||
| 33 | { |
||
| 34 | return self::getItem(); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Spin Roullete json result. |
||
| 39 | * |
||
| 40 | * @return json |
||
|
|
|||
| 41 | */ |
||
| 42 | public static function jsonSpin() |
||
| 43 | { |
||
| 44 | $ret = self::getItem(); |
||
| 45 | return self::jsonItem($ret); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Add dropup rate. |
||
| 50 | * |
||
| 51 | * @param string $item |
||
| 52 | * @param float $rate |
||
| 53 | * @return mixed |
||
| 54 | */ |
||
| 55 | public static function dropUp($items, $rate) |
||
| 56 | { |
||
| 57 | $items_bucket = self::$items; |
||
| 58 | self::putDropUp(self::itemDropUp($items_bucket, $items, $rate)); |
||
| 59 | return new static(); |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get Spinned items. |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | private static function getItem() { |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * put dropup item to $items variable. |
||
| 75 | * |
||
| 76 | * @param array $arr |
||
| 77 | * @return void |
||
| 78 | */ |
||
| 79 | private static function putDropUp($arr) { |
||
| 82 | } |
||
| 83 | } |
||
| 85 | } |
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