@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | class Date |
31 | 31 | { |
32 | 32 | /** constants */ |
33 | - const CALENDAR_WINDOWS_1900 = 1900; // Base date of 1st Jan 1900 = 1.0 |
|
34 | - const CALENDAR_MAC_1904 = 1904; // Base date of 2nd Jan 1904 = 1.0 |
|
33 | + const CALENDAR_WINDOWS_1900 = 1900; // Base date of 1st Jan 1900 = 1.0 |
|
34 | + const CALENDAR_MAC_1904 = 1904; // Base date of 2nd Jan 1904 = 1.0 |
|
35 | 35 | |
36 | 36 | /* |
37 | 37 | * Names of the months of the year, indexed by shortname |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | return false; |
389 | 389 | } |
390 | 390 | // Try checking for any of the date formatting characters that don't appear within square braces |
391 | - if (preg_match('/(^|\])[^\[]*['.self::$possibleDateFormatCharacters.']/i', $pFormatCode)) { |
|
391 | + if (preg_match('/(^|\])[^\[]*[' . self::$possibleDateFormatCharacters . ']/i', $pFormatCode)) { |
|
392 | 392 | // We might also have a format mask containing quoted strings... |
393 | 393 | // we don't want to test for any of our characters within the quoted blocks |
394 | 394 | if (strpos($pFormatCode, '"') !== false) { |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | foreach (explode('"', $pFormatCode) as $subVal) { |
397 | 397 | // Only test in alternate array entries (the non-quoted blocks) |
398 | 398 | if (($segMatcher = !$segMatcher) && |
399 | - (preg_match('/(^|\])[^\[]*['.self::$possibleDateFormatCharacters.']/i', $subVal))) { |
|
399 | + (preg_match('/(^|\])[^\[]*[' . self::$possibleDateFormatCharacters . ']/i', $subVal))) { |
|
400 | 400 | return true; |
401 | 401 | } |
402 | 402 | } |