Passed
Push — master ( 182172...9dbcd0 )
by Matthew
02:44
created
api/Domain/Services/DraftService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
     try {
29 29
       $draft = $this->app['phpdraft.DraftRepository']->Create($draft);
30 30
 
31
-      if($draft->using_depth_charts) {
31
+      if ($draft->using_depth_charts) {
32 32
         $depth_charts = $this->app['phpdraft.DepthChartPositionRepository']->Save($depthChartModel, $draft->draft_id);
33 33
       }
34 34
 
35 35
       $response->success = true;
36 36
       $response->draft = $draft;
37
-    } catch(\Exception $e) {
37
+    } catch (\Exception $e) {
38 38
       $response->success = false;
39 39
       $response->errors = array($e->getMessage());
40 40
     }
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
     try {
49 49
       $draft = $this->app['phpdraft.DraftRepository']->Update($draft);
50 50
 
51
-      if($draft->using_depth_charts == 1) {
51
+      if ($draft->using_depth_charts == 1) {
52 52
         $this->app['phpdraft.DepthChartPositionRepository']->DeleteAllDepthChartPositions($draft->draft_id);
53 53
         $depth_charts = $this->app['phpdraft.DepthChartPositionRepository']->Save($depthChartModel, $draft->draft_id);
54 54
       }
55 55
 
56 56
       $response->success = true;
57 57
       $response->draft = $draft;
58
-    } catch(\Exception $e) {
58
+    } catch (\Exception $e) {
59 59
       $response->success = false;
60 60
       $response->errors = array($e->getMessage());
61 61
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
       $response->success = true;
87 87
       $response->draft = $draft;
88
-    } catch(\Exception $e) {
88
+    } catch (\Exception $e) {
89 89
       $response->success = false;
90 90
       $response->errors = array($e->getMessage());
91 91
     }
Please login to merge, or discard this patch.