Code Duplication    Length = 14-16 lines in 2 locations

src/Console/Hydrate.php 2 locations

@@ 35-50 (lines=16) @@
32
        $this->warnForUnvaluedVariables($processor);
33
    }
34
35
    private function warnForUnusedVariables(Hydrator $processor)
36
    {
37
        $unusedVariables = $processor->getUnusedVariables();
38
39
        if(! empty($unusedVariables))
40
        {
41
            $logger = $this->app['logger'];
42
43
            $logger->warning('You have unused variables : you should remove them or check if you have not mispelled them');
44
45
            $logger->warning(sprintf(
46
                'Unused variables : %s',
47
                implode(', ', $unusedVariables)
48
            ));
49
        }
50
    }
51
52
    private function warnForUnvaluedVariables(Hydrator $processor): void
53
    {
@@ 52-65 (lines=14) @@
49
        }
50
    }
51
52
    private function warnForUnvaluedVariables(Hydrator $processor): void
53
    {
54
        $unvaluedVariables = $processor->getUnvaluedVariables();
55
56
        if(! empty($unvaluedVariables))
57
        {
58
            $logger = $this->app['logger'];
59
60
            $logger->warning(sprintf(
61
                'Missing values for variables : %s (TODO markers found)',
62
                implode(', ', $unvaluedVariables)
63
            ));
64
        }
65
    }
66
}
67