Completed
Push — master ( f6fd8e...15d0ea )
by
unknown
11s
created
src/Datium.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DayOf.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-   * Which day of year is current day.
40
-   *
41
-   * @since  Aug, 03 2015
42
-   * @return integer
43
-   */
39
+     * Which day of year is current day.
40
+     *
41
+     * @since  Aug, 03 2015
42
+     * @return integer
43
+     */
44 44
     public function year()
45 45
     {
46 46
 
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 
53 53
 
54 54
     /**
55
-   * Which day of week is current day.
56
-   *
57
-   * @since  Aug, 09 2015
58
-   * @return integer
59
-   */
55
+     * Which day of week is current day.
56
+     *
57
+     * @since  Aug, 09 2015
58
+     * @return integer
59
+     */
60 60
     public function week()
61 61
     {
62 62
 
@@ -66,17 +66,17 @@  discard block
 block discarded – undo
66 66
 
67 67
     }
68 68
 
69
-	/**
70
-	 * Return last day of current month
71
-	 *
72
-	 * @since  Oct, 18 2016
73
-	 * @return integer
74
-	 */
75
-	public function lastDayMonth() {
69
+  /**
70
+   * Return last day of current month
71
+   *
72
+   * @since  Oct, 18 2016
73
+   * @return integer
74
+   */
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
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.