Passed
Pull Request — master (#193)
by
unknown
20:53
created
lib/org/openpsa/user/style/show-person-account.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             echo '<span class="toolbar_label">' . $data['l10n_midcom']->get('delete') . '</span></a></li>';
27 27
             if (    midcom::get()->config->get('auth_allow_trusted') === true
28 28
                  && $data['person']->can_do('org.openpsa.user:su')) {
29
-                 echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '" />' . $data['l10n']->get('switch to user') . "</a></li>\n";
29
+                    echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '" />' . $data['l10n']->get('switch to user') . "</a></li>\n";
30 30
             }
31 31
             echo "</ul>\n";
32 32
         }
Please login to merge, or discard this patch.
lib/org/openpsa/sales/style/show-salesproject.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -40,36 +40,36 @@
 block discarded – undo
40 40
              <div class="value"><?php echo $formatter->number($salesproject->profit); ?></div>
41 41
             </div>
42 42
             <?php
43
-             $owner_card = org_openpsa_widgets_contact::get($salesproject->owner);
43
+                $owner_card = org_openpsa_widgets_contact::get($salesproject->owner);
44 44
             ?>
45 45
             <div class="field">
46 46
              <div class="title"><?php echo $data['l10n']->get('owner'); ?></div>
47 47
              <div class="value"><?php echo $owner_card->show_inline(); ?></div>
48 48
             </div>
49 49
          <?php
50
-         if (!empty($data['offers'])) {
51
-             $wf = new midcom\workflow\datamanager;
52
-         ?>
50
+            if (!empty($data['offers'])) {
51
+                $wf = new midcom\workflow\datamanager;
52
+            ?>
53 53
          <div class="field">
54 54
          <div class="title"><?php echo $data['l10n']->get('pdf file'); ?></div>
55 55
              <div class="value"><?php
56
-                 foreach ($data['offers'] as $offer) {
57
-                     echo '<span class="org_openpsa_helpers_fileinfo">';
58
-                     $attachment = $offer->get_file();
59
-                     $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]);
60
-                     $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]);
61
-                     if (!empty($attachment)) {
62
-                         $url = midcom_db_attachment::get_url($attachment);
63
-                         echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>';
64
-                     }
65
-                     echo '<span class="filename">' . $offer->get_number();
66
-                     echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>';
67
-                     echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>';
68
-                     echo "</span>\n";
69
-                     echo ' <span class="updated">' . $formatter->datetime($offer->metadata->revised) . '</span>';
70
-                     echo "</span>\n";
71
-                 }
72
-                 ?>
56
+                    foreach ($data['offers'] as $offer) {
57
+                        echo '<span class="org_openpsa_helpers_fileinfo">';
58
+                        $attachment = $offer->get_file();
59
+                        $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]);
60
+                        $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]);
61
+                        if (!empty($attachment)) {
62
+                            $url = midcom_db_attachment::get_url($attachment);
63
+                            echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>';
64
+                        }
65
+                        echo '<span class="filename">' . $offer->get_number();
66
+                        echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>';
67
+                        echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>';
68
+                        echo "</span>\n";
69
+                        echo ' <span class="updated">' . $formatter->datetime($offer->metadata->revised) . '</span>';
70
+                        echo "</span>\n";
71
+                    }
72
+                    ?>
73 73
 	         </div>
74 74
             </div>
75 75
             <?php  } ?>
Please login to merge, or discard this patch.