Completed
Push — master ( 5981e6...969234 )
by mehdi
02:52
created
src/Events/Events.php 4 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php namespace Datium;
2 2
 
3 3
 use Datium\Tools\Convert;
4
-use Datium\Tools\DayOf;
5 4
 use DateTime;
6 5
 use DateInterval;
7 6
 use DatePeriod;
Please login to merge, or discard this patch.
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -58,6 +58,10 @@
 block discarded – undo
58 58
     *
59 59
     *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
60 60
     */
61
+
62
+    /**
63
+     * @param string $path
64
+     */
61 65
     private function fetch( $path ) 
62 66
     {
63 67
 
Please login to merge, or discard this patch.
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -143,19 +143,19 @@
 block discarded – undo
143 143
 
144 144
                 switch ( $this->local[ 'default_calendar' ] ) {
145 145
 
146
-                case 'jalali':
146
+                  case 'jalali':
147 147
 
148
-                    $this->date_time->setDate(1394, $month, $day);
148
+                      $this->date_time->setDate(1394, $month, $day);
149 149
 
150
-                    $this->date_time = Datium::create($this->date_time)->from('jalali')->to('gregorian')->object(); //$this->convert->jalaliToGregorian( $this->date_time );
150
+                      $this->date_time = Datium::create($this->date_time)->from('jalali')->to('gregorian')->object(); //$this->convert->jalaliToGregorian( $this->date_time );
151 151
 
152
-                    break;
152
+                      break;
153 153
 
154
-                case 'hijri':
154
+                  case 'hijri':
155 155
 
156
-                    $this->date_time = Datium::create($this->date_time)->from('hijri')->to('gregorian')->object(); // $this->convert->hijriToGregorian( $this->date_time );
156
+                      $this->date_time = Datium::create($this->date_time)->from('hijri')->to('gregorian')->object(); // $this->convert->hijriToGregorian( $this->date_time );
157 157
 
158
-                    break;
158
+                      break;
159 159
 
160 160
                 }
161 161
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
 
28 28
     private static $date_end;
29 29
 
30
-    public function __construct( $date_time, $date_end = null ) 
30
+    public function __construct($date_time, $date_end = null) 
31 31
     {
32 32
 
33
-        if($date_end !== null ) {
33
+        if ($date_end !== null) {
34 34
 
35 35
             Events::$date_start = $date_time;
36 36
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     *
59 59
     *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
60 60
     */
61
-    private function fetch( $path ) 
61
+    private function fetch($path) 
62 62
     {
63 63
 
64 64
         $this->events = include $path;
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
         $this->period = new DatePeriod(Events::$date_start, $this->interval, Events::$date_end);
69 69
 
70
-        foreach ( $this->period as $dt ) {
70
+        foreach ($this->period as $dt) {
71 71
 
72
-            if (isset($this->events[ 'events' ][ intval($dt->format('m')) ][ intval($dt->format('d')) ]) ) {
72
+            if (isset($this->events['events'][intval($dt->format('m'))][intval($dt->format('d'))])) {
73 73
 
74
-                $this->result[ $dt->format('Y-m-d') ][] = $this->events[ 'events' ][ intval($dt->format('m')) ][ intval($dt->format('d')) ];
74
+                $this->result[$dt->format('Y-m-d')][] = $this->events['events'][intval($dt->format('m'))][intval($dt->format('d'))];
75 75
 
76 76
             }
77 77
 
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
     public function get() 
92 92
     {
93 93
 
94
-        if(! empty($this->result) ) {
94
+        if ( ! empty($this->result)) {
95 95
 
96
-            foreach( $this->result as $key => $day ) {
96
+            foreach ($this->result as $key => $day) {
97 97
 
98
-                if (! ( $key > Events::$date_start->format('Y-m-d') && $key < Events::$date_end->format('Y-m-d') ) ) {
98
+                if ( ! ($key > Events::$date_start->format('Y-m-d') && $key < Events::$date_end->format('Y-m-d'))) {
99 99
 
100
-                    unset($this->result[ $key ]);
100
+                    unset($this->result[$key]);
101 101
 
102 102
                 }
103 103
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     *
123 123
     *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
124 124
     */
125
-    public function local( $country_code = "ir" ) 
125
+    public function local($country_code = "ir") 
126 126
     {
127 127
 
128 128
         /*
@@ -131,17 +131,17 @@  discard block
 block discarded – undo
131 131
          */
132 132
         $country_code = strtolower($country_code = 'ir');
133 133
 
134
-        $this->local = include 'Localization/' . $country_code . '.php';
134
+        $this->local = include 'Localization/'.$country_code.'.php';
135 135
 
136
-        foreach( $this->local[ 'events' ] as $month => $events ) {
136
+        foreach ($this->local['events'] as $month => $events) {
137 137
 
138
-            foreach( $events as $day => $event ){
138
+            foreach ($events as $day => $event) {
139 139
 
140 140
                 $this->date_time = new DateTime();
141 141
 
142 142
                 $this->date_time->setDate(Events::$date_start->format('Y'), $month, $day);
143 143
 
144
-                switch ( $this->local[ 'default_calendar' ] ) {
144
+                switch ($this->local['default_calendar']) {
145 145
 
146 146
                 case 'jalali':
147 147
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
                 }
161 161
 
162
-                $this->result[ $this->date_time->format('Y-m-d') ][] =  $event;
162
+                $this->result[$this->date_time->format('Y-m-d')][] = $event;
163 163
 
164 164
             }
165 165
 
Please login to merge, or discard this patch.
src/Leap.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
   /**
101 101
    * check the ghamari year is leap or not
102 102
    * @since Oct, 24 2015
103
-   * @return boolean
103
+   * @return integer|null
104 104
    */
105 105
   public function ghamariLeapYear() {
106 106
 
Please login to merge, or discard this patch.
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -7,42 +7,42 @@  discard block
 block discarded – undo
7 7
 {
8 8
 
9 9
     /**
10
-   * @param integer store year value
11
-   */
10
+     * @param integer store year value
11
+     */
12 12
     protected $year;
13 13
 
14 14
     /**
15
-   * @param string store type of year value
16
-   */
15
+     * @param string store type of year value
16
+     */
17 17
     protected $type;
18 18
 
19 19
     /**
20
-   * @param boolean store result of leap functions
21
-   */
20
+     * @param boolean store result of leap functions
21
+     */
22 22
     protected $result;
23 23
 
24 24
 
25 25
     /**
26
-   * @param $year integer
27
-   * @since Aug, 21 2015
28
-   */
26
+     * @param $year integer
27
+     * @since Aug, 21 2015
28
+     */
29 29
     public function __construct( $year, $type = 'gregorian' ) 
30 30
     {
31 31
 
32
-         $this->year = $year;
32
+          $this->year = $year;
33 33
 
34
-         $this->type = $type;
34
+          $this->type = $type;
35 35
 
36
-         return $this;
36
+          return $this;
37 37
 
38 38
     }
39 39
 
40 40
     /**
41
-   * check the gregorian year is leap or not
42
-   *
43
-   * @since  Oct, 24 2015
44
-   * @return boolean
45
-   */
41
+     * check the gregorian year is leap or not
42
+     *
43
+     * @since  Oct, 24 2015
44
+     * @return boolean
45
+     */
46 46
     public function gregorinLeapYear() 
47 47
     {
48 48
 
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-   * check the jalali year is leap or not
55
-   *
56
-   * @since  Oct, 24 2015
57
-   * @return boolean
58
-   */
54
+     * check the jalali year is leap or not
55
+     *
56
+     * @since  Oct, 24 2015
57
+     * @return boolean
58
+     */
59 59
     public function jalaliLeapYear() 
60 60
     {
61 61
 
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-   * check the hijri year is leap or not
107
-   *
108
-   * @since  Oct, 24 2015
109
-   * @return boolean
110
-   */
106
+     * check the hijri year is leap or not
107
+     *
108
+     * @since  Oct, 24 2015
109
+     * @return boolean
110
+     */
111 111
     public function hijriLeapYear() 
112 112
     {
113 113
 
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
     }
123 123
 
124 124
     /**
125
-   * return the year is leap or not
126
-   *
127
-   * @since  Aug, 21 2015
128
-   * @return boolean
129
-   */
125
+     * return the year is leap or not
126
+     *
127
+     * @since  Aug, 21 2015
128
+     * @return boolean
129
+     */
130 130
     public function get() 
131 131
     {
132 132
 
Please login to merge, or discard this patch.
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -132,23 +132,23 @@
 block discarded – undo
132 132
 
133 133
         switch ( $this->type ) {
134 134
 
135
-        case 'gregorian':
135
+          case 'gregorian':
136 136
 
137
-            $this->result = $this->gregorinLeapYear();
137
+              $this->result = $this->gregorinLeapYear();
138 138
 
139
-            break;
139
+              break;
140 140
 
141
-        case 'jalali':
141
+          case 'jalali':
142 142
 
143
-            $this->result = $this->jalaliLeapYear();
143
+              $this->result = $this->jalaliLeapYear();
144 144
 
145
-            break;
145
+              break;
146 146
 
147
-        case 'hijri':
147
+          case 'hijri':
148 148
 
149
-            $this->result = $this->hijriLeapYear();
149
+              $this->result = $this->hijriLeapYear();
150 150
 
151
-            break;
151
+              break;
152 152
         }
153 153
 
154 154
         return $this->result;
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
    * @param $year integer
27 27
    * @since Aug, 21 2015
28 28
    */
29
-    public function __construct( $year, $type = 'gregorian' ) 
29
+    public function __construct($year, $type = 'gregorian') 
30 30
     {
31 31
 
32 32
          $this->year = $year;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public function gregorinLeapYear() 
47 47
     {
48 48
 
49
-        return ( ( ( $this->year % 4 ) == 0 ) && ( ( ( $this->year % 100 ) != 0 ) || ( ( $this->year % 400 ) == 0 ) ) );
49
+        return ((($this->year % 4) == 0) && ((($this->year % 100) != 0) || (($this->year % 400) == 0)));
50 50
 
51 51
     }
52 52
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $jalali_years = 0;
63 63
 
64
-        while ( $jalali_years < ( $this->year - 128 ) ) {
64
+        while ($jalali_years < ($this->year - 128)) {
65 65
 
66 66
             $jalali_years += 128;
67 67
 
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
 
73 73
         $this->result -= $jalali_years;
74 74
 
75
-        if ($this->result >= 33 ) {
75
+        if ($this->result >= 33) {
76 76
 
77 77
             $this->result = $this->result % 33;
78 78
 
79 79
         }
80 80
 
81
-        if (( $this->result == 28 ) || ( $this->result == 27 ) ) {
81
+        if (($this->result == 28) || ($this->result == 27)) {
82 82
 
83 83
             return $this->result;
84 84
 
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 
90 90
         $this->result -= $jalali_years;
91 91
 
92
-        if ($this->result >= 33 ) {
92
+        if ($this->result >= 33) {
93 93
 
94 94
             $this->result = $this->result % 33;
95 95
 
96 96
         }
97 97
 
98
-        if (( ( $this->result % 4 ) == 0 ) && ( $this->result != 28 ) ) {
98
+        if ((($this->result % 4) == 0) && ($this->result != 28)) {
99 99
 
100 100
             return $this->result;
101 101
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         $this->result = $this->year % 30;
115 115
 
116
-        if (( 2 == $this->result ) || ( 5 == $this->result ) || ( 7 == $this->result ) || ( 10 == $this->result ) || ( 13 == $this->result ) || ( 16 == $this->result ) || ( 18 == $this->result ) || ( 21 == $this->result ) || ( 24 == $this->year ) || ( 26 == $this->result ) || ( 29 == $this->result ) ) {
116
+        if ((2 == $this->result) || (5 == $this->result) || (7 == $this->result) || (10 == $this->result) || (13 == $this->result) || (16 == $this->result) || (18 == $this->result) || (21 == $this->result) || (24 == $this->year) || (26 == $this->result) || (29 == $this->result)) {
117 117
 
118 118
             return $this->result;
119 119
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     public function get() 
131 131
     {
132 132
 
133
-        switch ( $this->type ) {
133
+        switch ($this->type) {
134 134
 
135 135
         case 'gregorian':
136 136
 
Please login to merge, or discard this patch.
src/Events/Global/global.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @link http://www.un.org/en/sections/observances/international-days/
14 14
      */
15 15
     'events' => array(
16
-      1 => array( 27 => 'International Day of Commemoration in Memory of the Victims of the Holocaust' ),
16
+      1 => array(27 => 'International Day of Commemoration in Memory of the Victims of the Holocaust'),
17 17
       2 => array(
18 18
         4 => 'World Cancer Day',
19 19
         6 => 'International Day of Zero Tolerance to Female Genital Mutilation',
Please login to merge, or discard this patch.
src/Events/Localization/ir.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
      * as a arraye value
13 13
      */
14 14
     'events' => array(
15
-      1 => array( 1 => 'nowruz', 2 => 'nowruz', 3 => 'nowruz', 5 => 'nowruz' ),
16
-      10 => array( 22 => 'Iran revelution day' ),
17
-      12 => array( 29 => 'Iran oil national day' )
15
+      1 => array(1 => 'nowruz', 2 => 'nowruz', 3 => 'nowruz', 5 => 'nowruz'),
16
+      10 => array(22 => 'Iran revelution day'),
17
+      12 => array(29 => 'Iran oil national day')
18 18
     ),
19 19
 
20 20
 );
Please login to merge, or discard this patch.
src/Events/Localization/us.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 
10 10
   'events' => array(
11 11
 
12
-    4  => array( 22 => 'Earth day' ),
12
+    4  => array(22 => 'Earth day'),
13 13
 
14
-    12 => array( 25 => 'Christmas' )
14
+    12 => array(25 => 'Christmas')
15 15
 
16 16
   )
17 17
 
Please login to merge, or discard this patch.
src/lang/fa/general.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
   return array(
4 4
 
5
-       'events' => array( 'nowruz' => 'عید نوروز',
5
+        'events' => array( 'nowruz' => 'عید نوروز',
6 6
 
7 7
                           'iran_national_day' => 'روز جمهوری اسلامی',
8 8
 
@@ -12,16 +12,16 @@  discard block
 block discarded – undo
12 12
         'month' => array(
13 13
                           'فروردین',
14 14
                           'اردیبهشت',
15
-                           'خرداد',
16
-                           'تیر',
17
-                           'مرداد',
18
-                           'شهریور',
19
-                           'مهر',
20
-                           'آبان',
21
-                           'آذر',
22
-                           'دی',
23
-                           'بهمن',
24
-                           'اسفند',
15
+                            'خرداد',
16
+                            'تیر',
17
+                            'مرداد',
18
+                            'شهریور',
19
+                            'مهر',
20
+                            'آبان',
21
+                            'آذر',
22
+                            'دی',
23
+                            'بهمن',
24
+                            'اسفند',
25 25
                         ),
26 26
 
27 27
         'week_days_name' => array(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
   return array(
4 4
 
5
-       'events' => array( 'nowruz' => 'عید نوروز',
5
+       'events' => array('nowruz' => 'عید نوروز',
6 6
 
7 7
                           'iran_national_day' => 'روز جمهوری اسلامی',
8 8
 
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
 
41 41
         'pm_time' => 'ب.ظ',
42 42
 
43
-        'end_of_days' => array( "" ),
43
+        'end_of_days' => array(""),
44 44
 
45
-        'numbers' => array( '۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹' ),
45
+        'numbers' => array('۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'),
46 46
         '0' => '۰',
47 47
         '1' => '۱',
48 48
         '2' => '۲',
Please login to merge, or discard this patch.
src/Config.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,4 +125,4 @@
 block discarded – undo
125 125
    */
126 126
   'weekend' => array( 'friday' )
127 127
 
128
- );
128
+  );
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
   'default_calendar' => 'gregorian',
36 36
 
37 37
 
38
-  'date_interval' => array( 'D', 'M', 'Y', 'H', 'm', 'S' ),
38
+  'date_interval' => array('D', 'M', 'Y', 'H', 'm', 'S'),
39 39
 
40 40
 
41
-  'date_simple' => array( 'day', ' month', ' year', ' hour', ' minute', ' second' ),
41
+  'date_simple' => array('day', ' month', ' year', ' hour', ' minute', ' second'),
42 42
 
43 43
  );
Please login to merge, or discard this patch.
src/lang/ar/general.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,23 +2,23 @@
 block discarded – undo
2 2
 
3 3
   return array(
4 4
 
5
-       'events' => array( 'eid fitr' => 'عيد الفطر',
5
+        'events' => array( 'eid fitr' => 'عيد الفطر',
6 6
 
7 7
                         ),
8 8
 
9 9
         'month' => array(
10 10
                           'مُحَرَّم',
11 11
                           'صَفَر',
12
-                           'رَبيع الأوّل',
13
-                           'رَبيع الآخر',
14
-                           'جُمادى الأولى',
15
-                           'جُمادى الآخرة',
16
-                           'رَجَب',
17
-                           'شَعْبان',
18
-                           'رَمَضان',
19
-                           'شَوّال',
20
-                           'ذو القِعْدة',
21
-                           'ذو الحِجّة'
12
+                            'رَبيع الأوّل',
13
+                            'رَبيع الآخر',
14
+                            'جُمادى الأولى',
15
+                            'جُمادى الآخرة',
16
+                            'رَجَب',
17
+                            'شَعْبان',
18
+                            'رَمَضان',
19
+                            'شَوّال',
20
+                            'ذو القِعْدة',
21
+                            'ذو الحِجّة'
22 22
                         ),
23 23
 
24 24
         'days_of_week' => array(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
   return array(
4 4
 
5
-       'events' => array( 'eid fitr' => 'عيد الفطر',
5
+       'events' => array('eid fitr' => 'عيد الفطر',
6 6
 
7 7
                         ),
8 8
 
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
         'pm_time' => '',
39 39
 
40
-        'end_of_days' => array( "" ),
40
+        'end_of_days' => array(""),
41 41
 
42
-        'numbers' => array( '۰', '۱', '۲', '۳', '٤‎', '٥‎', '٦‎', '۷', '۸', '۹'),
42
+        'numbers' => array('۰', '۱', '۲', '۳', '٤‎', '٥‎', '٦‎', '۷', '۸', '۹'),
43 43
 
44 44
   );
45 45
 
Please login to merge, or discard this patch.
src/CalendarSettings/Gregorian.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 ``<?php
2 2
 
3
- use OpenCafe\Datium as Datium;
4
-
5 3
  return array (
6 4
 
7 5
  'numbers' => array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'),
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
- use OpenCafe\Datium as Datium;
3
+  use OpenCafe\Datium as Datium;
4 4
 
5
- return [
5
+  return [
6 6
 
7
- 'numbers' => array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'),
7
+  'numbers' => array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'),
8 8
 
9
- 'am_time' => 'AM',
9
+  'am_time' => 'AM',
10 10
 
11
- 'pm_time' => 'PM',
11
+  'pm_time' => 'PM',
12 12
 
13
- 'end_of_days' => array( 'th', 'st', 'nd', 'rd' ),
13
+  'end_of_days' => array( 'th', 'st', 'nd', 'rd' ),
14 14
 
15 15
 
16 16
 
17
- /************************************************************
17
+  /************************************************************
18 18
   *                        Convert to
19 19
   ************************************************************
20 20
   *
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
   *
23 23
   *\_________________________________________________________/
24 24
   */
25
-   'convert_to' => function ( $date_time ) {
25
+    'convert_to' => function ( $date_time ) {
26 26
 
27
-     return null;
27
+      return null;
28 28
 
29
-   },
29
+    },
30 30
 
31 31
     /************************************************************
32 32
     *                        Convert From
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
       'December'
88 88
 
89
-     ),
89
+      ),
90 90
 
91 91
     /************************************************************
92 92
     *                        Days of Week
@@ -99,28 +99,28 @@  discard block
 block discarded – undo
99 99
     */
100 100
     'days_of_week' => array (
101 101
 
102
-       'Monday',
103
-       'Tuesday',
104
-       'Wednesday',
105
-       'Thursday',
106
-       'Friday',
107
-       'Saturday',
108
-       'Sunday',
102
+        'Monday',
103
+        'Tuesday',
104
+        'Wednesday',
105
+        'Thursday',
106
+        'Friday',
107
+        'Saturday',
108
+        'Sunday',
109 109
     ),
110 110
 
111 111
 
112 112
     'month_days_number' => array(   1 => 31,
113
-                                   2 => 28,
114
-                                   3 => 31,
115
-                                   4 => 30,
116
-                                   5 => 31,
117
-                                   6 => 30,
118
-                                   7 => 31,
119
-                                   8 => 31,
120
-                                   9 => 30,
121
-                                   10 => 31,
122
-                                   11 => 30,
123
-                                   12 => 30 ),
113
+                                    2 => 28,
114
+                                    3 => 31,
115
+                                    4 => 30,
116
+                                    5 => 31,
117
+                                    6 => 30,
118
+                                    7 => 31,
119
+                                    8 => 31,
120
+                                    9 => 30,
121
+                                    10 => 31,
122
+                                    11 => 30,
123
+                                    12 => 30 ),
124 124
 
125 125
 
126 126
     'day_of_year' => function ( $date_time ) {
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@  discard block
 block discarded – undo
4 4
 
5 5
  return [
6 6
 
7
- 'numbers' => array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'),
7
+ 'numbers' => array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'),
8 8
 
9 9
  'am_time' => 'AM',
10 10
 
11 11
  'pm_time' => 'PM',
12 12
 
13
- 'end_of_days' => array( 'th', 'st', 'nd', 'rd' ),
13
+ 'end_of_days' => array('th', 'st', 'nd', 'rd'),
14 14
 
15 15
 
16 16
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
   *
23 23
   *\_________________________________________________________/
24 24
   */
25
-   'convert_to' => function ( $date_time ) {
25
+   'convert_to' => function($date_time) {
26 26
 
27 27
      return null;
28 28
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     *
37 37
     *\_________________________________________________________/
38 38
     */
39
-    'convert_from' => function ( $date_time ) {
39
+    'convert_from' => function($date_time) {
40 40
 
41 41
         return null;
42 42
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     *
98 98
     *\_________________________________________________________/
99 99
     */
100
-    'days_of_week' => array (
100
+    'days_of_week' => array(
101 101
 
102 102
        'Monday',
103 103
        'Tuesday',
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     ),
110 110
 
111 111
 
112
-    'month_days_number' => array(   1 => 31,
112
+    'month_days_number' => array(1 => 31,
113 113
                                    2 => 28,
114 114
                                    3 => 31,
115 115
                                    4 => 30,
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
                                    9 => 30,
121 121
                                    10 => 31,
122 122
                                    11 => 30,
123
-                                   12 => 30 ),
123
+                                   12 => 30),
124 124
 
125 125
 
126
-    'day_of_year' => function ( $date_time ) {
126
+    'day_of_year' => function($date_time) {
127 127
 
128 128
         $result = null;
129 129
 
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
 
136 136
         $day = $date_time->format('d');
137 137
 
138
-        foreach( $config['month_days_number'] as $_month => $value ) {
138
+        foreach ($config['month_days_number'] as $_month => $value) {
139 139
 
140
-            if ($_month < $month ) { $result += $value;
140
+            if ($_month < $month) { $result += $value;
141 141
             }
142 142
 
143 143
         }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
     },
150 150
 
151
-    'day_of_week' => function ( $date_time ) {
151
+    'day_of_week' => function($date_time) {
152 152
 
153 153
         $config = include 'Gregorian.php';
154 154
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
         foreach ($config['days_of_week'] as $key => $value) {
158 158
 
159
-            if ($value == $day ) { return $key += 1;
159
+            if ($value == $day) { return $key += 1;
160 160
             }
161 161
 
162 162
         }
@@ -181,6 +181,6 @@  discard block
 block discarded – undo
181 181
     *
182 182
     *\_________________________________________________________/
183 183
     */
184
-    'weekend' => array( 'saturday', 'sunday' ),
184
+    'weekend' => array('saturday', 'sunday'),
185 185
 
186 186
   ];
Please login to merge, or discard this patch.