Code Duplication    Length = 13-13 lines in 2 locations

src/Security/Member.php 2 locations

@@ 1194-1206 (lines=13) @@
1191
     *
1192
     * @return string ISO date format
1193
     */
1194
    public function getDateFormat()
1195
    {
1196
        $formatter = new IntlDateFormatter(
1197
            $this->getLocale(),
1198
            IntlDateFormatter::MEDIUM,
1199
            IntlDateFormatter::NONE
1200
        );
1201
        $format = $formatter->getPattern();
1202
1203
        $this->extend('updateDateFormat', $format);
1204
1205
        return $format;
1206
    }
1207
1208
    /**
1209
     * Get user locale
@@ 1227-1239 (lines=13) @@
1224
     *
1225
     * @return string ISO date format
1226
     */
1227
    public function getTimeFormat()
1228
    {
1229
        $formatter = new IntlDateFormatter(
1230
            $this->getLocale(),
1231
            IntlDateFormatter::NONE,
1232
            IntlDateFormatter::MEDIUM
1233
        );
1234
        $format = $formatter->getPattern();
1235
1236
        $this->extend('updateTimeFormat', $format);
1237
1238
        return $format;
1239
    }
1240
1241
    //---------------------------------------------------------------------//
1242