Passed
Push — master ( 189c3f...f802e2 )
by Sebastian
02:25
created
src/ConvertHelper/DurationConverter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
         
113 113
         $epoch = 'past';
114 114
         $key = 'singular';
115
-        if($this->dateDiff > 1) {
115
+        if ($this->dateDiff > 1) {
116 116
             $key = 'plural';
117 117
         }
118 118
         
119
-        if($this->future) {
119
+        if ($this->future) {
120 120
             $epoch = 'future'; 
121 121
         }
122 122
         
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     
130 130
     protected function initTexts()
131 131
     {
132
-        if(isset(self::$texts)) {
132
+        if (isset(self::$texts)) {
133 133
             return;
134 134
         }
135 135
         
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         $day = (int)date("j", $this->dateTo);
216 216
         $year = (int)date("Y", $this->dateFrom);
217 217
         
218
-        while(mktime($hour, $min, $sec, $month + ($months_difference), $day, $year) < $this->dateTo)
218
+        while (mktime($hour, $min, $sec, $month + ($months_difference), $day, $year) < $this->dateTo)
219 219
         {
220 220
             $months_difference++;
221 221
         }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     
236 236
     protected function resolveCalculations() : void
237 237
     {
238
-        if(!isset($this->dateFrom))
238
+        if (!isset($this->dateFrom))
239 239
         {
240 240
             throw new ConvertHelper_Exception(
241 241
                 'No date from has been specified.',
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         }
246 246
         
247 247
         // no date to set? Assume we want to use today.
248
-        if(!isset($this->dateTo))
248
+        if (!isset($this->dateTo))
249 249
         {
250 250
             $this->dateTo = time();
251 251
         }
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
         
325 325
         $difference = $this->dateTo - $this->dateFrom;
326 326
         
327
-        if($difference < 0)
327
+        if ($difference < 0)
328 328
         {
329 329
             $difference = $difference * -1;
330 330
             $this->future = true;
Please login to merge, or discard this patch.