@@ -14,7 +14,8 @@ |
||
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 |
@@ -14,7 +14,8 @@ |
||
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 | } |
@@ -17,7 +17,8 @@ |
||
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 |
@@ -34,11 +34,11 @@ |
||
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, |
@@ -38,20 +38,20 @@ |
||
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)); |
@@ -106,7 +106,7 @@ |
||
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([ |
@@ -34,7 +34,7 @@ |
||
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); |
@@ -14,7 +14,7 @@ |
||
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() |