@@ -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, |
@@ -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); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | use Illuminate\Support\Facades\Route; |
| 16 | 16 | |
| 17 | 17 | class CustomerSystemsController extends Controller |
| 18 | -{ |
|
| 18 | +{ |
|
| 19 | 19 | use SystemsTrait; |
| 20 | 20 | |
| 21 | 21 | public function __construct() |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Faker\Generator as Faker; |
| 6 | 6 | |
| 7 | -$factory->define(App\CustomerNotes::class, function (Faker $faker) { |
|
| 7 | +$factory->define(App\CustomerNotes::class, function(Faker $faker) { |
|
| 8 | 8 | return [ |
| 9 | 9 | 'cust_id' => factory(App\Customers::class)->create()->cust_id, |
| 10 | 10 | 'user_id' => 1, |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Faker\Generator as Faker; |
| 6 | 6 | |
| 7 | -$factory->define(App\CustomerContacts::class, function (Faker $faker) { |
|
| 7 | +$factory->define(App\CustomerContacts::class, function(Faker $faker) { |
|
| 8 | 8 | return [ |
| 9 | 9 | 'cust_id' => factory(App\Customers::class)->create()->cust_id, |
| 10 | 10 | 'name' => $faker->name, |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | ]; |
| 13 | 13 | }); |
| 14 | 14 | |
| 15 | -$factory->define(App\CustomerFiles::class, function (Faker $faker) { |
|
| 15 | +$factory->define(App\CustomerFiles::class, function(Faker $faker) { |
|
| 16 | 16 | return [ |
| 17 | 17 | 'file_id' => factory(App\Files::class)->create()->file_id, |
| 18 | 18 | 'file_type_id' => 1, |