@@ -176,7 +176,7 @@ public function currency($currency, int $minDecimals = 2, int $maxDecimals = 2):
176176 * @param string $str The date string to format.
177177 * @return string The formatted date.
178178 */
179- public function date (string $ str ): string
179+ public function date ($ str ): string
180180 {
181181 return $ str ? $ this ->formatDateTime ('date ' , "$ str " ) : '' ;
182182 }
@@ -187,7 +187,7 @@ public function date(string $str): string
187187 * @param string $str The UTC date string to format.
188188 * @return string The formatted date.
189189 */
190- public function dateUtc (string $ str ): string
190+ public function dateUtc ($ str ): string
191191 {
192192 return $ str ? $ this ->formatDateTime ('date ' , "$ str UTC " ) : '' ;
193193 }
@@ -220,7 +220,7 @@ public function duration(int $seconds, bool $trim = false): string
220220 * @param string $str The datetime string to format.
221221 * @return string The formatted datetime.
222222 */
223- public function datetime (string $ str ): string
223+ public function datetime ($ str ): string
224224 {
225225 return $ str ? $ this ->formatDateTime ('datetime ' , "$ str " ) : '' ;
226226 }
@@ -231,7 +231,7 @@ public function datetime(string $str): string
231231 * @param string $str The UTC datetime string to format.
232232 * @return string The formatted datetime.
233233 */
234- public function datetimeUtc (string $ str ): string
234+ public function datetimeUtc ($ str ): string
235235 {
236236 return $ str ? $ this ->formatDateTime ('datetime ' , "$ str UTC " ) : '' ;
237237 }
@@ -326,7 +326,7 @@ private function formatDateTime(string $type, string $str): string
326326 * @param string $str The datetime string to format.
327327 * @return string The formatted short datetime.
328328 */
329- public function datetimeShort (string $ str ): string
329+ public function datetimeShort ($ str ): string
330330 {
331331 if (!$ str ) {
332332 return '' ;
@@ -337,7 +337,7 @@ public function datetimeShort(string $str): string
337337 $ dateFormat = 'm/d/Y ' ;
338338 }
339339 $ sep = $ dateFormat [1 ];
340- $ timestamp = strtotime ($ str );
340+ $ timestamp = strtotime (" $ str" );
341341 if ($ timestamp === false ) {
342342 return '' ;
343343 }
0 commit comments