Passed
Push — dev5 ( 078eee...acb0e6 )
by Ron
14:18
created
app/Console/Commands/CleanLogs.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $this->line('');
43 43
 
44 44
         //  Determine if the daily or single log channel is being used
45
-        switch ($channel) {
45
+        switch($channel) {
46 46
             case 'daily':
47 47
                 $this->dailyLog();
48 48
                 break;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $logPath = config('logging.channels.daily.path');
69 69
         $fileParts = pathinfo($logPath);
70 70
         $timeStamp = Carbon::now()->format('Y-m-d');
71
-        $logFile = $fileParts['dirname'] . DIRECTORY_SEPARATOR . $fileParts['filename'] . '-' . $timeStamp . '.' . $fileParts['extension'];
71
+        $logFile = $fileParts['dirname'].DIRECTORY_SEPARATOR.$fileParts['filename'].'-'.$timeStamp.'.'.$fileParts['extension'];
72 72
 
73 73
         return $logFile;
74 74
     }
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
     private function cleanLogFile($logFile)
85 85
     {
86 86
         //  Verify the file exists before trying to clear it
87
-        if (file_exists($logFile)) {
87
+        if(file_exists($logFile)) {
88 88
             file_put_contents($logFile, '');
89 89
             $this->line('Log File Emptied');
90 90
         } else {
91 91
             $this->line('Well, this is embarrassing...');
92 92
             $this->line('It seems I cannot find your log file');
93 93
             $this->line('');
94
-            $this->line('I was looking for ' . $logFile);
94
+            $this->line('I was looking for '.$logFile);
95 95
             $this->line('It either has not been created yet, or there was a problem with my algorithm');
96 96
         }
97 97
 
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,8 @@  discard block
 block discarded – undo
42 42
         $this->line('');
43 43
 
44 44
         //  Determine if the daily or single log channel is being used
45
-        switch ($channel) {
45
+        switch ($channel)
46
+        {
46 47
             case 'daily':
47 48
                 $this->dailyLog();
48 49
                 break;
@@ -84,10 +85,13 @@  discard block
 block discarded – undo
84 85
     private function cleanLogFile($logFile)
85 86
     {
86 87
         //  Verify the file exists before trying to clear it
87
-        if (file_exists($logFile)) {
88
+        if (file_exists($logFile))
89
+        {
88 90
             file_put_contents($logFile, '');
89 91
             $this->line('Log File Emptied');
90
-        } else {
92
+        }
93
+        else
94
+        {
91 95
             $this->line('Well, this is embarrassing...');
92 96
             $this->line('It seems I cannot find your log file');
93 97
             $this->line('');
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     //  Database primary key
31 31
     protected $primaryKey = 'user_id';
32 32
 
33
-    protected $appends = [ 'full_name' ];
33
+    protected $appends = ['full_name'];
34 34
 
35 35
     public function getFullNameAttribute()
36 36
     {
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/LinkFilesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         //  Verify the user is logged in and has permissions for this page
28 28
         $this->middleware('auth');
29
-        $this->middleware(function ($request, $next) {
29
+        $this->middleware(function($request, $next) {
30 30
             $this->user = auth()->user();
31 31
             $this->authorize('hasAccess', 'use_file_links');
32 32
             return $next($request);
Please login to merge, or discard this patch.