Completed
Push — dev5 ( 57b563...c2856c )
by Ron
10:31
created
database/seeds/FileLinksSeeder.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             'link_id'  => 1,
47 47
             'file_id'  => $fileID->file_id,
48 48
             'user_id'  => 1,
49
-            'added_by' => NULL,
49
+            'added_by' => null,
50 50
             'upload'   => 0
51 51
         ]);
52 52
         
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             'link_id'  => 1,
59 59
             'file_id'  => $fileID->file_id,
60 60
             'user_id'  => 1,
61
-            'added_by' => NULL,
61
+            'added_by' => null,
62 62
             'upload'   => 0
63 63
         ]);
64 64
         
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             'link_id'  => 1,
71 71
             'file_id'  => $fileID->file_id,
72 72
             'user_id'  => 1,
73
-            'added_by' => NULL,
73
+            'added_by' => null,
74 74
             'upload'   => 0
75 75
         ]);
76 76
         
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         FileLinkFiles::create([
82 82
             'link_id'  => 1,
83 83
             'file_id'  => $fileID->file_id,
84
-            'user_id'  => NULL,
84
+            'user_id'  => null,
85 85
             'added_by' => $faker->name(),
86 86
             'upload'   => 1
87 87
         ]);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         FileLinkFiles::create([
94 94
             'link_id'  => 1,
95 95
             'file_id'  => $fileID->file_id,
96
-            'user_id'  => NULL,
96
+            'user_id'  => null,
97 97
             'added_by' => $faker->name(),
98 98
             'upload'   => 1
99 99
         ]);
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminController.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
33 33
         
34 34
         foreach($userLinks as $user)
35 35
         {
36
-            $expired = $user->FileLinks->filter(function($lnk)
37
-                       {
36
+            $expired = $user->FileLinks->filter(function($lnk) {
38 37
                            if($lnk->expire < date('Y-m-d'))
39 38
                            {
40 39
                                return $lnk;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
         foreach($userLinks as $user)
35 35
         {
36 36
             $expired = $user->FileLinks->filter(function($lnk)
37
-                       {
38
-                           if($lnk->expire < date('Y-m-d'))
39
-                           {
40
-                               return $lnk;
41
-                           }
42
-                       })->count();
37
+                        {
38
+                            if($lnk->expire < date('Y-m-d'))
39
+                            {
40
+                                return $lnk;
41
+                            }
42
+                        })->count();
43 43
 
44 44
             $linkCount[] = [
45 45
                 'user_id' => $user->user_id,
Please login to merge, or discard this patch.
database/factories/SystemTypesFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Faker\Generator as Faker;
4 4
 
5
-$factory->define(App\SystemTypes::class, function (Faker $faker) {
5
+$factory->define(App\SystemTypes::class, function(Faker $faker) {
6 6
     return [
7 7
         'sys_id'          => 1,
8 8
         'cat_id'          => 1,
Please login to merge, or discard this patch.
database/factories/SystemCategoriesFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Faker\Generator as Faker;
4 4
 
5
-$factory->define(App\SystemCategories::class, function (Faker $faker) {
5
+$factory->define(App\SystemCategories::class, function(Faker $faker) {
6 6
     return [
7 7
         'cat_id' => 1,
8 8
         'name'   => $faker->jobTitle()
Please login to merge, or discard this patch.
app/Http/Controllers/Installer/SystemsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     public function edit($id)
127 127
     {
128 128
         $system = SystemTypes::find($id);
129
-        $dataTypes  = SystemCustDataTypes::orderBy('name', 'ASC')->get();
129
+        $dataTypes = SystemCustDataTypes::orderBy('name', 'ASC')->get();
130 130
         
131 131
         $dropDown = [];
132 132
         foreach($dataTypes as $type)
Please login to merge, or discard this patch.
database/factories/SystemFilesFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@
 block discarded – undo
3 3
 use Illuminate\Support\Str;
4 4
 use Faker\Generator as Faker;
5 5
 
6
-$factory->define(App\Files::class, function (Faker $faker) {
6
+$factory->define(App\Files::class, function(Faker $faker) {
7 7
     return [
8 8
         'file_name' => Str::random(5).$faker->fileExtension,
9 9
         'file_link' => 'random/path'
10 10
     ];
11 11
 });
12 12
 
13
-$factory->define(App\SystemFiles::class, function (Faker $faker) use ($factory) {
13
+$factory->define(App\SystemFiles::class, function(Faker $faker) use ($factory) {
14 14
     return [
15 15
         'sys_id'      => 1,
16 16
         'type_id'     => 1,
Please login to merge, or discard this patch.
app/Http/Controllers/Systems/SystemsController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
         }
40 40
         
41 41
         //  Get the types of systems belonging to the category
42
-        $sysList = SystemTypes::whereHas('SystemCategories', function($q) use($cat)
43
-        {
42
+        $sysList = SystemTypes::whereHas('SystemCategories', function($q) use($cat) {
44 43
             $q->where('name', $cat);
45 44
         })->get();
46 45
         
Please login to merge, or discard this patch.