Code Duplication    Length = 11-11 lines in 2 locations

eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location

@@ 1048-1058 (lines=11) @@
1045
            );
1046
        }
1047
1048
        if (!is_file($fixture)) {
1049
            if (isset($_ENV['ez_tests_record'])) {
1050
                file_put_contents(
1051
                    $record = $fixture . '.recording',
1052
                    "<?php\n\nreturn " . var_export($result, true) . ";\n\n"
1053
                );
1054
                $this->markTestIncomplete("No fixture available. Result recorded at $record. Result: \n" . $this->printResult($result));
1055
            } else {
1056
                $this->markTestIncomplete("No fixture available. Set \$_ENV['ez_tests_record'] to generate it.");
1057
            }
1058
        }
1059
1060
        $fixture = include $fixture;
1061

eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location

@@ 4415-4425 (lines=11) @@
4412
            );
4413
        }
4414
4415
        if (!is_file($fixture)) {
4416
            if (isset($_ENV['ez_tests_record'])) {
4417
                file_put_contents(
4418
                    $record = $fixture . '.recording',
4419
                    "<?php\n\nreturn " . var_export($result, true) . ";\n\n"
4420
                );
4421
                $this->markTestIncomplete("No fixture available. Result recorded at $record. Result: \n" . $this->printResult($result));
4422
            } else {
4423
                $this->markTestIncomplete("No fixture available. Set \$_ENV['ez_tests_record'] to generate it.");
4424
            }
4425
        }
4426
4427
        $fixture = include $fixture;
4428