Passed
Push — master ( 4acbf9...965c3e )
by Andreas
27:16
created
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->amount($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->amount($data['deliverable']->cost); ?></td>
80 80
                         </tr>
81 81
                       </tbody>
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->amount($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/midcom/services/i18n/formatter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $this->language = $language;
24 24
     }
25 25
 
26
-    public function number(int|float $value, int $precision = 2)
26
+    public function number(int | float $value, int $precision = 2)
27 27
     {
28 28
         // The fallback implementation in Intl only supports DECIMAL, so we hardcode the style here..
29 29
         $formatter = new NumberFormatter($this->get_locale(), NumberFormatter::DECIMAL);
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         return $formatter->format($value);
32 32
     }
33 33
 
34
-    public function amount(int|float $value)
34
+    public function amount(int | float $value)
35 35
     {
36 36
         // The fallback implementation in Intl only supports DECIMAL, so we hardcode the style here..
37 37
         $formatter = new NumberFormatter($this->get_locale(), NumberFormatter::DECIMAL);
@@ -40,24 +40,24 @@  discard block
 block discarded – undo
40 40
         return $formatter->format($value);
41 41
     }
42 42
 
43
-    public function date(int|string|null|DateTimeInterface $value = null, int|string $dateformat = 'medium')
43
+    public function date(int | string | null | DateTimeInterface $value = null, int | string $dateformat = 'medium')
44 44
     {
45 45
         return $this->datetime($value, $dateformat, IntlDateFormatter::NONE);
46 46
     }
47 47
 
48
-    public function time(int|string|null|DateTimeInterface $value = null, int|string $timeformat = 'short')
48
+    public function time(int | string | null | DateTimeInterface $value = null, int | string $timeformat = 'short')
49 49
     {
50 50
         return $this->datetime($value, IntlDateFormatter::NONE, $timeformat);
51 51
     }
52 52
 
53
-    public function datetime(int|string|null|DateTimeInterface $value = null, int|string $dateformat = 'medium', int|string $timeformat = 'short')
53
+    public function datetime(int | string | null | DateTimeInterface $value = null, int | string $dateformat = 'medium', int | string $timeformat = 'short')
54 54
     {
55 55
         $value ??= time();
56 56
         $formatter = new IntlDateFormatter($this->get_locale(), $this->constant($dateformat), $this->constant($timeformat));
57 57
         return $formatter->format($value);
58 58
     }
59 59
 
60
-    public function customdate(int|string|DateTimeInterface $value, string $pattern)
60
+    public function customdate(int | string | DateTimeInterface $value, string $pattern)
61 61
     {
62 62
         $formatter = new IntlDateFormatter($this->get_locale(), IntlDateFormatter::FULL, IntlDateFormatter::FULL);
63 63
         $formatter->setPattern($pattern);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         return $ranger->format($start, $end);
80 80
     }
81 81
 
82
-    private function constant(int|string $input) : int
82
+    private function constant(int | string $input) : int
83 83
     {
84 84
         if (is_int($input)) {
85 85
             return $input;
Please login to merge, or discard this patch.