@@ -109,7 +109,7 @@ public function format(\DateTime $dateTime)
109109 */
110110 public function formatReplace ($ dateChars , $ dateTime )
111111 {
112- $ length = strlen ($ dateChars );
112+ $ length = \ strlen ($ dateChars );
113113
114114 if ($ this ->isQuoteMatch ($ dateChars )) {
115115 return $ this ->replaceQuoteMatch ($ dateChars );
@@ -149,7 +149,7 @@ public function parse(\DateTime $dateTime, $value)
149149
150150 foreach ($ this ->transformers as $ char => $ transformer ) {
151151 if (isset ($ matches [$ char ])) {
152- $ length = strlen ($ matches [$ char ]['pattern ' ]);
152+ $ length = \ strlen ($ matches [$ char ]['pattern ' ]);
153153 $ options = array_merge ($ options , $ transformer ->extractDateOptions ($ matches [$ char ]['value ' ], $ length ));
154154 }
155155 }
@@ -185,7 +185,7 @@ public function getReverseMatchingRegExp($pattern)
185185 $ escapedPattern = preg_replace ('/ \\\[\-|\/]/ ' , '[\/\-] ' , $ escapedPattern );
186186
187187 $ reverseMatchingRegExp = preg_replace_callback ($ this ->regExp , function ($ matches ) use ($ that ) {
188- $ length = strlen ($ matches [0 ]);
188+ $ length = \ strlen ($ matches [0 ]);
189189 $ transformerIndex = $ matches [0 ][0 ];
190190
191191 $ dateChars = $ matches [0 ];
@@ -262,7 +262,7 @@ protected function normalizeArray(array $data)
262262 $ ret = array ();
263263
264264 foreach ($ data as $ key => $ value ) {
265- if (!is_string ($ key )) {
265+ if (!\ is_string ($ key )) {
266266 continue ;
267267 }
268268
@@ -317,7 +317,7 @@ protected function calculateUnixTimestamp(\DateTime $dateTime, array $options)
317317
318318 // Normalize yy year
319319 preg_match_all ($ this ->regExp , $ this ->pattern , $ matches );
320- if (in_array ('yy ' , $ matches [0 ])) {
320+ if (\ in_array ('yy ' , $ matches [0 ])) {
321321 $ dateTime ->setTimestamp (time ());
322322 $ year = $ year > $ dateTime ->format ('y ' ) + 20 ? 1900 + $ year : 2000 + $ year ;
323323 }
0 commit comments