Completed
Pull Request — master (#26)
by Jonathan
07:51
created
resources/views/modules/default/uitypes/detail/file.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
     <?php
7 7
         $value = $field->uitype->getFormattedValueToDisplay($field, $record);
8 8
         $valueParts = explode(';', $value);
9
-        $fileName = $valueParts[0];
9
+        $fileName = $valueParts[ 0 ];
10 10
     ?>
11 11
     @if (count($valueParts) === 2)
12 12
         <div class="truncate">
Please login to merge, or discard this patch.
resources/views/modules/default/list/main.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@
 block discarded – undo
95 95
                                         <div class="hide-on-small-only hide-on-med-only">
96 96
                                             <?php
97 97
                                                 $searchValue = null;
98
-                                                if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column['name']})) {
99
-                                                    $searchValue = $selectedFilter->conditions->search->{$column['name']};
98
+                                                if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) {
99
+                                                    $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]};
100 100
                                                 }
101 101
 
102 102
                                                 // If a special template exists, use it. Else use the generic template
Please login to merge, or discard this patch.
resources/views/modules/default/detail/relatedlists/table.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
                     <div class="search hide-on-small-only hide-on-med-only hide">
30 30
                         <?php
31 31
                             $searchValue = null;
32
-                            if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column['name']})) {
33
-                                $searchValue = $selectedFilter->conditions->search->{$column['name']};
32
+                            if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) {
33
+                                $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]};
34 34
                             }
35 35
 
36 36
                             // If a special template exists, use it. Else use the generic template
Please login to merge, or discard this patch.
app/Support/Traits/RelatedlistTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         // Related model
90 90
         $relatedModel = new $relatedList->relatedModule->model_class;
91 91
 
92
-        $relations->getCollection()->transform(function ($relation) use ($relatedModel) {
92
+        $relations->getCollection()->transform(function($relation) use ($relatedModel) {
93 93
             $record = $relatedModel::find($relation->related_record_id);
94 94
             $record->relation_id = $relation->id; // Add relation id
95 95
 
Please login to merge, or discard this patch.
app/Fields/Uitype/Select.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,8 @@
 block discarded – undo
87 87
      */
88 88
     public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder
89 89
     {
90
-        $query->where(function ($query) use($field, $value) {
91
-            foreach ((array) $value as $_value) {
90
+        $query->where(function($query) use($field, $value) {
91
+            foreach ((array)$value as $_value) {
92 92
                 $formattedValue = $this->getFormattedValueToSearch($_value);
93 93
                 $query = $query->orWhere($field->column, 'like', $formattedValue);
94 94
             }
Please login to merge, or discard this patch.
app/Fields/Uitype/Entity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@
 block discarded – undo
126 126
      */
127 127
     public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder
128 128
     {
129
-        $query->where(function ($query) use($field, $value) {
130
-            foreach ((array) $value as $_value) {
129
+        $query->where(function($query) use($field, $value) {
130
+            foreach ((array)$value as $_value) {
131 131
                 $query = $query->orWhere($field->column, '=', $_value);
132 132
             }
133 133
         });
Please login to merge, or discard this patch.
app/Fields/Uitype/Checkbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,8 @@
 block discarded – undo
87 87
      */
88 88
     public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder
89 89
     {
90
-        $query->where(function ($query) use($field, $value) {
91
-            foreach ((array) $value as $_value) {
90
+        $query->where(function($query) use($field, $value) {
91
+            foreach ((array)$value as $_value) {
92 92
                 $formattedValue = $this->getFormattedValueToSearch($_value);
93 93
                 $query = $query->orWhere($field->column, $formattedValue);
94 94
             }
Please login to merge, or discard this patch.
app/Fields/Uitype/AssignedUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,8 +120,8 @@
 block discarded – undo
120 120
      */
121 121
     public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder
122 122
     {
123
-        $query->where(function ($query) use($field, $value) {
124
-            foreach ((array) $value as $_value) {
123
+        $query->where(function($query) use($field, $value) {
124
+            foreach ((array)$value as $_value) {
125 125
                 $query = $query->orWhere($field->column, '=', $_value);
126 126
             }
127 127
         });
Please login to merge, or discard this patch.
app/Forms/Form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         // If the form is not valid display a notification
35
-        if (! $this->isValid()) {
35
+        if (!$this->isValid()) {
36 36
             ucnotify(uctrans('notification.form.not_valid', $module), 'error');
37 37
         }
38 38
 
Please login to merge, or discard this patch.