Passed
Push — master ( 936202...c84ff9 )
by Andreas
09:27
created
lib/org/openpsa/widgets/ui.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@
 block discarded – undo
103 103
         if (!empty($guid)) {
104 104
             //pass the urls & titles for the tabs
105 105
             $tabdata[] = [
106
-               'url' => '__mfa/org.openpsa.relatedto/journalentry/' . $guid . '/',
107
-               'title' => midcom::get()->i18n->get_string('journal entries', 'org.openpsa.relatedto'),
106
+                'url' => '__mfa/org.openpsa.relatedto/journalentry/' . $guid . '/',
107
+                'title' => midcom::get()->i18n->get_string('journal entries', 'org.openpsa.relatedto'),
108 108
             ];
109 109
             $tabdata[] = [
110
-               'url' => '__mfa/org.openpsa.relatedto/render/' . $guid . '/both/',
111
-               'title' => midcom::get()->i18n->get_string('related objects', 'org.openpsa.relatedto'),
110
+                'url' => '__mfa/org.openpsa.relatedto/render/' . $guid . '/both/',
111
+                'title' => midcom::get()->i18n->get_string('related objects', 'org.openpsa.relatedto'),
112 112
             ];
113 113
         }
114 114
 
Please login to merge, or discard this patch.
lib/org/openpsa/sales/style/show-offers.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -5,29 +5,29 @@
 block discarded – undo
5 5
     ?>
6 6
     <div class="area org_openpsa_helper_box"><h3><?php echo $data['l10n']->get('offers'); ?></h3>
7 7
     	<ul><?php
8
-         foreach ($data['offers'] as $offer) {
9
-             echo '<li><span class="org_openpsa_helpers_fileinfo">';
10
-             $attachment = $offer->get_file();
11
-             $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]);
12
-             $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]);
8
+            foreach ($data['offers'] as $offer) {
9
+                echo '<li><span class="org_openpsa_helpers_fileinfo">';
10
+                $attachment = $offer->get_file();
11
+                $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]);
12
+                $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]);
13 13
 
14
-             if (!empty($attachment)) {
15
-                 $url = midcom_db_attachment::get_url($attachment);
16
-                 echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>';
17
-             }
18
-             echo '<span class="info">';
19
-             echo '<span class="filename">' . $offer->get_label();
20
-             echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>';
21
-             echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>';
22
-             echo "</span>\n";
23
-             if (!empty($attachment)) {
24
-                 echo ' <span class="date">' . $formatter->datetime($attachment->metadata->revised) . '</span> ';
25
-                 $person_card = org_openpsa_widgets_contact::get($attachment->metadata->revisor);
26
-                 echo $person_card->show_inline();
27
-             }
28
-             echo "</span></span></li>\n";
29
-         }
30
-         ?>
14
+                if (!empty($attachment)) {
15
+                    $url = midcom_db_attachment::get_url($attachment);
16
+                    echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>';
17
+                }
18
+                echo '<span class="info">';
19
+                echo '<span class="filename">' . $offer->get_label();
20
+                echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>';
21
+                echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>';
22
+                echo "</span>\n";
23
+                if (!empty($attachment)) {
24
+                    echo ' <span class="date">' . $formatter->datetime($attachment->metadata->revised) . '</span> ';
25
+                    $person_card = org_openpsa_widgets_contact::get($attachment->metadata->revisor);
26
+                    echo $person_card->show_inline();
27
+                }
28
+                echo "</span></span></li>\n";
29
+            }
30
+            ?>
31 31
      </ul>
32 32
     </div>
