Passed
Pull Request — dev5a (#87)
by
unknown
08:26
created
app/Providers/FormGroupServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
     public function boot()
26 26
     {
27 27
         //  Service provider to customize form inputs
28
-        Form::component('bsText',     'components.form.text',     ['name', 'label', 'value' => null, 'attributes' => []]);
28
+        Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]);
29 29
         Form::component('bsPassword', 'components.form.password', ['name', 'label', 'value' => null, 'attributes' => []]);
30
-        Form::component('bsNumber',   'components.form.number',   ['name', 'label', 'value' => null, 'attributes' => []]);
31
-        Form::component('bsEmail',    'components.form.email',    ['name', 'label', 'value' => null, 'attributes' => []]);
32
-        Form::component('bsDate',     'components.form.date',     ['name', 'label', 'value' => null, 'attributes' => []]);
30
+        Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]);
31
+        Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]);
32
+        Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]);
33 33
         Form::component('bsTextarea', 'components.form.textarea', ['name', 'label', 'value' => null, 'attributes' => []]);
34 34
         Form::component('bsCheckbox', 'components.form.checkbox', ['name', 'label', 'value' => 'on', 'checked' => false, 'attributes' => []]);
35
-        Form::component('bsSelect',   'components.form.select',   ['name', 'label', 'list', 'selected' => null, 'attributes' => []]);
35
+        Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]);
36 36
         //  Custom Submit button
37 37
         Form::component('bsSubmit', 'components.form.submit', ['name']);
38 38
         //  List of all states in a dropdown box
Please login to merge, or discard this patch.
app/Domains/Customers/GetCustomerNotes.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
     protected function getNotes($custID, $shared = false)
25 25
     {
26 26
         return CustomerNotes::where('cust_id', $custID)
27
-            ->when($shared, function($q)
28
-            {
27
+            ->when($shared, function($q) {
29 28
                 $q->where('shared', 1);
30 29
             })
31 30
             ->orderBy('urgent', 'DESC')
Please login to merge, or discard this patch.
app/Domains/Files/SetFiles.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             $parts = pathinfo($name);
41 41
             $ext   = isset($parts['extension']) ? ('.'.$parts['extension']) : '';
42 42
             $base = $parts['filename'];
43
-             $number = 0;
43
+                $number = 0;
44 44
 
45 45
             do
46 46
             {
Please login to merge, or discard this patch.
app/Domains/Customers/CustomerSearch.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -76,32 +76,26 @@
 block discarded – undo
76 76
     {
77 77
         return Customers::orderBy($sort->sortField, $sort->sortType)
78 78
             //  Search equipment field
79
-            ->when(isset($searchData->equipment), function($q) use ($searchData)
80
-            {
81
-                $q->whereHas('ParentSystems.SystemTypes', function($qry) use ($searchData)
82
-                {
79
+            ->when(isset($searchData->equipment), function($q) use ($searchData) {
80
+                $q->whereHas('ParentSystems.SystemTypes', function($qry) use ($searchData) {
83 81
                     $qry->where('sys_id', $searchData->equipment);
84 82
                 })
85
-                ->orWhereHas('CustomerSystems.SystemTypes', function($qry) use ($searchData)
86
-                {
83
+                ->orWhereHas('CustomerSystems.SystemTypes', function($qry) use ($searchData) {
87 84
                     $qry->where('sys_id', $searchData->equipment);
88 85
                 });
89 86
             })
90 87
             //  Search city field
91
-            ->when(isset($searchData->city), function($q) use ($searchData)
92
-            {
88
+            ->when(isset($searchData->city), function($q) use ($searchData) {
93 89
                 $q->where('city', 'like', '%'.$searchData->city.'%');
94 90
             })
95 91
             //  Search name field
96
-            ->when(isset($searchData->name), function($q) use ($searchData)
97
-            {
92
+            ->when(isset($searchData->name), function($q) use ($searchData) {
98 93
                 $q->where('name', 'like', '%'.$searchData->name.'%')
99 94
                     ->orWhere('cust_id', 'like', '%'.$searchData->name.'%')
100 95
                     ->orWhere('dba_name', 'like', '%'.$searchData->name.'%');
101 96
             })
102 97
             //  Search by equipment type
103
-            ->when($includeSystems, function($q)
104
-            {
98
+            ->when($includeSystems, function($q) {
105 99
                 $q->with('CustomerSystems.SystemTypes')
106 100
                     ->with('ParentSystems.SystemTypes');
107 101
             })
Please login to merge, or discard this patch.