Completed
Pull Request — master (#29)
by
unknown
02:39
created
src/CalendarSettings/Jalali.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
         $temp_day += $config[ 'month_days_number' ][ $i ];
46 46
     }
47 47
 
48
-         $temp_day += $day;
48
+          $temp_day += $day;
49 49
 
50
-         $leap = new Leap($year);
50
+          $leap = new Leap($year);
51 51
 
52 52
     if ($leap->get() && $month > 2) {
53 53
         $temp_day++;
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
         }
102 102
     }
103 103
 
104
-         $date_time->setDate($year, $month, $day);
104
+          $date_time->setDate($year, $month, $day);
105 105
 
106
-         return $date_time;
106
+          return $date_time;
107 107
 
108 108
   },
109 109
 
@@ -244,30 +244,30 @@  discard block
 block discarded – undo
244 244
 
245 245
   'days_of_week' => array (
246 246
 
247
-     'Yekshanbe',
248
-     'Doshanbe',
249
-     'Seshanbe',
250
-     'Chaharshanbe',
251
-     'Panjshanbe',
252
-     'Jome',
253
-     'Shanbe',
247
+      'Yekshanbe',
248
+      'Doshanbe',
249
+      'Seshanbe',
250
+      'Chaharshanbe',
251
+      'Panjshanbe',
252
+      'Jome',
253
+      'Shanbe',
254 254
 
255 255
   ),
256 256
 
257 257
   'start_day_of_week' => 'Shanbe',
258 258
 
259 259
   'month_days_number' => array(      1 => 31,
260
-                                     2 => 31,
261
-                                     3 => 31,
262
-                                     4 => 31,
263
-                                     5 => 31,
264
-                                     6 => 31,
265
-                                     7 => 30,
266
-                                     8 => 30,
267
-                                     9 => 30,
268
-                                     10 => 30,
269
-                                     11 => 30,
270
-                                     12 => 29 ),
260
+                                      2 => 31,
261
+                                      3 => 31,
262
+                                      4 => 31,
263
+                                      5 => 31,
264
+                                      6 => 31,
265
+                                      7 => 30,
266
+                                      8 => 30,
267
+                                      9 => 30,
268
+                                      10 => 30,
269
+                                      11 => 30,
270
+                                      12 => 29 ),
271 271
 
272 272
   /************************************************************
273 273
   *                      Day of year
@@ -354,9 +354,9 @@  discard block
 block discarded – undo
354 354
    */
355 355
   'leap_year' => function ($year) {
356 356
 
357
-     $a = 0.025;
357
+      $a = 0.025;
358 358
 
359
-     $b = 266;
359
+      $b = 266;
360 360
 
361 361
     if ($year > 0) {
362 362
         $leapDays0 = (($year + 38) % 2820)*0.24219 + $a;
@@ -370,8 +370,8 @@  discard block
 block discarded – undo
370 370
         return false;
371 371
     }
372 372
 
373
-     $frac0 = intval(($leapDays0 - intval($leapDays0))*1000);
374
-     $frac1 = intval(($leapDays1 - intval($leapDays1))*1000);
373
+      $frac0 = intval(($leapDays0 - intval($leapDays0))*1000);
374
+      $frac1 = intval(($leapDays1 - intval($leapDays1))*1000);
375 375
 
376 376
     if ($frac0 <= $b && $frac1 > $b) {
377 377
         return true;
@@ -391,4 +391,4 @@  discard block
 block discarded – undo
391 391
    */
392 392
   'weekend' => array( 'friday' )
393 393
 
394
- );
394
+  );
Please login to merge, or discard this patch.