Code Duplication    Length = 8-8 lines in 2 locations

source/Spiral/Cache/Stores/APCStore.php 2 locations

@@ 119-126 (lines=8) @@
116
    /**
117
     * {@inheritdoc}
118
     */
119
    public function inc(string $name, int $delta = 1): int
120
    {
121
        if ($this->driverType == self::APCU_DRIVER) {
122
            return apcu_inc($this->prefix . $name, $delta);
123
        }
124
125
        return apc_inc($this->prefix . $name, $delta);
126
    }
127
128
    /**
129
     * {@inheritdoc}
@@ 131-138 (lines=8) @@
128
    /**
129
     * {@inheritdoc}
130
     */
131
    public function dec(string $name, int $delta = 1): int
132
    {
133
        if ($this->driverType == self::APCU_DRIVER) {
134
            return apcu_dec($this->prefix . $name, $delta);
135
        }
136
137
        return apc_dec($this->prefix . $name, $delta);
138
    }
139
140
    /**
141
     * {@inheritdoc}