Code Duplication    Length = 11-11 lines in 4 locations

example/local/parse_all.php 1 location

@@ 34-44 (lines=11) @@
31
 * @param array $lines
32
 * @param string $name
33
 */
34
function dumpSectionIfThereIsSomeContent(array $lines, $name)
35
{
36
    if (!empty($lines)) {
37
        echo '==== ' . $name . ' ====' . PHP_EOL;
38
        echo PHP_EOL;
39
40
        dumpArray($lines);
41
42
        echo PHP_EOL;
43
    }
44
}
45
//end of helper functions
46
47
//begin of dependencies

example/local/parse_detail_only.php 1 location

@@ 34-44 (lines=11) @@
31
 * @param array $lines
32
 * @param string $name
33
 */
34
function dumpSectionIfThereIsSomeContent(array $lines, $name)
35
{
36
    if (!empty($lines)) {
37
        echo '==== ' . $name . ' ====' . PHP_EOL;
38
        echo PHP_EOL;
39
40
        dumpArray($lines);
41
42
        echo PHP_EOL;
43
    }
44
}
45
//end of helper functions
46
47
//begin of dependencies

example/remote/parse_all.php 1 location

@@ 34-44 (lines=11) @@
31
 * @param array $lines
32
 * @param string $name
33
 */
34
function dumpSectionIfThereIsSomeContent(array $lines, $name)
35
{
36
    if (!empty($lines)) {
37
        echo '==== ' . $name . ' ====' . PHP_EOL;
38
        echo PHP_EOL;
39
40
        dumpArray($lines);
41
42
        echo PHP_EOL;
43
    }
44
}
45
//end of helper functions
46
47
//begin of dependencies

example/remote/parse_detail_only.php 1 location

@@ 34-44 (lines=11) @@
31
 * @param array $lines
32
 * @param string $name
33
 */
34
function dumpSectionIfThereIsSomeContent(array $lines, $name)
35
{
36
    if (!empty($lines)) {
37
        echo '==== ' . $name . ' ====' . PHP_EOL;
38
        echo PHP_EOL;
39
40
        dumpArray($lines);
41
42
        echo PHP_EOL;
43
    }
44
}
45
//end of helper functions
46
47
//begin of dependencies