Code Duplication    Length = 13-13 lines in 2 locations

src/Security/Member.php 2 locations

@@ 1171-1183 (lines=13) @@
1168
     *
1169
     * @return string ISO date format
1170
     */
1171
    public function getDateFormat()
1172
    {
1173
        $formatter = new IntlDateFormatter(
1174
            $this->getLocale(),
1175
            IntlDateFormatter::MEDIUM,
1176
            IntlDateFormatter::NONE
1177
        );
1178
        $format = $formatter->getPattern();
1179
1180
        $this->extend('updateDateFormat', $format);
1181
1182
        return $format;
1183
    }
1184
1185
    /**
1186
     * Get user locale
@@ 1203-1215 (lines=13) @@
1200
     *
1201
     * @return string ISO date format
1202
     */
1203
    public function getTimeFormat()
1204
    {
1205
        $formatter = new IntlDateFormatter(
1206
            $this->getLocale(),
1207
            IntlDateFormatter::NONE,
1208
            IntlDateFormatter::MEDIUM
1209
        );
1210
        $format = $formatter->getPattern();
1211
1212
        $this->extend('updateTimeFormat', $format);
1213
1214
        return $format;
1215
    }
1216
1217
    //---------------------------------------------------------------------//
1218