Test Setup Failed
Branch test5 (4b2bc0)
by Ron
25:56
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/Http/Controllers/Customers/CustomerSystemsController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
database/factories/CustomerNotesFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
database/factories/CustomerContactsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
database/factories/CustomerFilesFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
database/factories/FileLinkFilesFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use App\Model;
6 6
 use Faker\Generator as Faker;
7 7
 
8
-$factory->define(App\FileLinkFiles::class, function (Faker $faker) {
8
+$factory->define(App\FileLinkFiles::class, function(Faker $faker) {
9 9
     return [
10 10
         'link_id'  => factory(App\FileLinks::class)->create()->link_id,
11 11
         'file_id'  => factory(App\Files::class)->create()->file_id,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         'link_id'  => factory(App\FileLinks::class)->create()->link_id,
11 11
         'file_id'  => factory(App\Files::class)->create()->file_id,
12 12
         'user_id'  => factory(App\User::class)->create()->user_id,
13
-        'added_by' => NULL,
13
+        'added_by' => null,
14 14
         'upload'   => 0
15 15
     ];
16 16
 });
Please login to merge, or discard this patch.