Test Failed
Branch master (8d1702)
by Andreas
11:03
created
src/midcom/datamanager/indexer/document.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $this->content .= "{$this->abstract}\n";
138 138
         }
139 139
 
140
-        if (! $this->title) {
140
+        if (!$this->title) {
141 141
             $this->title = $this->document_url;
142 142
         }
143 143
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     if (!empty($field->vars['value'])) {
179 179
                         //only index the first attachment for now
180 180
                         $attachment = array_shift($field->vars['value']);
181
-                        if (   !$attachment instanceof \midcom_db_attachment
181
+                        if (!$attachment instanceof \midcom_db_attachment
182 182
                             && !empty($attachment['object'])) {
183 183
                             //This is the form edit case
184 184
                             //@todo: In create case, nothing is found currently
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     private function resolve_auto_method($name)
264 264
     {
265
-        if (   $name == 'abstract'
265
+        if ($name == 'abstract'
266 266
             || $name == 'title'
267 267
             || $name == 'author') {
268 268
             return $name;
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/handler/logger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         $qb = org_openpsa_directmarketing_campaign_messagereceipt_dba::new_query_builder();
86 86
         $qb->add_constraint('token', '=', $token);
87 87
         $qb->add_constraint('orgOpenpsaObtype', '=', $type);
88
-        $ret =  $qb->execute();
88
+        $ret = $qb->execute();
89 89
         debug_print_r("_qb_token_receipts({$token}) returned", $ret);
90 90
         if (empty($ret)) {
91 91
             midcom::get()->auth->drop_sudo();
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/handler/subscriber.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@  discard block
 block discarded – undo
34 34
             // Add person to campaign
35 35
             try {
36 36
                 $campaign = new org_openpsa_directmarketing_campaign_dba($_POST['add_to_campaign']);
37
-            } catch (midcom_error $e) {
37
+            }
38
+            catch (midcom_error $e) {
38 39
                 // FIXME: More informative error message
39 40
                 $this->notify('Failed adding person %s to campaign %s', $_POST['add_to_campaign'], 'error');
40 41
                 return;
@@ -87,7 +88,8 @@  discard block
 block discarded – undo
87 88
             try {
88 89
                 $campaigns[$membership->campaign] = new org_openpsa_directmarketing_campaign_dba($membership->campaign);
89 90
                 $campaign_membership_map[$membership->campaign] = $membership;
90
-            } catch (midcom_error $e) {
91
+            }
92
+            catch (midcom_error $e) {
91 93
                 debug_add('Failed to load campaign ' . $membership->campaign . ', reason: ' . $e->getMessage());
92 94
             }
93 95
         }
Please login to merge, or discard this patch.
lib/org/openpsa/sales/viewer.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,8 @@  discard block
 block discarded – undo
61 61
                     //check if related at_entry exists
62 62
                     try {
63 63
                         $notification_entry = new midcom_services_at_entry_dba($entry);
64
-                    } catch (midcom_error $e) {
64
+                    }
65
+                    catch (midcom_error $e) {
65 66
                         //relatedto links to a non-existing at_entry - so create a new one an link to it
66 67
                         $notification_entry = new midcom_services_at_entry_dba();
67 68
                         $notification_entry->create();
@@ -83,7 +84,8 @@  discard block
 block discarded – undo
83 84
                     $notification_entry = new midcom_services_at_entry_dba($mc_entry->get_subkey($key, 'fromGuid'));
84 85
                     //check if related at_entry exists & delete it
85 86
                     $notification_entry->delete();
86
-                } catch (midcom_error $e) {
87
+                }
88
+                catch (midcom_error $e) {
87 89
                     $e->log();
88 90
                 }
89 91
             }
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/handler/projects.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,8 @@  discard block
 block discarded – undo
52 52
             try {
53 53
                 $deliverable = org_openpsa_sales_salesproject_deliverable_dba::get_cached($task->agreement);
54 54
                 $item->deliverable = $deliverable->id;
55
-            } catch (midcom_error $e) {
55
+            }
56
+            catch (midcom_error $e) {
56 57
                 $e->log();
57 58
             }
58 59
             $item->invoice = $invoice->id;
@@ -144,7 +145,8 @@  discard block
 block discarded – undo
144 145
                 $customer = org_openpsa_contacts_group_dba::get_cached($customer_id);
145 146
                 $data['customer_label'] = $customer->official;
146 147
                 $data['disabled'] = '';
147
-            } catch (midcom_error $e) {
148
+            }
149
+            catch (midcom_error $e) {
148 150
                 $data['customer_label'] = $this->_l10n->get('no customer');
149 151
                 $data['disabled'] = ' disabled="disabled"';
150 152
             }
@@ -167,7 +169,8 @@  discard block
 block discarded – undo
167 169
                     } else {
168 170
                         $data['invoiceable_units'] = $task->plannedHours;
169 171
                     }
170
-                } catch (midcom_error $e) {
172
+                }
173
+                catch (midcom_error $e) {
171 174
                     $e->log();
172 175
                     if ($this->_config->get('default_hourly_price')) {
173 176
                         $data['default_price'] = $this->_config->get('default_hourly_price');
Please login to merge, or discard this patch.
lib/org/openpsa/relatedto/handler/relatedto.php 2 patches
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,8 @@  discard block
 block discarded – undo
165 165
             );
166 166
             try {
167 167
                 $to_arr['other_obj'] = midcom::get()->dbfactory->get_object_by_guid($mc->get_subkey($guid, $object_prefix . 'Guid'));
168
-            } catch (midcom_error $e) {
168
+            }
169
+            catch (midcom_error $e) {
169 170
                 continue;
170 171
             }
171 172
 
@@ -496,7 +497,8 @@  discard block
 block discarded – undo
496 497
                 if (!($this->_object instanceof org_openpsa_relatedto_dba)) {
497 498
                     $response->status = "method '{$this->_mode}' requires guid of a link object as an argument";
498 499
                 }
499
-            } catch (midcom_error $e) {
500
+            }
501
+            catch (midcom_error $e) {
500 502
                 $response->status = "method '{$this->_mode}' requires guid of a link object as an argument";
501 503
             }
502 504
         }
@@ -533,7 +535,8 @@  discard block
 block discarded – undo
533 535
             $relation = new org_openpsa_relatedto_dba($args[0]);
534 536
             $response->result = $relation->delete();
535 537
             $response->status = 'Last message: ' . midcom_connection::get_error_string();
536
-        } catch (midcom_error $e) {
538
+        }
539
+        catch (midcom_error $e) {
537 540
             $response->result = false;
538 541
             $response->status = "Object '{$args[0]}' could not be loaded, error:" . $e->getMessage();
539 542
         }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     private function _render_line(array $link, &$other_obj)
229 229
     {
230 230
         $this->_request_data['link'] = $link;
231
-        $this->_request_data['other_obj'] =& $other_obj;
231
+        $this->_request_data['other_obj'] = & $other_obj;
232 232
 
233 233
         $ref = midcom_helper_reflector::get($link['class']);
234 234
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
             //Calendar node found, render a better view
317 317
             $this->_request_data['raw_url'] = $url . 'event/raw/' . $other_obj->guid . '/';
318 318
             $workflow = $this->get_workflow('viewer');
319
-            $title = '<a href="' . $url . 'event/' . $other_obj->guid .  '/" ' . $workflow->render_attributes() . '>' . $title . "</a>\n";
319
+            $title = '<a href="' . $url . 'event/' . $other_obj->guid . '/" ' . $workflow->render_attributes() . '>' . $title . "</a>\n";
320 320
         }
321 321
 
322 322
         $this->_request_data['title'] = $title;
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
         $title = $other_obj->title;
341 341
 
342 342
         if ($url = $this->get_node_url('org.openpsa.projects')) {
343
-            $title = '<a href="' . $url . $type . '/' . $other_obj->guid  . '/" target="task_' . $other_obj->guid . '">' . $title . "</a>\n";
343
+            $title = '<a href="' . $url . $type . '/' . $other_obj->guid . '/" target="task_' . $other_obj->guid . '">' . $title . "</a>\n";
344 344
         }
345 345
         $this->_request_data['title'] = $title;
346 346
         $this->_request_data['type'] = $type;
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
         $title = $other_obj->title;
359 359
 
360 360
         if ($url = $this->get_node_url('org.openpsa.sales')) {
361
-            $title = '<a href="' . $url . 'salesproject/' . $other_obj->guid  . '/" target="salesproject_' . $other_obj->guid . '">' . $title . "</a>\n";
361
+            $title = '<a href="' . $url . 'salesproject/' . $other_obj->guid . '/" target="salesproject_' . $other_obj->guid . '">' . $title . "</a>\n";
362 362
         }
363 363
 
364 364
         $this->_request_data['title'] = $title;
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         $title = $this->_i18n->get_string('invoice', 'org.openpsa.invoices') . ' ' . $other_obj->get_label();
377 377
 
378 378
         if ($url = $this->get_node_url('org.openpsa.invoices')) {
379
-            $title = '<a href="' . $url . 'invoice/' . $other_obj->guid  . '/" target="invoice_' . $other_obj->guid . '">' . $title . "</a>\n";
379
+            $title = '<a href="' . $url . 'invoice/' . $other_obj->guid . '/" target="invoice_' . $other_obj->guid . '">' . $title . "</a>\n";
380 380
         }
381 381
         $this->_request_data['title'] = $title;
382 382
 
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
     {
423 423
         echo "<ul class=\"relatedto_toolbar\" data-link-guid=\"{$link['guid']}\" data-other-guid=\"{$other_obj->guid}\">\n";
424 424
 
425
-        if (   $link['component'] == 'net.nemein.wiki'
425
+        if ($link['component'] == 'net.nemein.wiki'
426 426
             || $link['component'] == 'org.openpsa.calendar') {
427 427
             echo "<li><input type=\"button\" class=\"button info\" value=\"" . midcom::get()->i18n->get_string('details', 'org.openpsa.relatedto') . "\" /></li>\n";
428 428
         }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/handler/duplicates/person.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,8 @@  discard block
 block discarded – undo
66 66
             try {
67 67
                 $person1 = new org_openpsa_contacts_person_dba($param->parentguid);
68 68
                 $person2 = new org_openpsa_contacts_person_dba($param->name);
69
-            } catch (midcom_error $e) {
69
+            }
70
+            catch (midcom_error $e) {
70 71
                 $i++;
71 72
                 continue;
72 73
             }
@@ -137,7 +138,8 @@  discard block
 block discarded – undo
137 138
                 try {
138 139
                     $merger = new org_openpsa_contacts_duplicates_merge('person', $this->_config);
139 140
                     $merger->merge_delete($person1, $person2);
140
-                } catch (midcom_error $e) {
141
+                }
142
+                catch (midcom_error $e) {
141 143
                     // TODO: Localize
142 144
                     midcom::get()->uimessages->add($this->_l10n->get('org.openpsa.contacts'), 'Merge failed, errstr: ' . $e->getMessage(), 'error');
143 145
                 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     private function load_next()
45 45
     {
46
-        $i =& $this->_request_data['loop_i'];
46
+        $i = & $this->_request_data['loop_i'];
47 47
         while ($i < 100) {
48 48
             debug_add("Loop iteration {$i}");
49 49
             $qb = new midgard_query_builder('midgard_parameter');
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 continue;
72 72
             }
73 73
             // Make sure we actually have enough rights to do this
74
-            if (   !$person1->can_do('midgard:update')
74
+            if (!$person1->can_do('midgard:update')
75 75
                 || !$person1->can_do('midgard:delete')
76 76
                 || !$person2->can_do('midgard:update')
77 77
                 || !$person2->can_do('midgard:delete')) {
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
                 continue;
81 81
             }
82 82
             // Extra sanity check (in case of semi-successful not-duplicate mark)
83
-            if (   $person1->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $person2->guid)
83
+            if ($person1->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $person2->guid)
84 84
                 || $person2->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $person1->guid)) {
85 85
                 debug_add("It seems these two (#{$person1->id} and #{$person2->id}) have also marked as not duplicates, some cleanup might be a good thing", MIDCOM_LOG_WARN);
86 86
                 $i++;
87 87
                 continue;
88 88
             }
89 89
 
90
-            $this->_request_data['probability'] = (float)$param->value;
90
+            $this->_request_data['probability'] = (float) $param->value;
91 91
             $this->_request_data['person1'] = $person1;
92 92
             $this->_request_data['person2'] = $person2;
93 93
             break;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     private function process_submit()
98 98
     {
99
-        if (   !empty($_POST['org_openpsa_contacts_handler_duplicates_person_keep'])
99
+        if (!empty($_POST['org_openpsa_contacts_handler_duplicates_person_keep'])
100 100
             && !empty($_POST['org_openpsa_contacts_handler_duplicates_person_options'])
101 101
             && count($_POST['org_openpsa_contacts_handler_duplicates_person_options']) == 2) {
102 102
             $option1 = new org_openpsa_contacts_person_dba($_POST['org_openpsa_contacts_handler_duplicates_person_options'][1]);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             if ($keep == 'both') {
106 106
                 $option1->require_do('midgard:update');
107 107
                 $option2->require_do('midgard:update');
108
-                if (   $option1->set_parameter('org.openpsa.contacts.duplicates:not_duplicate', $option2->guid, time())
108
+                if ($option1->set_parameter('org.openpsa.contacts.duplicates:not_duplicate', $option2->guid, time())
109 109
                     && $option2->set_parameter('org.openpsa.contacts.duplicates:not_duplicate', $option1->guid, time())) {
110 110
                     // Clear the possible duplicate parameters
111 111
                     $option1->delete_parameter('org.openpsa.contacts.duplicates:possible_duplicate', $option2->guid);
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
                 }
124 124
             } else {
125 125
                 if ($keep == $option1->guid) {
126
-                    $person1 =& $option1;
127
-                    $person2 =& $option2;
126
+                    $person1 = & $option1;
127
+                    $person2 = & $option2;
128 128
                 } elseif ($keep == $option2->guid) {
129
-                    $person1 =& $option2;
130
-                    $person2 =& $option1;
129
+                    $person1 = & $option2;
130
+                    $person2 = & $option1;
131 131
                 } else {
132 132
                     throw new midcom_error('Something weird happened (basically we got bogus data)');
133 133
                 }
Please login to merge, or discard this patch.
lib/org/openpsa/calendar/conflictmanager.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,8 @@  discard block
 block discarded – undo
196 196
             try {
197 197
                 $event = new org_openpsa_calendar_event_dba($member->event);
198 198
                 $set_as_modified = true;
199
-            } catch (midcom_error $e) {
199
+            }
200
+            catch (midcom_error $e) {
200 201
                 debug_add("event_resource #{$member->id} links ot bogus event #{$member->event}, skipping and removing", MIDCOM_LOG_WARN);
201 202
                 $member->delete();
202 203
                 return;
@@ -224,7 +225,8 @@  discard block
 block discarded – undo
224 225
 
225 226
         try {
226 227
             $event = new org_openpsa_calendar_event_dba($member->eid);
227
-        } catch (midcom_error $e) {
228
+        }
229
+        catch (midcom_error $e) {
228 230
             debug_add("eventmember #{$member->id} links to bogus event #{$member->eid}, skipping and removing", MIDCOM_LOG_WARN);
229 231
             $member->delete();
230 232
             return;
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         }
126 126
         // TODO: Shared tasks need a separate check (different member object)
127 127
 
128
-        if (   !empty($this->busy_members)
128
+        if (!empty($this->busy_members)
129 129
             || !empty($this->busy_resources)) {
130 130
             //Unresolved conflicts (note return value is for conflicts not lack of them)
131 131
             midcom::get()->auth->drop_sudo();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             //These events have been robbed of (some of) their resources
139 139
             $creator = midcom_db_person::get_cached($event->metadata->creator);
140 140
             $other_participants = array_diff_key($event->participants, array($creator->id => true));
141
-            if (   count($other_participants) == 0
141
+            if (count($other_participants) == 0
142 142
                 && count($event->resources) == 0) {
143 143
                 /* If modified event has no-one or only creator as participant and no resources
144 144
                    then delete it (as it's unlikely the stub event is useful anymore) */
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         }
190 190
 
191 191
         if (array_key_exists($member->event, $modified_events)) {
192
-            $event =& $modified_events[$member->event];
192
+            $event = & $modified_events[$member->event];
193 193
             $set_as_modified = false;
194 194
         } else {
195 195
             try {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         }
204 204
         debug_add("overlap found in event {$event->title} (#{$event->id})");
205 205
 
206
-        if (   $event->tentative
206
+        if ($event->tentative
207 207
             && $rob_tentative) {
208 208
             debug_add('event is tentative, robbing resources');
209 209
             $event->resources = array_diff_key($event->resources, $this->_event->resources);
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         }
231 231
         debug_add("overlap found in event {$event->title} (#{$event->id})");
232 232
 
233
-        if (   $event->tentative
233
+        if ($event->tentative
234 234
             && $rob_tentative) {
235 235
             debug_add('event is tentative, robbing participants');
236 236
             $event->participants = array_diff_key($event->participants, $this->_event->participants);
Please login to merge, or discard this patch.
lib/midcom/helper/datamanager2/type/images.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -737,7 +737,8 @@
 block discarded – undo
737 737
             $iterator = new RecursiveIteratorIterator($dir);
738 738
             // ignore backup files
739 739
             return new RegexIterator($iterator, '/[^~]$/i');
740
-        } catch (UnexpectedValueException $e) {
740
+        }
741
+        catch (UnexpectedValueException $e) {
741 742
             debug_add("failed to create iterator:" . $e->getMessage(), MIDCOM_LOG_ERROR);
742 743
             return array();
743 744
         }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                 continue;
306 306
             }
307 307
             $images_identifier = $info[0];
308
-            if (   !empty($this->attachments_info[$blobs_identifier]['object'])
308
+            if (!empty($this->attachments_info[$blobs_identifier]['object'])
309 309
                 && is_object($this->attachments_info[$blobs_identifier]['object'])) {
310 310
                 $this->titles[$images_identifier] = $this->attachments_info[$blobs_identifier]['object']->title;
311 311
             }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
                     }
364 364
                     if (empty($main['object']->guid)) {
365 365
                         //Panic, broken identifier
366
-                        debug_add("Identifier '{$identifier}' does not have a valid object behind it",  MIDCOM_LOG_ERROR);
366
+                        debug_add("Identifier '{$identifier}' does not have a valid object behind it", MIDCOM_LOG_ERROR);
367 367
                         continue;
368 368
                     }
369 369
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
             debug_print_r('$this->attachments_info', $this->attachments_info);
466 466
             return;
467 467
         }
468
-        $info =& $this->attachments_info[$identifier];
468
+        $info = & $this->attachments_info[$identifier];
469 469
         $this->_info_heuristics($info, $identifier);
470 470
         $attachment->set_parameter('midcom.helper.datamanager2.type.images', 'images_identifier', $info['images_identifier']);
471 471
         // This would be the name of the 'derived_images' key.
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 
508 508
         $this->attachments_info[$identifier]['images_identifier'] = $images_identifier;
509 509
         $this->attachments_info[$identifier]['images_name'] = $images_name;
510
-        $this->images[$images_identifier][$images_name] =& $this->attachments_info[$identifier];
510
+        $this->images[$images_identifier][$images_name] = & $this->attachments_info[$identifier];
511 511
     }
512 512
 
513 513
     /**
@@ -533,16 +533,16 @@  discard block
 block discarded – undo
533 533
     protected function _sort_images_callback($a, $b)
534 534
     {
535 535
         // safety against broken images
536
-        if (   !empty($a['main']['object'])
536
+        if (!empty($a['main']['object'])
537 537
             && !empty($b['main']['object'])) {
538 538
             $a_obj = $a['main']['object'];
539 539
             $b_obj = $b['main']['object'];
540 540
         } else {
541 541
             // Try to read the sort values from some other key
542
-            if (   is_array($a)
542
+            if (is_array($a)
543 543
                 && is_array($b)) {
544 544
                 foreach ($a as $key => $data) {
545
-                    if (   !empty($data['object'])
545
+                    if (!empty($data['object'])
546 546
                         && !empty($b[$key]['object'])) {
547 547
                         $a_obj = $data['object'];
548 548
                         $b_obj = $b[$key]['object'];
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
                     }
551 551
                 }
552 552
             }
553
-            if (   empty($a_obj)
553
+            if (empty($a_obj)
554 554
                 && empty($b_obj)) {
555 555
                 return 0;
556 556
             }
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
     private function _batch_handler_cleanup($tmp_dir, $new_name)
654 654
     {
655 655
         debug_add("called with: '{$tmp_dir}', '{$new_name}'");
656
-        if (   !empty($tmp_dir)
656
+        if (!empty($tmp_dir)
657 657
             && $tmp_dir !== '/'
658 658
             /* TODO: better tmp dir matching */
659 659
             && preg_match('|^/tmp/|', $tmp_dir)) {
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
             debug_add("executing '{$cmd}'");
662 662
             exec($cmd, $output, $ret);
663 663
         }
664
-        if (   empty($new_name)
664
+        if (empty($new_name)
665 665
             /* TODO: better tmp dir matching */
666 666
             || !preg_match('|^/tmp/|', $new_name)) {
667 667
             return;
Please login to merge, or discard this patch.