Completed
Push — master ( 8a4ca9...acd23c )
by Marco
02:46
created
src/Scheduler/Scheduler.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -340,8 +340,7 @@  discard block
 block discarded – undo
340 340
 
341 341
             $db->tablePrefix(EXTENDER_DATABASE_PREFIX)->table(EXTENDER_DATABASE_TABLE_JOBS)->keys("lastrun")->values($lastrun)->where('name', '=', $name)->update();
342 342
 
343
-        }
344
-        catch (DatabaseException $de) {
343
+        } catch (DatabaseException $de) {
345 344
 
346 345
             unset($db);
347 346
 
@@ -474,8 +473,7 @@  discard block
 block discarded – undo
474 473
 
475 474
             if ( $e_count == 5 ) $e_array[] = "*";
476 475
 
477
-        }
478
-        catch (Exception $e) {
476
+        } catch (Exception $e) {
479 477
 
480 478
             throw $e;
481 479
 
@@ -516,8 +514,7 @@  discard block
 block discarded – undo
516 514
                 ->where("enabled", "=", true)
517 515
                 ->get();
518 516
 
519
-        }
520
-        catch (DatabaseException $de) {
517
+        } catch (DatabaseException $de) {
521 518
 
522 519
             unset($db);
523 520
 
@@ -565,8 +562,7 @@  discard block
 block discarded – undo
565 562
 
566 563
                 $next_calculated_run = $cron->getNextRunDate($last_date)->format('U');
567 564
 
568
-            }
569
-            catch (Exception $e) {
565
+            } catch (Exception $e) {
570 566
 
571 567
                 $logger->error("Job ".$job['name']." cannot be executed due to cron parsing error", array(
572 568
                     "ERROR" => $e->getMessage(),
@@ -619,8 +615,7 @@  discard block
 block discarded – undo
619 615
 
620 616
                 $next_calculated_run = $cron->getNextRunDate($last_date)->format('U');
621 617
 
622
-            }
623
-            catch (Exception $e) {
618
+            } catch (Exception $e) {
624 619
 
625 620
                 return false;
626 621
 
Please login to merge, or discard this patch.
src/Task/Task.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -239,8 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
             $job_run_info = $this->execTask();
241 241
 
242
-        }
243
-        catch (Exception $e) {
242
+        } catch (Exception $e) {
244 243
 
245 244
             throw new TaskException($e->getMessage(), $e->getCode(), $e, $this->worklog_id);
246 245
             
@@ -271,8 +270,7 @@  discard block
 block discarded – undo
271 270
 
272 271
             $this->closeWorklog(true);
273 272
 
274
-        }
275
-        catch (Exception $e) {
273
+        } catch (Exception $e) {
276 274
 
277 275
             $this->result = $e->getMessage();
278 276
 
@@ -316,8 +314,7 @@  discard block
 block discarded – undo
316 314
                 ->values(array($this->pid, $this->name, $this->jobid, $this->class, 'STARTED', $this->start_timestamp))
317 315
                 ->store();
318 316
 
319
-        }
320
-        catch (DatabaseException $de) {
317
+        } catch (DatabaseException $de) {
321 318
             
322 319
             throw $de;
323 320
 
@@ -341,8 +338,7 @@  discard block
 block discarded – undo
341 338
                 ->where("id", "=", $this->worklog_id)
342 339
                 ->update();
343 340
 
344
-        }
345
-        catch (DatabaseException $de) {
341
+        } catch (DatabaseException $de) {
346 342
             
347 343
             throw $de;
348 344
 
Please login to merge, or discard this patch.