|
@@ -67,12 +67,12 @@ discard block |
|
|
block discarded – undo |
|
67
|
67
|
|
|
68
|
68
|
$this->generate(); |
|
69
|
69
|
|
|
70
|
|
- if ($this->startDate->format('Y') . '-' . $this->startDate->format('m') . '-' . $this->startDate->format('d') === '0001-01-01') { |
|
|
70
|
+ if ($this->startDate->format('Y').'-'.$this->startDate->format('m').'-'.$this->startDate->format('d') === '0001-01-01') { |
|
71
|
71
|
$this->valid = false; |
|
72
|
72
|
$this->totalLength = 0; |
|
73
|
73
|
} |
|
74
|
74
|
|
|
75
|
|
- if ($this->endDate->format('Y') . '-' . $this->endDate->format('m') . '-' . $this->endDate->format('d') === '0001-01-01') { |
|
|
75
|
+ if ($this->endDate->format('Y').'-'.$this->endDate->format('m').'-'.$this->endDate->format('d') === '0001-01-01') { |
|
76
|
76
|
$this->valid = false; |
|
77
|
77
|
$this->totalLength = 0; |
|
78
|
78
|
} |
|
@@ -101,7 +101,7 @@ discard block |
|
|
block discarded – undo |
|
101
|
101
|
*/ |
|
102
|
102
|
protected function generateDateTime($year, $month, $day) |
|
103
|
103
|
{ |
|
104
|
|
- $date = \DateTime::createFromFormat('Y-m-d', $year . '-' . $month . '-' . $day); |
|
|
104
|
+ $date = \DateTime::createFromFormat('Y-m-d', $year.'-'.$month.'-'.$day); |
|
105
|
105
|
|
|
106
|
106
|
if ($date === false) { |
|
107
|
107
|
return $this->zeroDate; |
|
@@ -122,7 +122,7 @@ discard block |
|
|
block discarded – undo |
|
122
|
122
|
|
|
123
|
123
|
$interval = $this->startDate->diff($this->endDate); |
|
124
|
124
|
|
|
125
|
|
- $this->totalLength = (int)$interval->format('%R%a') + 1; |
|
|
125
|
+ $this->totalLength = (int) $interval->format('%R%a') + 1; |
|
126
|
126
|
} |
|
127
|
127
|
|
|
128
|
128
|
/** |
Please login to merge, or discard this patch.