Code Duplication    Length = 14-16 lines in 2 locations

src/Console/Hydrate.php 2 locations

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