Passed
Push — dev5 ( 570ed9...d30fce )
by Ron
08:57
created
app/Domains/Users/GetUserStats.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function getUserCustomerFavs()
25 25
     {
26 26
         $custFavs    = CustomerFavs::where('user_id', $this->userID)
27
-            ->with(array('Customers' => function($query){
27
+            ->with(array('Customers' => function($query) {
28 28
                 $query->select('cust_id', 'name');
29 29
             }))
30 30
             ->get();
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function getUserTechTipFavs()
36 36
     {
37 37
         $tipFavs     = TechTipFavs::where('user_id', $this->userID)
38
-            ->with(array('TechTips' => function($query){
38
+            ->with(array('TechTips' => function($query) {
39 39
                 $query->select('tip_id', 'subject');
40 40
             }))
41 41
             ->get();
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/CustomerAdminController.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,10 +103,13 @@
 block discarded – undo
103 103
     {
104 104
         Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
105 105
 
106
-        try {
106
+        try
107
+        {
107 108
             //  Try to delete file type from database - will throw error if foreign key is in use
108 109
             CustomerFileTypes::find($id)->delete();
109
-        } catch(\Illuminate\Database\QueryException $e) {
110
+        }
111
+        catch(\Illuminate\Database\QueryException $e)
112
+        {
110 113
             //  Unable to remove file type  from the database
111 114
             Log::warning('Attempt to delete file type ID '.$id.' by User '.Auth::user()->full_name.' failed.  Reason - '.$e);
112 115
             return response()->json(['success' => false, 'reason' => 'In Use']);
Please login to merge, or discard this patch.
app/Domains/FileLinks/GetFileLinks.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@
 block discarded – undo
26 26
                     ->orderBy('expire', 'desc')->get();
27 27
 
28 28
         Log::debug('Retrieved all File Links for User ID '.$this->id.'.  Data Gathered - ', array($links));
29
-        if($this->collection) {
29
+        if($this->collection)
30
+        {
30 31
             return new FileLinksCollection($links);
31 32
         }
32 33
 
Please login to merge, or discard this patch.
app/Domains/FilesDomain.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,8 @@
 block discarded – undo
128 128
     {
129 129
         $data = Files::find($fileID);
130 130
         //  Move the file to the proper folder
131
-        try {
131
+        try
132
+        {
132 133
             Log::debug('Attempting to moving file '.$fileID.' to '.$newPath);
133 134
             Storage::move($data->file_link.$data->file_name, $newPath.DIRECTORY_SEPARATOR.$data->file_name);
134 135
         }
Please login to merge, or discard this patch.
app/Console/Commands/updateRun.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,8 @@
 block discarded – undo
88 88
             $this->line('');
89 89
 
90 90
             $anticipate = [];
91
-            foreach($updateList as $key => $up) {
91
+            foreach($updateList as $key => $up)
92
+            {
92 93
                 $opt = $key;
93 94
                 $anticipate[$opt] = $up;
94 95
             }
Please login to merge, or discard this patch.