@@ -42,8 +42,7 @@ |
||
42 | 42 | $this->date = $date; |
43 | 43 | if ($this->getDay()) { |
44 | 44 | $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
45 | - } |
|
46 | - else { |
|
45 | + } else { |
|
47 | 46 | $this->year = $date; |
48 | 47 | $this->date = null; |
49 | 48 | } |
@@ -40,8 +40,7 @@ |
||
40 | 40 | $this->date = $date; |
41 | 41 | if ($this->getDay()) { |
42 | 42 | $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
43 | - } |
|
44 | - else { |
|
43 | + } else { |
|
45 | 44 | $this->dateFormatted = null; |
46 | 45 | $this->year = $date; |
47 | 46 | $this->date = null; |
@@ -40,8 +40,7 @@ |
||
40 | 40 | $this->date = $date; |
41 | 41 | if ($this->getDay()) { |
42 | 42 | $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
43 | - } |
|
44 | - else { |
|
43 | + } else { |
|
45 | 44 | $this->year = $date; |
46 | 45 | $this->date = null; |
47 | 46 | } |