Completed
Push — 2.0 ( ee0168...76e968 )
by Marco
11:26
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/Comodojo/Extender/Utils/Validator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
 
56 56
             if ( $e_count == 5 ) $e_array[] = "*";
57 57
 
58
-        }
59
-        catch (Exception $e) {
58
+        } catch (Exception $e) {
60 59
 
61 60
             throw $e;
62 61
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Result.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 
22
-class Result extends Model{
22
+class Result extends Model {
23 23
 
24 24
     protected $mode = self::READONLY;
25 25
 
Please login to merge, or discard this patch.