Code Duplication    Length = 10-10 lines in 2 locations

src/Decoder.php 2 locations

@@ 173-182 (lines=10) @@
170
     * @return mixed
171
     * @throws \Crossjoin\Json\Exception\NativeJsonErrorException
172
     */
173
    private function decodePhpGte54($json, $assoc, $depth, $options)
174
    {
175
        $data = \json_decode($json, $assoc, $depth, $options);
176
177
        if (\json_last_error() !== \JSON_ERROR_NONE) {
178
            throw $this->getNativeJsonErrorException();
179
        }
180
181
        return $data;
182
    }
183
184
    /**
185
     * @param string $json
@@ 192-201 (lines=10) @@
189
     * @return mixed
190
     * @throws \Crossjoin\Json\Exception\NativeJsonErrorException
191
     */
192
    private function decodePhpLt54($json, $assoc, $depth)
193
    {
194
        $data = \json_decode($json, $assoc, $depth);
195
196
        if (\json_last_error() !== \JSON_ERROR_NONE) {
197
            throw $this->getNativeJsonErrorException();
198
        }
199
200
        return $data;
201
    }
202
203
    /**
204
     * @param string $json