@@ -131,7 +131,9 @@ |
||
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 |
@@ -131,7 +131,9 @@ |
||
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 |
@@ -91,7 +91,9 @@ discard block |
||
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 |
||
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 |