@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | // TODO: Warehouse management: create new order |
98 | - if ( $this->_deliverable->end < $next_cycle_start |
|
98 | + if ($this->_deliverable->end < $next_cycle_start |
|
99 | 99 | && $this->_deliverable->end != 0) { |
100 | 100 | debug_add('Do not register next cycle, the contract ends before'); |
101 | 101 | return $this->_deliverable->end_subscription(); |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | } |
329 | 329 | |
330 | 330 | //If previous cycle was run at the end of the month, the new one should be at the end of the month as well |
331 | - if ( $date->format('t') == $date->format('j') |
|
331 | + if ($date->format('t') == $date->format('j') |
|
332 | 332 | && $new_date->format('t') != $new_date->format('j')) { |
333 | 333 | $new_date->setDate((int) $new_date->format('Y'), (int) $new_date->format('m'), (int) $new_date->format('t')); |
334 | 334 | } |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | |
237 | 237 | private function _convert_to_localdata() : string |
238 | 238 | { |
239 | - return "var " . $this->_grid->get_identifier() . '_entries = ' . json_encode($this->get_rows()) . ";\n"; |
|
239 | + return "var " . $this->_grid->get_identifier() . '_entries = ' . json_encode($this->get_rows()) . ";\n"; |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | private function _render_json() |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | $this->_sort_field = $query['sidx']; |
270 | 270 | $this->_sort_direction = strtoupper($query['sord'] ?? 'ASC'); |
271 | 271 | } |
272 | - if ( !empty($query['_search']) |
|
272 | + if (!empty($query['_search']) |
|
273 | 273 | && $query['_search'] === 'true') { |
274 | 274 | foreach ($query as $field => $value) { |
275 | 275 | if (in_array($field, ['_search', 'nd', 'page', 'rows', 'sidx', 'sord'])) { |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | |
295 | 295 | $this->_total_rows = $query->count(); |
296 | 296 | |
297 | - if ( $this->_datatype == 'json' |
|
297 | + if ($this->_datatype == 'json' |
|
298 | 298 | && !empty($this->_results_per_page)) { |
299 | 299 | $query->set_limit($this->_results_per_page); |
300 | 300 | if (!empty($this->_offset)) { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $contacts = $importer->parse($input); |
143 | 143 | if (!empty($contacts)) { |
144 | 144 | $this->_request_data['import_status'] = $importer->import_subscribers($contacts, $this->_request_data['campaign']); |
145 | - if ( $this->_request_data['import_status']['subscribed_new'] > 0 |
|
145 | + if ($this->_request_data['import_status']['subscribed_new'] > 0 |
|
146 | 146 | || $this->_request_data['import_status']['already_subscribed'] > 0) { |
147 | 147 | $this->_import_success = true; |
148 | 148 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | $read_rows = 0; |
200 | 200 | $handle = fopen($data['tmp_file'], 'r'); |
201 | 201 | $total_columns = 0; |
202 | - while ( $read_rows < 2 |
|
202 | + while ($read_rows < 2 |
|
203 | 203 | && $csv_line = fgetcsv($handle, 1000, $data['separator'])) { |
204 | 204 | if ($total_columns == 0) { |
205 | 205 | $total_columns = count($csv_line); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | |
91 | 91 | $this->_controller = $this->load_controller(); |
92 | 92 | |
93 | - if ( $data['enable_versioning'] |
|
93 | + if ($data['enable_versioning'] |
|
94 | 94 | && $request->request->count() > 0) { |
95 | 95 | $this->_backup_attachment($request); |
96 | 96 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $user = midcom::get()->auth->user->get_storage(); |
68 | 68 | |
69 | 69 | if ($request->request->get('unset_filter') == $filter_id) { |
70 | - if ( $user->get_parameter("org_openpsa_core_filter", $filter_id) |
|
70 | + if ($user->get_parameter("org_openpsa_core_filter", $filter_id) |
|
71 | 71 | && !$user->delete_parameter("org_openpsa_core_filter", $filter_id)) { |
72 | 72 | $message_content = sprintf( |
73 | 73 | $l10n->get('the handed filter for %s could not be set as parameter'), |