Passed
Branch master (95796a)
by Andreas
38:22
created
lib/org/openpsa/calendar/midcom/interfaces.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $root_event = self::find_root_event();
104 104
 
105 105
         $qb = org_openpsa_calendar_event_dba::new_query_builder();
106
-        $qb->add_constraint('up', '=',  $root_event->id);
106
+        $qb->add_constraint('up', '=', $root_event->id);
107 107
         $schemadb = midcom_helper_datamanager2_schema::load_database($config->get('schemadb'));
108 108
 
109 109
         $indexer = new org_openpsa_calendar_midcom_indexer($topic, $indexer);
@@ -123,8 +123,7 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
         $workflow = new midcom\workflow\datamanager2;
126
-        return $workflow->get_button("new/" . $url, array
127
-        (
126
+        return $workflow->get_button("new/" . $url, array(
128 127
             MIDCOM_TOOLBAR_LABEL => midcom::get()->i18n->get_string('create event', 'org.openpsa.calendar'),
129 128
             MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_new-event.png',
130 129
         ));
Please login to merge, or discard this patch.
lib/org/openpsa/slideshow/handler/index.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,16 +42,13 @@
 block discarded – undo
42 42
             $head->enable_jquery();
43 43
             $head->add_jsfile(MIDCOM_STATIC_URL . '/' . $this->_component . '/galleria/galleria-1.3.5.min.js');
44 44
         }
45
-        $buttons = array
46
-        (
47
-            array
48
-            (
45
+        $buttons = array(
46
+            array(
49 47
                 MIDCOM_TOOLBAR_URL => "edit/",
50 48
                 MIDCOM_TOOLBAR_LABEL => sprintf($this->_l10n_midcom->get('edit %s'), $this->_l10n->get('slideshow')),
51 49
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/configuration.png',
52 50
             ),
53
-            array
54
-            (
51
+            array(
55 52
                 MIDCOM_TOOLBAR_URL => "recreate_folder_thumbnails/",
56 53
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('recreate subfolder thumbnails'),
57 54
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_refresh.png',
Please login to merge, or discard this patch.
lib/org/openpsa/slideshow/handler/edit.php 1 patch
Spacing   +7 added lines, -11 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $failed = 0;
67 67
         foreach ($images as $image)
68 68
         {
69
-            if (   !$image->generate_image('thumbnail', $this->_config->get('thumbnail_filter'))
69
+            if (!$image->generate_image('thumbnail', $this->_config->get('thumbnail_filter'))
70 70
                 || !$image->generate_image('image', $this->_config->get('image_filter')))
71 71
             {
72 72
                 $failed++;
@@ -102,8 +102,7 @@  discard block
 block discarded – undo
102 102
         $data['images'] = $qb->execute();
103 103
 
104 104
         $head = midcom::get()->head;
105
-        $head->enable_jquery_ui(array
106
-        (
105
+        $head->enable_jquery_ui(array(
107 106
             'mouse', 'draggable', 'droppable', 'sortable',
108 107
             'progressbar', 'button', 'position', 'dialog',
109 108
             'effect', 'effect-pulsate'
@@ -113,16 +112,13 @@  discard block
 block discarded – undo
113 112
         $head->add_jsfile(MIDCOM_STATIC_URL . '/' . $this->_component . '/edit.js');
114 113
         $head->add_stylesheet(MIDCOM_STATIC_URL . '/' . $this->_component . '/edit.css');
115 114
 
116
-        $buttons = array
117
-        (
118
-            array
119
-            (
115
+        $buttons = array(
116
+            array(
120 117
                 MIDCOM_TOOLBAR_URL => "",
121 118
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('view'),
122 119
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/view.png',
123 120
             ),
124
-            array
125
-            (
121
+            array(
126 122
                 MIDCOM_TOOLBAR_URL => "recreate/",
127 123
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('recreate derived images'),
128 124
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_refresh.png',
@@ -272,7 +268,7 @@  discard block
 block discarded – undo
272 268
                 }
273 269
                 //Fall-through
274 270
             case 'create':
275
-                if (   !isset($_POST['title'])
271
+                if (!isset($_POST['title'])
276 272
                     || !isset($_POST['description'])
277 273
                     || !isset($_POST['position']))
278 274
                 {
@@ -297,7 +293,7 @@  discard block
 block discarded – undo
297 293
         $attachment->title = $_POST['title'];
298 294
         $attachment->mimetype = $file['type'];
299 295
         $attachment->parentguid = $image->guid;
300
-        if (   !$attachment->create()
296
+        if (!$attachment->create()
301 297
             || !$attachment->copy_from_file($file['tmp_name']))
302 298
         {
303 299
             throw new midcom_error('Failed to create attachment: ' . midcom_connection::get_error_string());
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/viewer.php 1 patch
Spacing   +8 added lines, -15 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         }
57 57
 
58 58
         // generate next action buttons
59
-        if (   $invoice->can_do('midgard:update')
59
+        if ($invoice->can_do('midgard:update')
60 60
             && count($next_marker) > 0)
61 61
         {
62 62
             foreach ($next_marker as $mark)
@@ -73,10 +73,8 @@  discard block
 block discarded – undo
73 73
     {
74 74
         if ($mode !== 'dashboard')
75 75
         {
76
-            $this->_view_toolbar->add_item
77
-            (
78
-                array
79
-                (
76
+            $this->_view_toolbar->add_item(
77
+                array(
80 78
                     MIDCOM_TOOLBAR_URL => '',
81 79
                     MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('dashboard'),
82 80
                     MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_left.png',
@@ -86,8 +84,7 @@  discard block
 block discarded – undo
86 84
         if (midcom::get()->auth->can_user_do('midgard:create', null, 'org_openpsa_invoices_invoice_dba'))
87 85
         {
88 86
             $workflow = $this->get_workflow('datamanager2');
89
-            $this->_view_toolbar->add_item($workflow->get_button('invoice/new/', array
90
-            (
87
+            $this->_view_toolbar->add_item($workflow->get_button('invoice/new/', array(
91 88
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('create invoice'),
92 89
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/printer.png',
93 90
             )));
@@ -106,10 +103,8 @@  discard block
 block discarded – undo
106 103
 
107 104
             if (sizeof($results) == 1)
108 105
             {
109
-                $toolbar->add_item
110
-                (
111
-                    array
112
-                    (
106
+                $toolbar->add_item(
107
+                    array(
113 108
                         MIDCOM_TOOLBAR_URL => $urlprefix . key($results) . '/',
114 109
                         MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('previous'),
115 110
                         MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/back.png',
@@ -129,10 +124,8 @@  discard block
 block discarded – undo
129 124
 
130 125
             if (sizeof($results) == 1)
131 126
             {
132
-                $toolbar->add_item
133
-                (
134
-                    array
135
-                    (
127
+                $toolbar->add_item(
128
+                    array(
136 129
                         MIDCOM_TOOLBAR_URL => $urlprefix . key($results) . '/',
137 130
                         MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('next'),
138 131
                         MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/next.png',
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/status.php 1 patch
Spacing   +9 added lines, -16 removed lines patch added patch discarded remove patch
@@ -115,8 +115,7 @@  discard block
 block discarded – undo
115 115
             $cancelation_invoice = new org_openpsa_invoices_invoice_dba($this->invoice->cancelationInvoice);
116 116
             $cancelation_invoice_link = $prefix . 'invoice/' . $cancelation_invoice->guid . '/';
117 117
             $cancelation_invoice_link = "<a href=\"" . $cancelation_invoice_link . "\">" . $this->l10n->get('invoice') . " " . $cancelation_invoice->get_label() . "</a>";
118
-            $entries[] = array
119
-            (
118
+            $entries[] = array(
120 119
                 'timestamp' => $cancelation_invoice->metadata->created,
121 120
                 'message' => sprintf($this->l10n->get('invoice got canceled by %s'), $cancelation_invoice_link),
122 121
                 'order' => 4
@@ -124,20 +123,18 @@  discard block
 block discarded – undo
124 123
         }
125 124
         else if ($this->invoice->paid)
126 125
         {
127
-            $entries[] = array
128
-            (
126
+            $entries[] = array(
129 127
                 'timestamp' => $this->invoice->paid,
130 128
                 'message' => sprintf($this->l10n->get('marked invoice %s paid'), ''),
131 129
                 'order' => 3
132 130
             );
133 131
         }
134
-        if (   $this->invoice->due
135
-            && (   (   $this->invoice->due < time()
132
+        if ($this->invoice->due
133
+            && (($this->invoice->due < time()
136 134
                     && $this->invoice->paid == 0)
137 135
                 || $this->invoice->due < $this->invoice->paid))
138 136
         {
139
-            $entries[] = array
140
-            (
137
+            $entries[] = array(
141 138
                 'timestamp' => $this->invoice->due,
142 139
                 'message' => $this->l10n->get('overdue'),
143 140
                 'order' => 2
@@ -148,8 +145,7 @@  discard block
 block discarded – undo
148 145
         {
149 146
             if ($mail_time = $this->invoice->get_parameter('org.openpsa.invoices', 'sent_by_mail'))
150 147
             {
151
-                $entries[] = array
152
-                (
148
+                $entries[] = array(
153 149
                     'timestamp' => $mail_time,
154 150
                     'message' => sprintf($this->l10n->get('marked invoice %s sent per mail'), ''),
155 151
                     'order' => 1
@@ -157,16 +153,14 @@  discard block
 block discarded – undo
157 153
             }
158 154
             else
159 155
             {
160
-                $entries[] = array
161
-                (
156
+                $entries[] = array(
162 157
                     'timestamp' => $this->invoice->sent,
163 158
                     'message' => sprintf($this->l10n->get('marked invoice %s sent'), ''),
164 159
                     'order' => 1
165 160
                 );
166 161
             }
167 162
         }
168
-        $entries[] = array
169
-        (
163
+        $entries[] = array(
170 164
             'timestamp' => $this->invoice->metadata->created,
171 165
             'message' => sprintf($this->l10n->get('invoice %s created'), ''),
172 166
             'order' => 0
@@ -183,8 +177,7 @@  discard block
 block discarded – undo
183 177
 
184 178
         foreach ($rows as $row)
185 179
         {
186
-            $entries[] = array
187
-            (
180
+            $entries[] = array(
188 181
                 'timestamp' => strtotime((string) $row['created']),
189 182
                 'message' => $row['title']
190 183
             );
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/scheduler.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         }
93 93
 
94 94
         // TODO: Warehouse management: create new order
95
-        if (   $this->_deliverable->end < $next_cycle_start
95
+        if ($this->_deliverable->end < $next_cycle_start
96 96
             && $this->_deliverable->end != 0)
97 97
         {
98 98
             debug_add('Do not register next cycle, the contract ends before');
@@ -112,8 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     private function _create_at_entry($cycle_number, $start)
114 114
     {
115
-        $args = array
116
-        (
115
+        $args = array(
117 116
             'deliverable' => $this->_deliverable->guid,
118 117
             'cycle'       => $cycle_number,
119 118
         );
@@ -344,7 +343,7 @@  discard block
 block discarded – undo
344 343
         {
345 344
             //If previous cycle was run at the end of the month, the new one should be at the end of the month as well
346 345
             $date = new DateTime(gmdate('Y-m-d', $time), new DateTimeZone('GMT'));
347
-            if (   $date->format('t') == $date->format('j')
346
+            if ($date->format('t') == $date->format('j')
348 347
                 && $new_date->format('t') != $new_date->format('j'))
349 348
             {
350 349
                 $new_date->setDate((int) $new_date->format('Y'), (int) $new_date->format('m'), (int) $new_date->format('t'));
@@ -415,11 +414,11 @@  discard block
 block discarded – undo
415 414
                 break;
416 415
             case 'q':
417 416
                 // Quarterly recurring subscription
418
-                $identifier = ceil(((int)$date->format('n')) / 4) . 'Q' . $date->format('y');
417
+                $identifier = ceil(((int) $date->format('n')) / 4) . 'Q' . $date->format('y');
419 418
                 break;
420 419
             case 'hy':
421 420
                 // Half-yearly recurring subscription
422
-                $identifier = ceil(((int)$date->format('n')) / 6) . '/' . $date->format('Y');
421
+                $identifier = ceil(((int) $date->format('n')) / 6) . '/' . $date->format('Y');
423 422
                 break;
424 423
             case 'y':
425 424
                 // Yearly recurring subscription
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/handler/scheduled.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
 
51 51
     public function get_row(midcom_core_dbaobject $at_entry)
52 52
     {
53
-        $invoice = array
54
-        (
53
+        $invoice = array(
55 54
             'time' => strftime('%Y-%m-%d %H:%M:%S', $at_entry->start),
56 55
             'month' => strftime('%B %Y', $at_entry->start),
57 56
             'index_month' => strftime('%Y-%m', $at_entry->start),
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/handler/crud.php 1 patch
Spacing   +18 added lines, -29 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function _load_schemadb()
19 19
     {
20 20
         $this->_schemadb = midcom_helper_datamanager2_schema::load_database($this->_config->get('schemadb'));
21
-        if (   $this->_mode == 'create'
21
+        if ($this->_mode == 'create'
22 22
             && count($this->_master->_handler['args']) == 1)
23 23
         {
24 24
             // We're creating invoice for chosen customer
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     private function _modify_schema()
41 41
     {
42
-        $fields =& $this->_schemadb['default']->fields;
42
+        $fields = & $this->_schemadb['default']->fields;
43 43
         // Fill VAT select
44 44
         $vat_array = explode(',', $this->_config->get('vat_percentages'));
45 45
         if (!empty($vat_array))
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     private function _populate_schema_customers_for_contact($contact_id)
102 102
     {
103
-        $fields =& $this->_schemadb['default']->fields;
103
+        $fields = & $this->_schemadb['default']->fields;
104 104
         $organizations = array(0 => '');
105 105
         $member_mc = org_openpsa_contacts_member_dba::new_collector('uid', $contact_id);
106 106
         $member_mc->add_constraint('gid.orgOpenpsaObtype', '>', org_openpsa_contacts_group_dba::MYCONTACTS);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
     private function _populate_schema_contacts_for_customer($customer)
125 125
     {
126
-        $fields =& $this->_schemadb['default']->fields;
126
+        $fields = & $this->_schemadb['default']->fields;
127 127
         // We know the customer company, present contact as a select widget
128 128
         $persons_array = array();
129 129
         $member_mc = midcom_db_member::new_collector('gid', $customer->id);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 $person = org_openpsa_contacts_person_dba::get_cached($member);
136 136
                 $persons_array[$person->id] = $person->rname;
137 137
             }
138
-            catch (midcom_error $e){}
138
+            catch (midcom_error $e) {}
139 139
         }
140 140
         asort($persons_array);
141 141
         $fields['customerContact']['widget'] = 'select';
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $this->_object = new org_openpsa_invoices_invoice_dba();
158 158
 
159
-        if (! $this->_object->create())
159
+        if (!$this->_object->create())
160 160
         {
161 161
             debug_print_r('We operated on this object:', $this->_object);
162 162
             throw new midcom_error("Failed to create a new invoice. Error: " . midcom_connection::get_error_string());
@@ -233,8 +233,7 @@  discard block
 block discarded – undo
233 233
         if ($this->_object->can_do('midgard:update'))
234 234
         {
235 235
             $workflow = $this->get_workflow('datamanager2');
236
-            $buttons[] = $workflow->get_button("invoice/edit/{$this->_object->guid}/", array
237
-            (
236
+            $buttons[] = $workflow->get_button("invoice/edit/{$this->_object->guid}/", array(
238 237
                 MIDCOM_TOOLBAR_ACCESSKEY => 'e',
239 238
             ));
240 239
         }
@@ -245,8 +244,7 @@  discard block
 block discarded – undo
245 244
             $buttons[] = $workflow->get_button("invoice/delete/{$this->_object->guid}/");
246 245
         }
247 246
 
248
-        $buttons[] = array
249
-        (
247
+        $buttons[] = array(
250 248
             MIDCOM_TOOLBAR_URL => "invoice/items/{$this->_object->guid}/",
251 249
             MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('edit invoice items'),
252 250
             MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/edit.png',
@@ -255,14 +253,12 @@  discard block
 block discarded – undo
255 253
 
256 254
         if (!$this->_object->sent)
257 255
         {
258
-            $buttons[] = array
259
-            (
256
+            $buttons[] = array(
260 257
                 MIDCOM_TOOLBAR_URL => "invoice/process/",
261 258
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('mark sent'),
262 259
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_mail-reply.png',
263 260
                 MIDCOM_TOOLBAR_POST => true,
264
-                MIDCOM_TOOLBAR_POST_HIDDENARGS => array
265
-                (
261
+                MIDCOM_TOOLBAR_POST_HIDDENARGS => array(
266 262
                     'action' => 'mark_sent',
267 263
                     'id' => $this->_object->id,
268 264
                     'relocate' => true
@@ -272,14 +268,12 @@  discard block
 block discarded – undo
272 268
         }
273 269
         else if (!$this->_object->paid)
274 270
         {
275
-            $buttons[] = array
276
-            (
271
+            $buttons[] = array(
277 272
                 MIDCOM_TOOLBAR_URL => "invoice/process/",
278 273
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('mark paid'),
279 274
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/ok.png',
280 275
                 MIDCOM_TOOLBAR_POST => true,
281
-                MIDCOM_TOOLBAR_POST_HIDDENARGS => array
282
-                (
276
+                MIDCOM_TOOLBAR_POST_HIDDENARGS => array(
283 277
                     'action' => 'mark_paid',
284 278
                     'id' => $this->_object->id,
285 279
                     'relocate' => true
@@ -288,11 +282,10 @@  discard block
 block discarded – undo
288 282
             );
289 283
         }
290 284
 
291
-        if (   !$this->_object->paid
285
+        if (!$this->_object->paid
292 286
             && $this->_config->get('invoice_pdfbuilder_class'))
293 287
         {
294
-            $buttons[] = array
295
-            (
288
+            $buttons[] = array(
296 289
                 MIDCOM_TOOLBAR_URL => "invoice/pdf/{$this->_object->guid}/",
297 290
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('create pdf'),
298 291
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/printer.png',
@@ -301,14 +294,12 @@  discard block
 block discarded – undo
301 294
             $billing_data = $this->_object->get_billing_data();
302 295
             if (intval($billing_data->sendingoption) == 2)
303 296
             {
304
-                $buttons[] = array
305
-                (
297
+                $buttons[] = array(
306 298
                     MIDCOM_TOOLBAR_URL => "invoice/process/",
307 299
                     MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('mark sent_per_mail'),
308 300
                     MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_mail-reply.png',
309 301
                     MIDCOM_TOOLBAR_POST => true,
310
-                    MIDCOM_TOOLBAR_POST_HIDDENARGS => array
311
-                    (
302
+                    MIDCOM_TOOLBAR_POST_HIDDENARGS => array(
312 303
                         'action' => 'send_by_mail',
313 304
                         'id' => $this->_object->id,
314 305
                         'relocate' => true
@@ -320,14 +311,12 @@  discard block
 block discarded – undo
320 311
 
321 312
         if ($this->_object->is_cancelable())
322 313
         {
323
-            $buttons[] = array
324
-            (
314
+            $buttons[] = array(
325 315
                 MIDCOM_TOOLBAR_URL => "invoice/process/",
326 316
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n->get('create cancelation'),
327 317
                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/cancel.png',
328 318
                 MIDCOM_TOOLBAR_POST => true,
329
-                MIDCOM_TOOLBAR_POST_HIDDENARGS => array
330
-                (
319
+                MIDCOM_TOOLBAR_POST_HIDDENARGS => array(
331 320
                     'action' => 'create_cancelation',
332 321
                     'id' => $this->_object->id,
333 322
                     'relocate' => true
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/handler/billingdata.php 1 patch
Spacing   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         $schemadb = midcom_helper_datamanager2_schema::load_database($this->_config->get('schemadb_billing_data'));
27 27
 
28
-        $fields =& $schemadb[$this->get_schema_name()]->fields;
28
+        $fields = & $schemadb[$this->get_schema_name()]->fields;
29 29
         // Fill VAT select
30 30
         $vat_array = explode(',', $this->_config->get('vat_percentages'));
31 31
         if (!empty($vat_array))
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $billing_data = new org_openpsa_invoices_billing_data_dba();
55 55
         $billing_data->linkGuid = $this->_linked_object->guid;
56
-        if (! $billing_data->create())
56
+        if (!$billing_data->create())
57 57
         {
58 58
             debug_print_r('We operated on this object:', $billing_data);
59 59
             throw new midcom_error("Failed to create a new billing_data. Error: " . midcom_connection::get_error_string());
@@ -82,11 +82,10 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         $workflow = $this->get_workflow('datamanager2', array('controller' => $data['controller']));
85
-        if (   $mode == 'edit'
85
+        if ($mode == 'edit'
86 86
             && $billing_data[0]->can_do('midgard:delete'))
87 87
         {
88
-            $delete = $this->get_workflow('delete', array
89
-            (
88
+            $delete = $this->get_workflow('delete', array(
90 89
                 'object' => $billing_data[0],
91 90
                 'label' => $this->_l10n->get('billing data')
92 91
             ));
@@ -109,8 +108,7 @@  discard block
 block discarded – undo
109 108
         $billing_data->require_do('midgard:delete');
110 109
         $this->_linked_object = midcom::get()->dbfactory->get_object_by_guid($billing_data->linkGuid);
111 110
 
112
-        $workflow = $this->get_workflow('delete', array
113
-        (
111
+        $workflow = $this->get_workflow('delete', array(
114 112
             'object' => $billing_data,
115 113
             'success_url' => $this->get_relocate_url()
116 114
         ));
Please login to merge, or discard this patch.