Completed
Push — master ( fd5b7f...3848cb )
by mehdi
02:50
created
src/lang/fa/general.php 1 patch
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.
src/Config.php 1 patch
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.
src/lang/ar/general.php 1 patch
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.
src/DayOf.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     /**
37
-   * Which day of year is current day.
38
-   *
39
-   * @since  Aug, 03 2015
40
-   * @return integer
41
-   */
37
+     * Which day of year is current day.
38
+     *
39
+     * @since  Aug, 03 2015
40
+     * @return integer
41
+     */
42 42
     public function year() 
43 43
     {
44 44
 
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 
51 51
 
52 52
     /**
53
-   * Which day of week is current day.
54
-   *
55
-   * @since  Aug, 09 2015
56
-   * @return integer
57
-   */
53
+     * Which day of week is current day.
54
+     *
55
+     * @since  Aug, 09 2015
56
+     * @return integer
57
+     */
58 58
     public function week() 
59 59
     {
60 60
 
Please login to merge, or discard this patch.
src/Convert.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -12,48 +12,48 @@  discard block
 block discarded – undo
12 12
 {
13 13
 
14 14
     /**
15
-   * @var integer
16
-   */
15
+     * @var integer
16
+     */
17 17
     protected $year;
18 18
 
19 19
     /**
20
-   * @var integer
21
-   */
20
+     * @var integer
21
+     */
22 22
     protected $month;
23 23
 
24 24
     /**
25
-   * @var $day
26
-   */
25
+     * @var $day
26
+     */
27 27
     protected $day;
28 28
 
29 29
     /**
30
-   * @var DateTime
31
-   */
30
+     * @var DateTime
31
+     */
32 32
     public $date_time;
33 33
 
34 34
     /**
35
-   * @var array
36
-   */
35
+     * @var array
36
+     */
37 37
     protected $config;
38 38
 
39 39
     /**
40
-   * @var integer
41
-   */
40
+     * @var integer
41
+     */
42 42
     protected $leap;
43 43
 
44 44
     /**
45
-   * @var integer
46
-   */
45
+     * @var integer
46
+     */
47 47
     protected $temp_day;
48 48
 
49 49
     /**
50
-   * @var DateTime
51
-   */
50
+     * @var DateTime
51
+     */
52 52
     protected $date;
53 53
 
54 54
     /**
55
-   * @var array
56
-   */
55
+     * @var array
56
+     */
57 57
     protected $calendar_file;
58 58
 
59 59
     /************************************************************
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
     }
105 105
 
106 106
     /**
107
-   *convert jalali year to gregorian year
108
- *
109
-   * @since  Oct, 16 2015
110
-   * @return object
111
-   */
107
+     *convert jalali year to gregorian year
108
+     *
109
+     * @since  Oct, 16 2015
110
+     * @return object
111
+     */
112 112
     public function jalaliToGregorian( $date_time ) 
113 113
     {
114 114
 
@@ -172,16 +172,16 @@  discard block
 block discarded – undo
172 172
           $this->date_time->setDate($gregorian_year, $gregorian_month, $gregorian_day);
173 173
 
174 174
 
175
-         return $this->date_time;
175
+          return $this->date_time;
176 176
 
177 177
     }
178 178
 
179 179
     /**
180
-   *convert jalali year to hijri year
181
- *
182
-   * @since  Oct, 17 2015
183
-   * @return object
184
-   */
180
+     *convert jalali year to hijri year
181
+     *
182
+     * @since  Oct, 17 2015
183
+     * @return object
184
+     */
185 185
     public function jalaliToHijri( $date_time ) 
186 186
     {
187 187
 
@@ -203,9 +203,9 @@  discard block
 block discarded – undo
203 203
 
204 204
         }
205 205
 
206
-         $this->temp_day += $this->day;
206
+          $this->temp_day += $this->day;
207 207
 
208
-         $this->leap = new Leap($this->year);
208
+          $this->leap = new Leap($this->year);
209 209
 
210 210
         if ($this->leap->get() && $this->month > 11 ) { $this->temp_day++; 
211 211
         }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
         $_month = $_year[1];
220 220
 
221
-         $var_temp = '0.0';
221
+          $var_temp = '0.0';
222 222
 
223 223
         for ( $i = strlen($_month); $i > 2; $i-- ) {
224 224
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         }
228 228
 
229
-         $var_temp .= '1';
229
+          $var_temp .= '1';
230 230
 
231 231
         $_month = $_month * $var_temp ;
232 232
 
@@ -256,18 +256,18 @@  discard block
 block discarded – undo
256 256
 
257 257
         $this->day = $_day[0];
258 258
 
259
-           $this->date_time->setDate($this->year, $this->month, $this->day);
259
+            $this->date_time->setDate($this->year, $this->month, $this->day);
260 260
 
261
-           return $this->date_time;
261
+            return $this->date_time;
262 262
 
263 263
     }
264 264
 
265 265
     /**
266
-   *convert hijri year to jalali year
267
- *
268
-   * @since  Oct, 17 2015
269
-   * @return object
270
-   */
266
+     *convert hijri year to jalali year
267
+     *
268
+     * @since  Oct, 17 2015
269
+     * @return object
270
+     */
271 271
     public function hijriToJalali( $date_time ) 
272 272
     {
273 273
 
@@ -320,16 +320,16 @@  discard block
 block discarded – undo
320 320
 
321 321
           $this->date_time->setDate($jalali_year, $jalali_month, $jalali_day);
322 322
 
323
-         return $this->date_time;
323
+          return $this->date_time;
324 324
 
325 325
     }
326 326
 
327 327
     /**
328
-    * convert hijri year to gregorian year
329
-   *
330
-    * @since  Oct, 17 2015
331
-    * @return object
332
-    */
328
+     * convert hijri year to gregorian year
329
+     *
330
+     * @since  Oct, 17 2015
331
+     * @return object
332
+     */
333 333
     public function hijriToGregorian( $date_time ) 
334 334
     {
335 335
 
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 
383 383
         $this->date_time->setDate($gregorian_year, $gregorian_month, $gregorian_day);
384 384
 
385
-         return $this->date_time;
385
+          return $this->date_time;
386 386
 
387 387
     }
388 388
 
Please login to merge, or discard this patch.
src/Lang.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
     {
43 43
 
44 44
         /**
45
-       * Fetch translated file to config attribute
46
-       */
45
+         * Fetch translated file to config attribute
46
+         */
47 47
         self::$config = include 'src/CalendarSettings/Jalali.php';
48 48
 
49 49
         /**
50
-        * Fetch translated expression to langTable attribute
51
-        */
50
+         * Fetch translated expression to langTable attribute
51
+         */
52 52
         self::$langTable = include 'lang/' . $language . '/general.php';
53 53
 
54 54
         foreach( self::$langTable as $key => $translate ){
Please login to merge, or discard this patch.
src/CalendarSettings/Gregorian.php 1 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.
src/Leap.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,43 +7,43 @@
 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 41
     /**
42
-   * return the year is leap or not
43
-   *
44
-   * @since  Aug, 21 2015
45
-   * @return boolean
46
-   */
42
+     * return the year is leap or not
43
+     *
44
+     * @since  Aug, 21 2015
45
+     * @return boolean
46
+     */
47 47
     public function get()
48 48
     {
49 49
 
Please login to merge, or discard this patch.
src/Datium.php 1 patch
Indentation   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -35,17 +35,17 @@  discard block
 block discarded – undo
35 35
 {
36 36
 
37 37
     /**
38
-   * Store DateTime object
39
-   */
38
+     * Store DateTime object
39
+     */
40 40
     protected $date_time;
41 41
 
42 42
     protected static $static_date_time;
43 43
 
44 44
     /**
45
-   * Store config file statements
46
-   *
47
-   * @param array
48
-   */
45
+     * Store config file statements
46
+     *
47
+     * @param array
48
+     */
49 49
     protected $config;
50 50
 
51 51
     protected $date_interval_expression;
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
     protected $fromConfig;
64 64
 
65 65
     /**
66
-   * Return store day number
67
-   *
68
-   * @param integer
69
-   */
66
+     * Return store day number
67
+     *
68
+     * @param integer
69
+     */
70 70
     protected $day_of;
71 71
 
72 72
     protected $leap;
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
     protected $language;
93 93
 
94 94
     /**
95
-    * Datium class constructure
96
-    */
95
+     * Datium class constructure
96
+     */
97 97
     public function __construct()
98 98
     {
99 99
 
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-    * Return all datetime parts as an object
153
-    *
154
-    * @return object
155
-    */
152
+     * Return all datetime parts as an object
153
+     *
154
+     * @return object
155
+     */
156 156
     public function all()
157 157
     {
158 158
 
@@ -175,11 +175,11 @@  discard block
 block discarded – undo
175 175
     }
176 176
 
177 177
     /**
178
-   * Get current datetime
179
-   *
180
-   * @since  Aug 17 2015
181
-   * @return object
182
-   */
178
+     * Get current datetime
179
+     *
180
+     * @since  Aug 17 2015
181
+     * @return object
182
+     */
183 183
     public static function now()
184 184
     {
185 185
 
@@ -190,17 +190,17 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
     /**
193
-   * Create new date time
194
-   *
195
-   * @param integer $year   Year number
196
-   * @param integer $month  month number
197
-   * @param integer $day    day number
198
-   * @param integer $hour   hour number
199
-   * @param integer $minute minute number
200
-   * @param integer $second second number
201
-   *
202
-   * @return object
203
-   */
193
+     * Create new date time
194
+     *
195
+     * @param integer $year   Year number
196
+     * @param integer $month  month number
197
+     * @param integer $day    day number
198
+     * @param integer $hour   hour number
199
+     * @param integer $minute minute number
200
+     * @param integer $second second number
201
+     *
202
+     * @return object
203
+     */
204 204
     public static function create(
205 205
         $year = 2000,
206 206
         $month = 1,
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
 
213 213
 
214 214
         /**
215
-       * When we want to set a Datetime object to Datium
216
-       */
215
+         * When we want to set a Datetime object to Datium
216
+         */
217 217
         if (func_num_args() === 1) {
218 218
             self::$static_date_time = func_get_arg(0);
219 219
 
@@ -236,13 +236,13 @@  discard block
 block discarded – undo
236 236
     }
237 237
 
238 238
     /**
239
-    * Select The range between two date object
240
-    *
241
-    * @param object $date_start Start of the DateTime
242
-    * @param object $date_end   End of the DateTime
243
-    *
244
-    * @return object
245
-    */
239
+     * Select The range between two date object
240
+     *
241
+     * @param object $date_start Start of the DateTime
242
+     * @param object $date_end   End of the DateTime
243
+     *
244
+     * @return object
245
+     */
246 246
     public static function between($date_start, $date_end)
247 247
     {
248 248
 
@@ -257,12 +257,12 @@  discard block
 block discarded – undo
257 257
     }
258 258
 
259 259
     /**
260
-   * Convert from current calendar, what type is current calendar?
261
-   *
262
-   * @param object $calendar Assigned calendar to start from
263
-   *
264
-   * @return $object
265
-   */
260
+     * Convert from current calendar, what type is current calendar?
261
+     *
262
+     * @param object $calendar Assigned calendar to start from
263
+     *
264
+     * @return $object
265
+     */
266 266
     public function from($calendar)
267 267
     {
268 268
 
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
 
273 273
 
274 274
         /**
275
-     * We need this part for DayOf class
276
-     */
275
+         * We need this part for DayOf class
276
+         */
277 277
         $this->calendar_type = $calendar;
278 278
 
279 279
         $this->translate_to = $calendar;
@@ -283,12 +283,12 @@  discard block
 block discarded – undo
283 283
     }
284 284
 
285 285
     /**
286
-    * Convert date to current Date
287
-    *
288
-    * @param object $calendar Assigned calendar to when calendar should start.
289
-    *
290
-    * @return object
291
-    */
286
+     * Convert date to current Date
287
+     *
288
+     * @param object $calendar Assigned calendar to when calendar should start.
289
+     *
290
+     * @return object
291
+     */
292 292
     public function to($calendar)
293 293
     {
294 294
 
@@ -297,8 +297,8 @@  discard block
 block discarded – undo
297 297
         $this->date_time = $this->convert->to($calendar);
298 298
 
299 299
         /**
300
-     * We need this part for DayOf class
301
-     */
300
+         * We need this part for DayOf class
301
+         */
302 302
         $this->calendar_type = $calendar;
303 303
 
304 304
         $this->translate_to = $calendar;
@@ -309,13 +309,13 @@  discard block
 block discarded – undo
309 309
 
310 310
 
311 311
     /**
312
-   * Difference between two time
313
-   *
314
-   * @param DateTime $start Start of the date
315
-   * @param DateTime $end   End of the date
316
-   *
317
-   * @return object
318
-   */
312
+     * Difference between two time
313
+     *
314
+     * @param DateTime $start Start of the date
315
+     * @param DateTime $end   End of the date
316
+     *
317
+     * @return object
318
+     */
319 319
     public static function diff($start, $end)
320 320
     {
321 321
 
@@ -324,12 +324,12 @@  discard block
 block discarded – undo
324 324
     }
325 325
 
326 326
     /**
327
-   * Add new date value to current date
328
-   *
329
-   * @param string $value How much date should be added to current date
330
-   *
331
-   * @return object
332
-   */
327
+     * Add new date value to current date
328
+     *
329
+     * @param string $value How much date should be added to current date
330
+     *
331
+     * @return object
332
+     */
333 333
     public function add($value)
334 334
     {
335 335
 
@@ -354,12 +354,12 @@  discard block
 block discarded – undo
354 354
     }
355 355
 
356 356
     /**
357
-   * Sub date from current date
358
-   *
359
-   * @param string $value How much date should increase from current date
360
-   *
361
-   * @return obejct
362
-   */
357
+     * Sub date from current date
358
+     *
359
+     * @param string $value How much date should increase from current date
360
+     *
361
+     * @return obejct
362
+     */
363 363
     public function sub($value)
364 364
     {
365 365
 
@@ -384,12 +384,12 @@  discard block
 block discarded – undo
384 384
     }
385 385
 
386 386
     /**
387
-   * Check if current year is leap or not
388
-   *
389
-   * @param string $type Name of the calendar to caculate leap year
390
-   *
391
-   * @return boolean
392
-   */
387
+     * Check if current year is leap or not
388
+     *
389
+     * @param string $type Name of the calendar to caculate leap year
390
+     *
391
+     * @return boolean
392
+     */
393 393
     public function leap()
394 394
     {
395 395
 
@@ -400,12 +400,12 @@  discard block
 block discarded – undo
400 400
     }
401 401
 
402 402
     /**
403
-    * Caculate day of year or week
404
-    *
405
-    * @since Aug, 22 2015
406
-    *
407
-    * @return integer
408
-    */
403
+     * Caculate day of year or week
404
+     *
405
+     * @since Aug, 22 2015
406
+     *
407
+     * @return integer
408
+     */
409 409
     public function dayOf()
410 410
     {
411 411
 
@@ -433,12 +433,12 @@  discard block
 block discarded – undo
433 433
     // }
434 434
 
435 435
     /**
436
-    * Return Datetime as a original object
437
-    *
438
-    * @since Oct 22, 2015
439
-    *
440
-    * @return object
441
-    */
436
+     * Return Datetime as a original object
437
+     *
438
+     * @since Oct 22, 2015
439
+     *
440
+     * @return object
441
+     */
442 442
     public function object()
443 443
     {
444 444
 
@@ -447,12 +447,12 @@  discard block
 block discarded – undo
447 447
     }
448 448
 
449 449
     /**
450
-    * Translate current date string to selected language
451
-    *
452
-    * @param string $language language short name fa, en, ar ...
453
-    *
454
-    * @return object
455
-    */
450
+     * Translate current date string to selected language
451
+     *
452
+     * @param string $language language short name fa, en, ar ...
453
+     *
454
+     * @return object
455
+     */
456 456
     public function lang($language = 'fa')
457 457
     {
458 458
 
@@ -469,10 +469,10 @@  discard block
 block discarded – undo
469 469
     }
470 470
 
471 471
     /**
472
-    * Return object as timestamp
473
-    *
474
-    * @return timestamp
475
-    */
472
+     * Return object as timestamp
473
+     *
474
+     * @return timestamp
475
+     */
476 476
     public function timestamp()
477 477
     {
478 478
 
@@ -481,14 +481,14 @@  discard block
 block discarded – undo
481 481
     }
482 482
 
483 483
     /**
484
-   * Return fainal result
485
-   *
486
-   * @param string $format Date format
487
-   *
488
-   * @since Aug 17 2015
489
-   *
490
-   * @return string
491
-   */
484
+     * Return fainal result
485
+     *
486
+     * @param string $format Date format
487
+     *
488
+     * @since Aug 17 2015
489
+     *
490
+     * @return string
491
+     */
492 492
     public function get($format = 'Y-m-d H:i:s')
493 493
     {
494 494
 
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
 
505 505
         if (is_null($this->toConfig)) {
506 506
             $this->toConfig = include 'CalendarSettings/' .
507
-                                       ucfirst($this->translate_to) . '.php';
507
+                                        ucfirst($this->translate_to) . '.php';
508 508
         }
509 509
 
510 510
         $string_date = $this->date_time->format($format);
Please login to merge, or discard this patch.