Code Duplication    Length = 4-4 lines in 4 locations

src/Tokenizers/PHP.php 4 locations

@@ 1200-1203 (lines=4) @@
1197
                    if ($this->tokens[$x]['code'] === T_OPEN_PARENTHESIS) {
1198
                        $this->tokens[$i]['code'] = T_CLOSURE;
1199
                        $this->tokens[$i]['type'] = 'T_CLOSURE';
1200
                        if (PHP_CodeSniffer_VERBOSITY > 1) {
1201
                            $line = $this->tokens[$i]['line'];
1202
                            echo "\t* token $i on line $line changed from T_FUNCTION to T_CLOSURE".PHP_EOL;
1203
                        }
1204
1205
                        for ($x = ($this->tokens[$i]['scope_opener'] + 1); $x < $this->tokens[$i]['scope_closer']; $x++) {
1206
                            if (isset($this->tokens[$x]['conditions'][$i]) === false) {
@@ 1278-1281 (lines=4) @@
1275
                ) {
1276
                    $this->tokens[$i]['code'] = T_ANON_CLASS;
1277
                    $this->tokens[$i]['type'] = 'T_ANON_CLASS';
1278
                    if (PHP_CodeSniffer_VERBOSITY > 1) {
1279
                        $line = $this->tokens[$i]['line'];
1280
                        echo "\t* token $i on line $line changed from T_CLASS to T_ANON_CLASS".PHP_EOL;
1281
                    }
1282
1283
                    for ($x = ($this->tokens[$i]['scope_opener'] + 1); $x < $this->tokens[$i]['scope_closer']; $x++) {
1284
                        if (isset($this->tokens[$x]['conditions'][$i]) === false) {
@@ 1343-1346 (lines=4) @@
1340
                    $this->tokens[$i]['code'] = T_STRING;
1341
                    $this->tokens[$i]['type'] = 'T_STRING';
1342
1343
                    if (PHP_CodeSniffer_VERBOSITY > 1) {
1344
                        $line = $this->tokens[$i]['line'];
1345
                        echo "\t* token $i on line $line changed from T_STATIC to T_STRING".PHP_EOL;
1346
                    }
1347
                }
1348
1349
                continue;
@@ 1355-1358 (lines=4) @@
1352
                $this->tokens[$i]['code'] = T_OPEN_TAG_WITH_ECHO;
1353
                $this->tokens[$i]['type'] = 'T_OPEN_TAG_WITH_ECHO';
1354
1355
                if (PHP_CodeSniffer_VERBOSITY > 1) {
1356
                    $line = $this->tokens[$i]['line'];
1357
                    echo "\t* token $i on line $line changed from T_ECHO to T_OPEN_TAG_WITH_ECHO".PHP_EOL;
1358
                }
1359
            } else if ($this->tokens[$i]['code'] === T_TRUE
1360
                || $this->tokens[$i]['code'] === T_FALSE
1361
                || $this->tokens[$i]['code'] === T_NULL