Test Setup Failed
Push — master ( b8045a...e8e652 )
by
unknown
17:41
created
src/Charcoal/Cms/Support/Helpers/DateHelper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $this->to = null;
88 88
         }
89 89
 
90
-        return (string)$this->formatDateFromCase($this->getDateCase());
90
+        return (string) $this->formatDateFromCase($this->getDateCase());
91 91
     }
92 92
 
93 93
     /**
@@ -199,18 +199,18 @@  discard block
 block discarded – undo
199 199
                            ? $this->translator()->translation($case['formats']['to'])
200 200
                            : null;
201 201
 
202
-        $formats['from'] = $this->crossPlatformFormat((string)$formats['from']);
203
-        $formats['to']   = $this->crossPlatformFormat((string)$formats['to']);
202
+        $formats['from'] = $this->crossPlatformFormat((string) $formats['from']);
203
+        $formats['to']   = $this->crossPlatformFormat((string) $formats['to']);
204 204
 
205 205
         if (!$this->to || !$formats['to']) {
206 206
             return sprintf(
207
-                (string)$content,
207
+                (string) $content,
208 208
                 strftime($formats['from'], $this->from->getTimestamp())
209 209
             );
210 210
         }
211 211
 
212 212
         return sprintf(
213
-            (string)$content,
213
+            (string) $content,
214 214
             strftime($formats['from'], $this->from->getTimestamp()),
215 215
             strftime($formats['to'], $this->to->getTimestamp())
216 216
         );
@@ -235,13 +235,13 @@  discard block
 block discarded – undo
235 235
 
236 236
         if (!$this->to || !$formats['to']) {
237 237
             return sprintf(
238
-                (string)$content,
238
+                (string) $content,
239 239
                 strftime($formats['from'], $this->from->getTimestamp())
240 240
             );
241 241
         }
242 242
 
243 243
         return sprintf(
244
-            (string)$content,
244
+            (string) $content,
245 245
             strftime($formats['from'], $this->from->getTimestamp()),
246 246
             strftime($formats['to'], $this->to->getTimestamp())
247 247
         );
Please login to merge, or discard this patch.