Code Duplication    Length = 9-9 lines in 3 locations

app/Satis/ConfigManager.php 1 location

@@ 68-76 (lines=9) @@
65
    /**
66
     * @return \Monolog\Logger
67
     */
68
    protected function getLogger() {
69
        $handler = new StreamHandler(storage_path('logs/api_request.log'), Logger::DEBUG);
70
        $handler->setFormatter(new LineFormatter(null, null, true, true));
71
72
        $logger = new Logger('ApiRequestLog');
73
        $logger->pushHandler($handler);
74
75
        return $logger;
76
    }
77
78
    /**
79
     * @param \App\Satis\Collections\RepositoryCollection $repositoryCollection

app/Satis/Context/AsyncCommand.php 1 location

@@ 42-50 (lines=9) @@
39
    /**
40
     * @return \Monolog\Logger
41
     */
42
    public function getLogger() {
43
        $handler = new StreamHandler(storage_path('logs/builder_async.log'), Logger::DEBUG);
44
        $handler->setFormatter(new LineFormatter(null, null, true, true));
45
46
        $logger = new Logger('AsyncBuildLog');
47
        $logger->pushHandler($handler);
48
49
        return $logger;
50
    }
51
}
52

app/Satis/Context/SyncCommand.php 1 location

@@ 40-48 (lines=9) @@
37
    /**
38
     * @return \Monolog\Logger
39
     */
40
    public function getLogger() {
41
        $handler = new StreamHandler(storage_path('logs/builder_sync.log'), Logger::DEBUG);
42
        $handler->setFormatter(new LineFormatter(null, null, true, true));
43
44
        $logger = new Logger('SyncBuildLog');
45
        $logger->pushHandler($handler);
46
47
        return $logger;
48
    }
49
}
50