Passed
Push — master ( a4538a...6ac431 )
by Andreas
19:26
created
admin/asgard/style/midgard_admin_asgard_object_attachments_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
                 $workflow = new midcom\workflow\delete(['object' => $file, 'label' => $file->name]);
22 22
                 $revisor = midcom::get()->auth->get_user($file->metadata->revisor);
23 23
                 $class = '';
24
-                if (   isset($data['file'])
24
+                if (isset($data['file'])
25 25
                     && $file->name == $data['file']->name) {
26 26
                     $class = ' class="selected"';
27 27
                 }
Please login to merge, or discard this patch.
lib/midcom/helper/imagepopup/style/midcom_helper_imagepopup_search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
     <div class="search-form">
17 17
         <form method='get' name='midcom_helper_imagepopup_search_form' action='&(url);' class='midcom.helper.imagepopup'>
18 18
             <label for="midcom_helper_imagepopup_query">
19
-                <?php echo $data['l10n']->get('query');?>:
19
+                <?php echo $data['l10n']->get('query'); ?>:
20 20
                 <input type='text' size='60' name='query' id='midcom_helper_imagepopup_query' value='&(query);' />
21 21
             </label>
22
-            <input type='submit' name='submit' value='<?php echo $data['l10n']->get('search');?>' />
22
+            <input type='submit' name='submit' value='<?php echo $data['l10n']->get('search'); ?>' />
23 23
         </form>
24 24
     </div>
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
lib/midcom/helper/search/style/advanced_form.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 
20 20
 <table cellspacing="0" cellpadding="3" border="0">
21 21
     <tr>
22
-        <td><?php echo $data['l10n']->get('query');?>:</td>
22
+        <td><?php echo $data['l10n']->get('query'); ?>:</td>
23 23
         <td><input type='text' style="width: 20em;" name='query' value=&(query:h); /></td>
24 24
     </tr>
25 25
     <tr>
26
-        <td><?php echo $data['l10n']->get('limit search by topic tree');?>:</td>
26
+        <td><?php echo $data['l10n']->get('limit search by topic tree'); ?>:</td>
27 27
         <td>
28 28
             <select name="topic" size="1" style="width: 20em;">
29 29
 <?php
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         </td>
39 39
     </tr>
40 40
     <tr>
41
-        <td><?php echo $data['l10n']->get('limit search by content type');?>:</td>
41
+        <td><?php echo $data['l10n']->get('limit search by content type'); ?>:</td>
42 42
         <td>
43 43
             <select name="component" size="1" style="width: 20em;">
44 44
 <?php
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         </td>
54 54
     </tr>
55 55
     <tr>
56
-        <td><?php echo $data['l10n']->get('limit search by last modified');?>:</td>
56
+        <td><?php echo $data['l10n']->get('limit search by last modified'); ?>:</td>
57 57
         <td>
58 58
             <select name="lastmodified" size="1" style="width: 20em;">
59 59
 <?php
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         </td>
69 69
     </tr>
70 70
     <tr>
71
-        <td colspan="2"><input type='submit' name='submit' value='<?php echo $data['l10n']->get('search');?>' /></td>
71
+        <td colspan="2"><input type='submit' name='submit' value='<?php echo $data['l10n']->get('search'); ?>' /></td>
72 72
     </tr>
73 73
 </table>
74 74
 </form>
Please login to merge, or discard this patch.
lib/midcom/helper/search/style/no_match.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1
-<h1><?php echo $data['topic']->extra;?></h1>
1
+<h1><?php echo $data['topic']->extra; ?></h1>
2 2
 
3 3
 <div class="midcom_helper_search_form">
4 4
   <?php midcom_show_style("{$data['type']}_form"); ?>
5 5
 </div>
6 6
 
7
-<h2><?php echo $data['l10n']->get('search results');?>:</h2>
7
+<h2><?php echo $data['l10n']->get('search results'); ?>:</h2>
8 8
 
9 9
 <div class="midcom_helper_search_results">
10 10
 <p><?php echo $data['l10n']->get('your query returned no results'); ?></p>
11 11
 </div>
12 12
 
13
-<h2><?php echo $data['l10n']->get('search hints');?>:</h2>
13
+<h2><?php echo $data['l10n']->get('search hints'); ?>:</h2>
14 14
 <p><?php
15 15
     $string = 'search hints ' . $data['config']->get('search_help_message');
16 16
     echo $data['l10n']->get($string);
Please login to merge, or discard this patch.
lib/midcom/helper/search/style/search_form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1
-<h1><?php echo $data['topic']->extra;?></h1>
1
+<h1><?php echo $data['topic']->extra; ?></h1>
2 2
 
3 3
 <?php midcom_show_style("{$data['type']}_form"); ?>
4 4
 
5
-<h2><?php echo $data['l10n']->get('search hints');?>:</h2>
5
+<h2><?php echo $data['l10n']->get('search hints'); ?>:</h2>
6 6
 <p><?php
7 7
     $string = 'search hints ' . $data['config']->get('search_help_message');
8 8
     echo $data['l10n']->get($string);
Please login to merge, or discard this patch.
lib/midcom/helper/search/style/results.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1
-<h1><?php echo $data['topic']->extra;?></h1>
1
+<h1><?php echo $data['topic']->extra; ?></h1>
2 2
 
3 3
 <div class="midcom_helper_search_form">
4 4
   <?php midcom_show_style("{$data['type']}_form"); ?>
5 5
 </div>
6 6
 
7
-<h2><?php echo $data['l10n']->get('search results');?>:</h2>
7
+<h2><?php echo $data['l10n']->get('search results'); ?>:</h2>
8 8
 <?php
9 9
 midcom_show_style('result_summary');
10 10
 midcom_show_style('result_nav');
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 midcom_show_style('result_nav');
20 20
 ?>
21 21
 
22
-<h2><?php echo $data['l10n']->get('search hints');?>:</h2>
22
+<h2><?php echo $data['l10n']->get('search hints'); ?>:</h2>
23 23
 <p><?php
24 24
     $string = 'search hints ' . $data['config']->get('search_help_message');
25 25
     echo $data['l10n']->get($string);
Please login to merge, or discard this patch.
lib/org/openpsa/reports/style/generic_query_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <div class="wide">
2
-    <?php  $data['controller']->display_form();  ?>
2
+    <?php  $data['controller']->display_form(); ?>
3 3
     <!-- To open the report in new window we need to set the target via JS -->
4 4
     <script type="text/javascript">
5 5
     $('.datamanager2 button[type="submit"].save').attr('formtarget', '_blank');
Please login to merge, or discard this patch.
lib/org/openpsa/sales/validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         if ($result === true) {
21 21
             $result = [];
22 22
         }
23
-        if (   empty($fields['end'])
23
+        if (empty($fields['end'])
24 24
             && empty($fields['continuous'])) {
25 25
             $result['end'] = midcom::get()->i18n->get_string('select either end date or continuous', 'org.openpsa.sales');
26 26
         }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function validate_units(array $fields)
34 34
     {
35 35
         $result = [];
36
-        if (   empty($fields['invoiceByActualUnits'])
36
+        if (empty($fields['invoiceByActualUnits'])
37 37
             && empty($fields['plannedUnits'])) {
38 38
             $result['plannedUnits'] = midcom::get()->i18n->get_string('select either planned units or invoice by actual units', 'org.openpsa.sales');
39 39
             return $result;
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/invoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
                 $invoice_item->pricePerUnit = $deliverable->pricePerUnit;
238 238
                 $invoice_item->deliverable = $deliverable->id;
239 239
                 //calculate price
240
-                if (   $deliverable->invoiceByActualUnits
240
+                if ($deliverable->invoiceByActualUnits
241 241
                     || $deliverable->plannedUnits == 0) {
242 242
                     $invoice_item->units = $hours;
243 243
                 } else {
Please login to merge, or discard this patch.