Passed
Pull Request — master (#46)
by Teye
16:01
created
src/Concerns/HasIntervals.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      * @return $this
51 51
      * @throws \Exception
52 52
      */
53
-    public function interval(DateTimeInterface|int|string $start, DateTimeInterface|int|string $stop = null): self
53
+    public function interval(DateTimeInterface | int | string $start, DateTimeInterface | int | string $stop = null): self
54 54
     {
55 55
         $this->intervals[] = new Interval($start, $stop);
56 56
 
Please login to merge, or discard this patch.
src/Aggregations/FirstAggregator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @param string          $outputName When not given, we will use the same name as the metric.
15 15
      * @param string|DataType $type       The type of field. This can either be "long", "float", "double" or "string"
16 16
      */
17
-    public function __construct(string $metricName, string $outputName = '', string|DataType $type = DataType::LONG)
17
+    public function __construct(string $metricName, string $outputName = '', string | DataType $type = DataType::LONG)
18 18
     {
19 19
         $this->type       = is_string($type) ? DataType::from(strtolower($type)) : $type;
20 20
         $this->metricName = $metricName;
Please login to merge, or discard this patch.
src/Aggregations/MethodAggregator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @param string|DataType $type                         The type of field. This can either be "long", "float" or
23 23
      *                                                      "double"
24 24
      */
25
-    public function __construct(string $metricName, string $outputName = '', string|DataType $type = DataType::LONG)
25
+    public function __construct(string $metricName, string $outputName = '', string | DataType $type = DataType::LONG)
26 26
     {
27 27
         if (is_string($type)) {
28 28
             $type = DataType::from(strtolower($type));
Please login to merge, or discard this patch.
src/Aggregations/AnyAggregator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function __construct(
24 24
         string $metricName,
25 25
         string $outputName = '',
26
-        string|DataType $type = DataType::LONG,
26
+        string | DataType $type = DataType::LONG,
27 27
         int $maxStringBytes = null
28 28
     ) {
29 29
         if (is_string($type)) {
Please login to merge, or discard this patch.
src/Aggregations/LastAggregator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      * @param string|DataType $type       The type of field. This can either be "long", "float", "double" or "string"
16 16
      *
17 17
      */
18
-    public function __construct(string $metricName, string $outputName = '', string|DataType $type = DataType::LONG)
18
+    public function __construct(string $metricName, string $outputName = '', string | DataType $type = DataType::LONG)
19 19
     {
20 20
         $this->type       = is_string($type) ? DataType::from(strtolower($type)) : $type;
21 21
         $this->metricName = $metricName;
Please login to merge, or discard this patch.