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