Code Duplication    Length = 9-10 lines in 2 locations

common/components/BackendBootstrap.php 1 location

@@ 42-50 (lines=9) @@
39
     *
40
     * @param Application $app the application currently running
41
     */
42
    protected function setTime($app)
43
    {
44
        /* TIME ZONE */
45
        $app->timeZone = Option::get('time_zone');
46
        /* DATE TIME */
47
        $app->formatter->dateFormat = 'php:' . Option::get('date_format');
48
        $app->formatter->timeFormat = 'php:' . Option::get('time_format');
49
        $app->formatter->datetimeFormat = 'php:' . Option::get('date_format') . ' ' . Option::get('time_format');
50
    }
51
52
    /**
53
     * Set theme params

common/components/FrontendBootstrap.php 1 location

@@ 42-51 (lines=10) @@
39
     *
40
     * @param Application $app the application currently running
41
     */
42
    protected function setTime($app)
43
    {
44
        /* TIME ZONE */
45
        $app->timeZone = Option::get('time_zone');
46
47
        /* DATE TIME */
48
        $app->formatter->dateFormat = 'php:' . Option::get('date_format');
49
        $app->formatter->timeFormat = 'php:' . Option::get('time_format');
50
        $app->formatter->datetimeFormat = 'php:' . Option::get('date_format') . ' ' . Option::get('time_format');
51
    }
52
53
    /**
54
     * Set theme params