Completed
Push — master ( 13abb0...106f43 )
by mehdi
02:24
created
src/CalendarSettings/Gregorian.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,9 @@
 block discarded – undo
131 131
 
132 132
      foreach( $config['month_days_number'] as $month => $value ) {
133 133
 
134
-       if ( $_month < $month ) $result += $value;
134
+       if ( $_month < $month ) {
135
+         $result += $value;
136
+       }
135 137
 
136 138
      }
137 139
 
Please login to merge, or discard this patch.
src/CalendarSettings/Shamsi.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,9 @@
 block discarded – undo
131 131
 
132 132
     foreach( $config['month_days_number'] as $month => $value ) {
133 133
 
134
-      if ( $month < $month ) $result += $value;
134
+      if ( $month < $month ) {
135
+        $result += $value;
136
+      }
135 137
 
136 138
     }
137 139
 
Please login to merge, or discard this patch.
src/DayOf.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,9 @@  discard block
 block discarded – undo
91 91
 
92 92
     foreach ( $this->config['week_days_name']['persian'] as $key => $value ) {
93 93
 
94
-      if( $value == $this->day ) return $key += 1;
94
+      if( $value == $this->day ) {
95
+        return $key += 1;
96
+      }
95 97
 
96 98
     }
97 99
 
@@ -107,7 +109,9 @@  discard block
 block discarded – undo
107 109
 
108 110
     foreach ( $this->config['week_days_name']['islamic'] as $key => $value ) {
109 111
 
110
-      if( $value == $this->day ) return $key += 1;
112
+      if( $value == $this->day ) {
113
+        return $key += 1;
114
+      }
111 115
 
112 116
     }
113 117
 
Please login to merge, or discard this patch.