Skip to content

Commit 6e9fb14

Browse files
amandiobmjamesmills
authored andcommitted
Removed str_replace (jamesmills#11)
1 parent cb31ddf commit 6e9fb14

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/LaravelTimezoneServiceProvider.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ public function boot()
4747
Blade::directive(
4848
'displayDate',
4949
function ($expression) {
50-
51-
// list($date, $format, $format_timezone) = explode(',', str_replace(' ', '', $expression));
52-
$options = explode(',', str_replace(' ', '', $expression));
50+
$options = explode(',', $expression);
5351

5452
if (count($options) == 1) {
5553
return "<?php echo e(Timezone::convertToLocal($options[0])); ?>";

0 commit comments

Comments
 (0)