@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | |
205 | 205 | $isValid = TRUE; |
206 | 206 | |
207 | - for ($i=0; $i<$weekdaysSize; $i++) { |
|
207 | + for ($i = 0; $i<$weekdaysSize; $i++) { |
|
208 | 208 | if (is_numeric($weekdays[$i])) { |
209 | 209 | $wday = intval($weekdays[$i]); |
210 | 210 | if ($wday<1 || $wday>7) { |
@@ -240,10 +240,10 @@ discard block |
||
240 | 240 | |
241 | 241 | $isValid = TRUE; |
242 | 242 | |
243 | - for ($i=0; $i<$monthlyDatesSize; $i++) { |
|
243 | + for ($i = 0; $i<$monthlyDatesSize; $i++) { |
|
244 | 244 | if (is_numeric($monthlyDates[$i])) { |
245 | 245 | $mday = intval($monthlyDates[$i]); |
246 | - if ($mday <1 || $mday > 31) { |
|
246 | + if ($mday<1 || $mday>31) { |
|
247 | 247 | $isValid = FALSE; |
248 | 248 | } |
249 | 249 | } else { |
@@ -340,10 +340,10 @@ discard block |
||
340 | 340 | |
341 | 341 | if (isset($rows[$locationsFieldsMapping['schedule_every']])) { |
342 | 342 | if ($this->validateScheduleEvery($rows[$locationsFieldsMapping['schedule_every']])) { |
343 | - $curSchedule.='"'.$mode.'":{'.'"every":'.$rows[$locationsFieldsMapping['schedule_every']].','; |
|
343 | + $curSchedule .= '"'.$mode.'":{'.'"every":'.$rows[$locationsFieldsMapping['schedule_every']].','; |
|
344 | 344 | if ($mode=='daily') { |
345 | - $curSchedule = trim($curSchedule,','); |
|
346 | - $curSchedule.='}'; |
|
345 | + $curSchedule = trim($curSchedule, ','); |
|
346 | + $curSchedule .= '}'; |
|
347 | 347 | } |
348 | 348 | } else { |
349 | 349 | array_push($results['fail'], "$iRow --> The parameter sched_every is not set"); |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | |
433 | 433 | $curSchedule = '[{'.$curSchedule.'}]'; |
434 | 434 | |
435 | - $oSchedule = json_decode($curSchedule,TRUE); |
|
435 | + $oSchedule = json_decode($curSchedule, TRUE); |
|
436 | 436 | |
437 | 437 | $parametersArray = array(); |
438 | 438 |