Passed
Push — dev5 ( 0d97ef...978ab8 )
by Ron
08:29
created
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/FileLinks/GuestLinksController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         if($files == 0 && $details->allow_upload === 'No')
57 57
         {
58
-            Log::warning('Visitor ' . \Request::ip() . ' visited a link that they cannot do anything with.  Hash - ' . $id);
58
+            Log::warning('Visitor '.\Request::ip().' visited a link that they cannot do anything with.  Hash - '.$id);
59 59
             return view('links.guestDeadLink');
60 60
         }
61 61
 
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerController.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@
 block discarded – undo
49 49
                     //  Search the name, dba name, and cust id columns
50 50
                     ->where(function($query) use ($request)
51 51
                     {
52
-                        $query->where('name', 'like', '%' . $request->name . '%')
53
-                            ->orWhere('cust_id', 'like', '%' . $request->name . '%')
54
-                            ->orWhere('dba_name', 'like', '%' . $request->name . '%');
52
+                        $query->where('name', 'like', '%'.$request->name.'%')
53
+                            ->orWhere('cust_id', 'like', '%'.$request->name.'%')
54
+                            ->orWhere('dba_name', 'like', '%'.$request->name.'%');
55 55
                     })
56 56
                     //  Search the city column
57
-                    ->where('city', 'like', '%' . $request->city . '%')
57
+                    ->where('city', 'like', '%'.$request->city.'%')
58 58
                     //  Include the customers systems
59 59
                     ->with('CustomerSystems.SystemTypes')
60 60
                     //  If the system field is present - search for system type
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@  discard block
 block discarded – undo
47 47
             $searchResults = new CustomersCollection(
48 48
                 Customers::orderBy($request->sortField, $request->sortType)
49 49
                     //  Search the name, dba name, and cust id columns
50
-                    ->where(function($query) use ($request)
51
-                    {
50
+                    ->where(function($query) use ($request) {
52 51
                         $query->where('name', 'like', '%' . $request->name . '%')
53 52
                             ->orWhere('cust_id', 'like', '%' . $request->name . '%')
54 53
                             ->orWhere('dba_name', 'like', '%' . $request->name . '%');
@@ -58,10 +57,8 @@  discard block
 block discarded – undo
58 57
                     //  Include the customers systems
59 58
                     ->with('CustomerSystems.SystemTypes')
60 59
                     //  If the system field is present - search for system type
61
-                    ->when($request->system, function($query) use ($request)
62
-                    {
63
-                        $query->whereHas('CustomerSystems.SystemTypes', function($query) use ($request)
64
-                        {
60
+                    ->when($request->system, function($query) use ($request) {
61
+                        $query->whereHas('CustomerSystems.SystemTypes', function($query) use ($request) {
65 62
                             $query->where('sys_id', $request->system);
66 63
                         });
67 64
                     })
Please login to merge, or discard this patch.
database/factories/CustomerSystemData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use App\CustomerSystemData;
6 6
 use Faker\Generator as Faker;
7 7
 
8
-$factory->define(CustomerSystemData::class, function (Faker $faker) {
8
+$factory->define(CustomerSystemData::class, function(Faker $faker) {
9 9
     return [
10 10
         //
11 11
         'cust_sys_id' => factory(App\CustomerSystems::class)->create()->cust_sys_id,
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerSystemsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 
109 109
         foreach($fields as $data)
110 110
         {
111
-            $fieldName = 'field_' . $data->field_id;
111
+            $fieldName = 'field_'.$data->field_id;
112 112
             if(isset($request->$fieldName))
113 113
             {
114 114
                 Log::debug($request->$fieldName);
Please login to merge, or discard this patch.
database/migrations/2018_05_30_113959_create_tech_tip_types_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function up()
16 16
     {
17
-        Schema::create('tech_tip_types', function (Blueprint $table) {
17
+        Schema::create('tech_tip_types', function(Blueprint $table) {
18 18
             $table->bigIncrements('tip_type_id');
19 19
             $table->text('description');
20 20
             $table->timestamps();
Please login to merge, or discard this patch.
app/Notifications/NewTechTip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         return [
60 60
             //
61 61
             'type'    => 'warning',
62
-            'message' => 'New Tech Tip Created - ' . $this->details->subject,
62
+            'message' => 'New Tech Tip Created - '.$this->details->subject,
63 63
             'link'    => url(route(
64 64
                 'tip.details',
65 65
                     [
Please login to merge, or discard this patch.
database/factories/TechTipFilesFactory.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 App\TechTipFiles;
6 6
 
7
-$factory->define(TechTipFiles::class, function () {
7
+$factory->define(TechTipFiles::class, function() {
8 8
     return [
9 9
         'tip_id'  => factory(App\TechTips::class)->create()->tip_id,
10 10
         'file_id' => factory(App\Files::class)->create()->file_id,
Please login to merge, or discard this patch.
database/factories/TechTipSystems.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 App\TechTipSystems;
6 6
 
7
-$factory->define(TechTipSystems::class, function () {
7
+$factory->define(TechTipSystems::class, function() {
8 8
     return [
9 9
         'tip_id' => factory(App\TechTips::class)->create()->tip_id,
10 10
         'sys_id' => factory(App\SystemTypes::class)->create()->sys_id,
Please login to merge, or discard this patch.