@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function setDate($date) { |
| 40 | 40 | $this->date = $date; |
| 41 | 41 | if ($this->getDay()) { |
| 42 | - $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
|
| 42 | + $this->dateFormatted = $this->getYear().'-'.$this->getMonth().'-'.substr("0{$this->getDay()}", -2); |
|
| 43 | 43 | } |
| 44 | 44 | else { |
| 45 | 45 | $this->dateFormatted = 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->dateFormatted = null; |
| 46 | 45 | $this->year = $date; |
| 47 | 46 | $this->date = null; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function setDate($date) { |
| 40 | 40 | $this->date = $date; |
| 41 | 41 | if ($this->getDay()) { |
| 42 | - $this->dateFormatted = $this->getYear() .'-'. $this->getMonth() .'-'. substr("0{$this->getDay()}", -2); |
|
| 42 | + $this->dateFormatted = $this->getYear().'-'.$this->getMonth().'-'.substr("0{$this->getDay()}", -2); |
|
| 43 | 43 | } |
| 44 | 44 | else { |
| 45 | 45 | $this->year = $date; |
@@ -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 | } |