33 33
 <?php  } ?>
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/billing/data.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     public static function get_by_object(org_openpsa_invoices_interfaces_customer $object) : self
62 62
     {
63 63
         if (   !($bd = self::get_billing_data(org_openpsa_contacts_group_dba::class, $object->customer))
64
-               // check if the customerContact is set and has invoice_data
64
+                // check if the customerContact is set and has invoice_data
65 65
             && !($bd = self::get_billing_data(org_openpsa_contacts_person_dba::class, $object->customerContact))) {
66 66
             $bd = new self();
67 67
             $due = midcom_baseclasses_components_configuration::get('org.openpsa.invoices', 'config')->get('default_due_days');
Please login to merge, or discard this patch.
lib/org/openpsa/sales/style/show-deliverable-subscription.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,12 +74,12 @@
 block discarded – undo
74 74
                         <tr>
75 75
                           <td class="title"><?php echo $data['l10n']->get('cost'); ?></td>
76 76
                           <?php
77
-                          if ($data['deliverable']->costType == '%') { ?>
77
+                            if ($data['deliverable']->costType == '%') { ?>
78 78
                               <td class="numeric"><?php echo $view['costPerUnit']; ?> %</td>
79 79
                               <td class="numeric">&nbsp;</td>
80 80
                               <td class="numeric">&nbsp;</td>
81 81
                           <?php
82
-                          } else { ?>
82
+                            } else { ?>
83 83
                               <td class="numeric"><?php echo $formatter->number($data['deliverable']->costPerUnit); ?></td>
84 84
                               <td class="numeric"><?php echo $view['plannedUnits']; ?></td>
85 85
                               <td class="numeric"><?php echo $view['units']; ?></td>
Please login to merge, or discard this patch.
lib/org/openpsa/sales/style/show-deliverable.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,17 +65,17 @@
 block discarded – undo
65 65
                         <tr>
66 66
                           <td class="title"><?php echo $data['l10n']->get('cost'); ?></td>
67 67
                           <?php
68
-                          if ($data['deliverable']->costType == '%') { ?>
68
+                            if ($data['deliverable']->costType == '%') { ?>
69 69
                               <td class="numeric"><?php echo $view['costPerUnit']; ?> %</td>
70 70
                               <td class="numeric">&nbsp;</td>
71 71
                               <td class="numeric">&nbsp;</td>
72 72
                           <?php
73
-                          } else { ?>
73
+                            } else { ?>
74 74
                               <td class="numeric"><?php echo $formatter->number($data['deliverable']->costPerUnit); ?></td>
75 75
                               <td class="numeric"><?php echo $view['plannedUnits']; ?></td>
76 76
                               <td class="numeric"><?php echo $view['units']; ?></td>
77 77
                           <?php
78
-                          } ?>
78
+                            } ?>
79 79
                               <td class="numeric"><?php echo $formatter->number($data['deliverable']->cost); ?></td>
80 80
                         </tr>
81 81
                       </tbody>
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/sender/backend/email.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -148,13 +148,13 @@
 block discarded – undo
148 148
     }
149 149
 
150 150
     /**
151
-    * Inserts a link detector to the given HTML source. All outgoing
152
-    * HTTP links in the source HTML are replaced with the given
153
-    * link detector address so that the token "URL" is replaced with
154
-    * encoded form of the original link. It is expected that the link detector
155
-    * address points to a script that records the passed link and
156
-    * forwards the client to the real link target.
157
-    */
151
+     * Inserts a link detector to the given HTML source. All outgoing
152
+     * HTTP links in the source HTML are replaced with the given
153
+     * link detector address so that the token "URL" is replaced with
154
+     * encoded form of the original link. It is expected that the link detector
155
+     * address points to a script that records the passed link and
156
+     * forwards the client to the real link target.
157
+     */
158 158
     private function _insert_link_detector(string $html, string $address) : string
159 159
     {
160 160
         $address = addslashes($address);
Please login to merge, or discard this patch.
lib/org/openpsa/user/style/show-person-account.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             echo '<span class="toolbar_label">' . $data['l10n_midcom']->get('delete') . '</span></a></li>';
24 24
             if (    midcom::get()->config->get('auth_allow_trusted') === true
25 25
                  && $data['person']->can_do('org.openpsa.user:su')) {
26
-                 echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '">' . $data['l10n']->get('switch to user') . "</a></li>\n";
26
+                    echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '">' . $data['l10n']->get('switch to user') . "</a></li>\n";
27 27
             }
28 28
             echo "</ul>\n";
29 29
         }
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/midcom/indexer.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
 use midcom\datamanager\indexer\client;
10 10
 use midcom\datamanager\datamanager;
11 11
 
12
- /**
13
- * Indexer client class
14
- *
15
- * @package org.openpsa.invoices
16
- */
12
+    /**
13
+     * Indexer client class
14
+     *
15
+     * @package org.openpsa.invoices
16
+     */
17 17
 class org_openpsa_invoices_midcom_indexer extends client
18 18
 {
19 19
     public function prepare_document(midcom_services_indexer_document $document, datamanager $dm)
Please login to merge, or discard this patch.
src/midcom/dba/parameters.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         if (   !$this->can_do('midgard:update')
205 205
             || !$this->can_do('midgard:parameters')) {
206 206
             debug_add("Failed to set parameters, midgard:update or midgard:parameters on " . static::class . " {$this->guid} not granted for the current user.",
207
-                  MIDCOM_LOG_ERROR);
207
+                    MIDCOM_LOG_ERROR);
208 208
             midcom_connection::set_error(MGD_ERR_ACCESS_DENIED);
209 209
             return false;
210 210
         }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         if (   !$this->can_do('midgard:update')
249 249
             || !$this->can_do('midgard:parameters')) {
250 250
             debug_add("Failed to delete parameters, midgard:update or midgard:parameters on " . static::class . " {$this->guid} not granted for the current user.",
251
-                  MIDCOM_LOG_ERROR);
251
+                    MIDCOM_LOG_ERROR);
252 252
             midcom_connection::set_error(MGD_ERR_ACCESS_DENIED);
253 253
             return false;
254 254
         }
Please login to merge, or discard this patch.