Code Duplication    Length = 12-12 lines in 2 locations

src/Standards/BestIt/CodeSniffer/File.php 2 locations

@@ 125-136 (lines=12) @@
122
     *
123
     * @SuppressWarnings(PHPMD.BooleanArgumentFlag)
124
     */
125
    public function findPrevious(
126
        array $types,
127
        int $start,
128
        $end = null,
129
        bool $exclude = false,
130
        $value = null,
131
        bool $local = false
132
    ): int {
133
        $pointer = $this->baseFile->findPrevious($types, $start, $end, $exclude, $value, $local);
134
135
        return $this->preparePointer($pointer);
136
    }
137
138
    /**
139
     * Records an error against a specific token in the file.
@@ 231-242 (lines=12) @@
228
     *
229
     * @SuppressWarnings(PHPMD.BooleanArgumentFlag)
230
     */
231
    public function findNext(
232
        array $types,
233
        int $start,
234
        $end = null,
235
        bool $exclude = false,
236
        $value = null,
237
        bool $local = false
238
    ): int {
239
        $result = $this->baseFile->findNext($types, $start, $end, $exclude, $value, $local);
240
241
        return $this->preparePointer($result);
242
    }
243
244
    /**
245
     * Prepares given pointer result.