Code Duplication    Length = 5-5 lines in 4 locations

src/Suricate/Suricate.php 4 locations

@@ 189-193 (lines=5) @@
186
        
187
        if (isset($this->config['App']['mode'])) {
188
            switch ($this->config['App']['mode']) {
189
                case App::DEVELOPMENT_MODE:
190
                    $errorReporting     = true;
191
                    $errorDumpContext   = true;
192
                    $logLevel           = Logger::LOGLEVEL_INFO;
193
                    break;
194
                case App::DEBUG_MODE:
195
                    $errorReporting     = true;
196
                    $errorDumpContext   = true;
@@ 194-198 (lines=5) @@
191
                    $errorDumpContext   = true;
192
                    $logLevel           = Logger::LOGLEVEL_INFO;
193
                    break;
194
                case App::DEBUG_MODE:
195
                    $errorReporting     = true;
196
                    $errorDumpContext   = true;
197
                    $logLevel           = Logger::LOGLEVEL_DEBUG;
198
                    break;
199
                case App::PRELIVE_MODE:
200
                    $errorReporting     = true;
201
                    $errorDumpContext   = false;
@@ 199-203 (lines=5) @@
196
                    $errorDumpContext   = true;
197
                    $logLevel           = Logger::LOGLEVEL_DEBUG;
198
                    break;
199
                case App::PRELIVE_MODE:
200
                    $errorReporting     = true;
201
                    $errorDumpContext   = false;
202
                    $logLevel           = Logger::LOGLEVEL_WARN;
203
                    break;
204
                case App::PRODUCTION_MODE:
205
                    $errorReporting     = false;
206
                    $errorDumpContext   = false;
@@ 204-208 (lines=5) @@
201
                    $errorDumpContext   = false;
202
                    $logLevel           = Logger::LOGLEVEL_WARN;
203
                    break;
204
                case App::PRODUCTION_MODE:
205
                    $errorReporting     = false;
206
                    $errorDumpContext   = false;
207
                    $logLevel           = Logger::LOGLEVEL_WARN;
208
                    break;
209
            }
210
        }
211