We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,11 +1,11 @@ |
||
1 | 1 | {{-- enumerate the values in an array --}} |
2 | 2 | <td> |
3 | 3 | <?php |
4 | - $array = $entry->{$column['name']}; |
|
5 | - // the value should be an array wether or not attribute casting is used |
|
6 | - if (!is_array($array)) { |
|
7 | - $array = json_decode($array, true); |
|
8 | - } |
|
4 | + $array = $entry->{$column['name']}; |
|
5 | + // the value should be an array wether or not attribute casting is used |
|
6 | + if (!is_array($array)) { |
|
7 | + $array = json_decode($array, true); |
|
8 | + } |
|
9 | 9 | if ($array && count($array)) { |
10 | 10 | echo count($array).' items'; |
11 | 11 | } else { |
@@ -3,13 +3,13 @@ |
||
3 | 3 | <?php |
4 | 4 | $max = isset($field['max']) ? $field['max'] : -1; |
5 | 5 | $min = isset($field['min']) ? $field['min'] : -1; |
6 | - $item_name = strtolower( isset($field['entity_singular']) && !empty($field['entity_singular']) ? $field['entity_singular'] : $field['label']); |
|
6 | + $item_name = strtolower(isset($field['entity_singular']) && !empty($field['entity_singular']) ? $field['entity_singular'] : $field['label']); |
|
7 | 7 | |
8 | - $items = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : '' )); |
|
8 | + $items = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : '')); |
|
9 | 9 | |
10 | 10 | // make sure not matter the attribute casting |
11 | 11 | // the $items variable contains a properly defined JSON |
12 | - if(is_array($items)) { |
|
12 | + if (is_array($items)) { |
|
13 | 13 | if (count($items)) { |
14 | 14 | $items = json_encode($items); |
15 | 15 | } |
@@ -12,8 +12,7 @@ |
||
12 | 12 | if(is_array($items)) { |
13 | 13 | if (count($items)) { |
14 | 14 | $items = json_encode($items); |
15 | - } |
|
16 | - else |
|
15 | + } else |
|
17 | 16 | { |
18 | 17 | $items = '[]'; |
19 | 18 | } |
@@ -353,8 +353,4 @@ |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |
@@ -353,8 +353,4 @@ |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |
@@ -353,8 +353,4 @@ |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |
@@ -353,8 +353,4 @@ |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | // call the setup function inside this closure to also have the request there |
31 | 31 | // this way, developers can use things stored in session (auth variables, etc) |
32 | - $this->middleware(function ($request, $next) { |
|
32 | + $this->middleware(function($request, $next) { |
|
33 | 33 | $this->setup(); |
34 | 34 | |
35 | 35 | return $next($request); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $this->data['title'] = ucfirst($this->crud->entity_name_plural); |
57 | 57 | |
58 | 58 | // get all entries if AJAX is not enabled |
59 | - if (! $this->data['crud']->ajaxTable()) { |
|
59 | + if (!$this->data['crud']->ajaxTable()) { |
|
60 | 60 | $this->data['entries'] = $this->data['crud']->getEntries(); |
61 | 61 | } |
62 | 62 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | |
212 | 212 | return $this->crud->delete($id); |
213 | 213 | } |
214 | -<<<<<<< HEAD |
|
214 | +<< << <<< HEAD |
|
215 | 215 | |
216 | 216 | /** |
217 | 217 | * Reorder the items in the database using the Nested Set pattern. |
@@ -353,8 +353,4 @@ discard block |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |
@@ -353,8 +353,4 @@ |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |
@@ -353,8 +353,4 @@ |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |
@@ -110,15 +110,3 @@ |
||
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | 112 | <<<<<<< HEAD |
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |
@@ -110,15 +110,3 @@ |
||
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | 112 | <<<<<<< HEAD |
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |
@@ -110,15 +110,3 @@ |
||
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | 112 | <<<<<<< HEAD |
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |
@@ -110,15 +110,3 @@ |
||
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | 112 | <<<<<<< HEAD |
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |
@@ -109,16 +109,4 @@ |
||
109 | 109 | 'external_link' => 'External link', |
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | -<<<<<<< HEAD |
|
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |
|
112 | +<< << <<< HEAD |
@@ -110,15 +110,3 @@ |
||
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | 112 | <<<<<<< HEAD |
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |
@@ -110,15 +110,3 @@ |
||
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | 112 | <<<<<<< HEAD |
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |