Passed
Push — master ( 826a3d...cef8d3 )
by Allan
02:36 queued 10s
created
src/Utils/DataUtils.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
     public function prefixArrayValues(array $data, $prefix)
21 21
     {
22 22
         return array_map(
23
-            function ($value) use ($prefix) {
23
+            function($value) use ($prefix) {
24 24
                 return $prefix . $value;
25 25
             },
26 26
             $data
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $whitelist = array_filter(
33 33
             array_keys($data),
34
-            function ($key) use ($prefix) {
34
+            function($key) use ($prefix) {
35 35
                 return strpos($key, $prefix) !== 0;
36 36
             }
37 37
         );
Please login to merge, or discard this patch.
src/Utils/FilterUtils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
         $escapeChar = chr('27');
17 17
 
18
-        array_map(function ($filter) use ($delimiter, &$semanticGroups, $escapeChar) {
18
+        array_map(function($filter) use ($delimiter, &$semanticGroups, $escapeChar) {
19 19
             $isNegation = strpos($filter, FilterUtils::NEGATION_PREFIX) === 0;
20 20
 
21 21
             $escapedFilter = trim(
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function invertRules(array $filters)
53 53
     {
54
-        return array_map(function ($filter) {
54
+        return array_map(function($filter) {
55 55
             $isNegation = substr($filter, 0, 1) == FilterUtils::NEGATION_PREFIX;
56 56
 
57 57
             return (!$isNegation ? FilterUtils::NEGATION_PREFIX : '') .
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function trimRules(array $filters)
63 63
     {
64
-        return array_map(function ($filter) {
64
+        return array_map(function($filter) {
65 65
             return ltrim($filter, FilterUtils::NEGATION_PREFIX);
66 66
         }, $filters);
67 67
     }
Please login to merge, or discard this patch.
src/Utils/TemplateUtils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         $result = array();
13 13
 
14 14
         foreach ($patterns as $pattern) {
15
-            preg_match_all('/' . sprintf($pattern, '([^\}]+)'). '/', $template, $usedVariables);
15
+            preg_match_all('/' . sprintf($pattern, '([^\}]+)') . '/', $template, $usedVariables);
16 16
 
17 17
             foreach ($usedVariables[1] as $variableName) {
18 18
                 if (!preg_match_all('/\(([^\)]+)\)/', $variableName, $valueRules)) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         
64 64
         foreach ($patterns as $format => $escaper) {
65 65
             $updateGroups[] = array_combine(
66
-                array_map(function ($item) use ($format) {
66
+                array_map(function($item) use ($format) {
67 67
                     return sprintf($format, $item);
68 68
                 }, array_keys($arguments)),
69 69
                 $escaper ? array_map($escaper, $arguments) : $arguments
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         
75 75
         $names = array_keys($variables);
76 76
         
77
-        $values = array_map(function ($value) {
77
+        $values = array_map(function($value) {
78 78
             return trim(
79 79
                 strtok($value, PHP_EOL)
80 80
             );
Please login to merge, or discard this patch.
modules/proxy-plugin/src/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 /**
3 3
  * Copyright © Vaimo Group. All rights reserved.
4 4
  * See LICENSE_VAIMO.txt for license details.
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     
72 72
     private function composePath()
73 73
     {
74
-        $pathSegments = array_map(function ($item) {
74
+        $pathSegments = array_map(function($item) {
75 75
             return rtrim($item, \DIRECTORY_SEPARATOR);
76 76
         }, func_get_args());
77 77
 
Please login to merge, or discard this patch.