@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | public function all() |
| 172 | 172 | { |
| 173 | 173 | |
| 174 | - return ( object )array( |
|
| 174 | + return (object) array( |
|
| 175 | 175 | |
| 176 | 176 | 'second' => $this->date_time->format('s'), |
| 177 | 177 | |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | |
| 392 | 392 | $difference->year = $difference->y; |
| 393 | 393 | |
| 394 | - $difference->simple = ( new SimpleDiff( $start, $end, $difference ) ); |
|
| 394 | + $difference->simple = (new SimpleDiff($start, $end, $difference)); |
|
| 395 | 395 | |
| 396 | 396 | return $difference; |
| 397 | 397 | |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | public function get($format = 'Y-m-d H:i:s') |
| 591 | 591 | { |
| 592 | 592 | |
| 593 | - if( $format === 'timestamp' ) { |
|
| 593 | + if ($format === 'timestamp') { |
|
| 594 | 594 | |
| 595 | 595 | return $this->timestamp(); |
| 596 | 596 | |
@@ -44,9 +44,9 @@ discard block |
||
| 44 | 44 | public function year() |
| 45 | 45 | { |
| 46 | 46 | |
| 47 | - $this->config = include __DIR__.'/CalendarSettings/' . ucfirst($this->calendar_type) . '.php'; |
|
| 47 | + $this->config = include __DIR__.'/CalendarSettings/'.ucfirst($this->calendar_type).'.php'; |
|
| 48 | 48 | |
| 49 | - return $this->config[ 'day_of_year' ]( $this->date_time ); |
|
| 49 | + return $this->config['day_of_year']($this->date_time); |
|
| 50 | 50 | |
| 51 | 51 | } |
| 52 | 52 | |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | public function week() |
| 61 | 61 | { |
| 62 | 62 | |
| 63 | - $this->config = include __DIR__.'/CalendarSettings/' . ucfirst($this->calendar_type) . '.php'; |
|
| 63 | + $this->config = include __DIR__.'/CalendarSettings/'.ucfirst($this->calendar_type).'.php'; |
|
| 64 | 64 | |
| 65 | - return $this->config[ 'day_of_week' ]( $this->date_time ); |
|
| 65 | + return $this->config['day_of_week']($this->date_time); |
|
| 66 | 66 | |
| 67 | 67 | } |
| 68 | 68 | |
@@ -74,9 +74,9 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function lastDayMonth() { |
| 76 | 76 | |
| 77 | - $this->config = include __DIR__.'/CalendarSettings/' . ucfirst($this->calendar_type) . '.php'; |
|
| 77 | + $this->config = include __DIR__.'/CalendarSettings/'.ucfirst($this->calendar_type).'.php'; |
|
| 78 | 78 | |
| 79 | - return $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
| 79 | + return $this->config['month_days_number'][intval($this->date_time->format('m'))]; |
|
| 80 | 80 | |
| 81 | 81 | } |
| 82 | 82 | } |