| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class RedisCallHistory implements CallHistoryInterface |
||
| 23 | { |
||
| 24 | private const MAIN_KEY = 'poloniex:calls'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Client class used for connecting and executing commands on Redis. |
||
| 28 | * |
||
| 29 | * @var Client |
||
| 30 | */ |
||
| 31 | protected $redisClient; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Time for cache |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $expireTime; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * RedisCallHistory constructor. |
||
| 42 | * |
||
| 43 | * @param Client $client |
||
| 44 | * @param string $expireTime |
||
| 45 | */ |
||
| 46 | public function __construct(Client $client, string $expireTime = '1 hour') |
||
| 47 | { |
||
| 48 | $this->expireTime = $expireTime; |
||
| 49 | $this->redisClient = $client; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function create(): void |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | public function isIncreased(): bool |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Create time key based by one second |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | private function getTime(): string |
||
| 77 | } |
||
| 78 | } |
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