Completed
Push — dev5 ( 8afe4d...7a94ca )
by Ron
09:32
created
server.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
 // This file allows us to emulate Apache's "mod_rewrite" functionality from the
15 15
 // built-in PHP web server. This provides a convenient way to test a Laravel
16 16
 // application without having installed a "real" web server software here.
17
-if($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
17
+if($uri !== '/' && file_exists(__DIR__.'/public'.$uri))
18
+{
18 19
     return false;
19 20
 }
20 21
 
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if(!$request->expectsJson()) {
17
+        if(!$request->expectsJson())
18
+        {
18 19
             return route('login');
19 20
         }
20 21
     }
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
      */
18 18
     public function handle($request, Closure $next, $guard = null)
19 19
     {
20
-        if(Auth::guard($guard)->check()) {
20
+        if(Auth::guard($guard)->check())
21
+        {
21 22
             return redirect('/dashboard');
22 23
         }
23 24
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
         foreach($userLinks as $user)
35 35
         {
36 36
             $expired = $user->FileLinks->filter(function($lnk) {
37
-                           if($lnk->expire < date('Y-m-d'))
38
-                           {
39
-                               return $lnk;
40
-                           }
41
-                       })->count();
37
+                            if($lnk->expire < date('Y-m-d'))
38
+                            {
39
+                                return $lnk;
40
+                            }
41
+                        })->count();
42 42
 
43 43
             $linkCount[] = [
44 44
                 'user_id' => $user->user_id,
Please login to merge, or discard this patch.
app/Files.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,20 +38,20 @@
 block discarded – undo
38 38
             $extension = isset($fileParts['extension']) ? ('.'.$fileParts['extension']) : '';
39 39
             
40 40
             //  check for matching file names
41
-            if(preg_match('/(.*?)(\d+)$/', $fileParts['filename'], $match)) 
41
+            if(preg_match('/(.*?)(\d+)$/', $fileParts['filename'], $match))
42 42
             {
43 43
                 // Have a number; increment it
44 44
                 $base = $match[1];
45 45
                 $number = intVal($match[2]);
46
-            } 
47
-            else 
46
+            }
47
+            else
48 48
             {
49 49
                 // No number; add one
50 50
                 $base = $fileParts['filename'];
51 51
                 $number = 0;
52 52
             }
53 53
             
54
-            do 
54
+            do
55 55
             {
56 56
                 $fileName = $base.'('.++$number.')'.$extension;
57 57
             } while(Storage::exists($path.DIRECTORY_SEPARATOR.$fileName));
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     //  Toggle whether or not the customer is listed as a user favorite
107 107
     public function toggleFav($action, $id)
108 108
     {
109
-        switch ($action)
109
+        switch($action)
110 110
         {
111 111
             case 'add':
112 112
                 CustomerFavs::create([
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * @return void
35 35
      */
36 36
     public function report(Exception $exception)
37
-    {        
37
+    {
38 38
 //        if(config('app.stack_trace'))
39 39
 //        {
40 40
 //            parent::report($exception);
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerSystemsController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 use App\Http\Controllers\Controller;
15 15
 
16 16
 class CustomerSystemsController extends Controller
17
-{    
17
+{
18 18
     use SystemsTrait;
19 19
     
20 20
     public function __construct()
Please login to merge, or discard this patch.