@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | if ($dependsPatterns) { |
26 | 26 | $matches = array_filter( |
27 | 27 | array_keys($dependsPatterns), |
28 | - function ($pattern) use ($target) { |
|
28 | + function($pattern) use ($target) { |
|
29 | 29 | return preg_match('#' . $pattern . '#', $target); |
30 | 30 | } |
31 | 31 | ); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | - $patterns = array_map(function ($candidate) { |
|
68 | + $patterns = array_map(function($candidate) { |
|
69 | 69 | return trim($candidate, '*') |
70 | 70 | ? str_replace(chr(32), '.*', preg_quote(str_replace('*', chr(32), $candidate), '#')) |
71 | 71 | : preg_quote($candidate); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | $output = ''; |
47 | 47 | |
48 | - $outputHandler = function ($type, $data) use ($logger, &$output) { |
|
48 | + $outputHandler = function($type, $data) use ($logger, &$output) { |
|
49 | 49 | $output .= $data; |
50 | 50 | |
51 | 51 | $logger->writeVerbose( |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | { |
14 | 14 | $groups = $this->createTargetsList($patches); |
15 | 15 | |
16 | - return array_map(function ($group) { |
|
17 | - $fingerprints = array_map(function ($item) { |
|
16 | + return array_map(function($group) { |
|
17 | + $fingerprints = array_map(function($item) { |
|
18 | 18 | return sprintf( |
19 | 19 | '%s, %s:%s', |
20 | 20 | isset($item[Patch::LABEL]) ? $item[Patch::LABEL] : '{no label}', |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | }, $group); |
25 | 25 | |
26 | 26 | $keys = array_map( |
27 | - function ($key, $item) { |
|
27 | + function($key, $item) { |
|
28 | 28 | return sprintf( |
29 | 29 | '%s%s%s', |
30 | 30 | $item[Patch::OWNER], |
@@ -30,7 +30,7 @@ |
||
30 | 30 | return $this->patchListUtils->compareLists( |
31 | 31 | $patches, |
32 | 32 | $repositoryState, |
33 | - function ($packagePatches, $packageState) use ($patchDataUtils) { |
|
33 | + function($packagePatches, $packageState) use ($patchDataUtils) { |
|
34 | 34 | return $packagePatches |
35 | 35 | || $patchDataUtils->shouldReinstall($packageState, $packagePatches); |
36 | 36 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | return $this->patchListUtils->compareLists( |
31 | 31 | $patches, |
32 | 32 | $repositoryState, |
33 | - function ($packagePatches, $packageState) use ($patchDataUtils) { |
|
33 | + function($packagePatches, $packageState) use ($patchDataUtils) { |
|
34 | 34 | return $patchDataUtils->shouldReinstall( |
35 | 35 | $packageState, |
36 | 36 | $packagePatches |
@@ -258,7 +258,7 @@ |
||
258 | 258 | private function normalizeDependencies($dependsList) |
259 | 259 | { |
260 | 260 | $dependsNormalized = array_map( |
261 | - function ($item) { |
|
261 | + function($item) { |
|
262 | 262 | $valueParts = explode(':', $item); |
263 | 263 | |
264 | 264 | return array( |
@@ -50,7 +50,7 @@ |
||
50 | 50 | { |
51 | 51 | $rootPackages = array_filter( |
52 | 52 | $packagesByName, |
53 | - function ($package) { |
|
53 | + function($package) { |
|
54 | 54 | return $package instanceof \Composer\Package\RootPackage; |
55 | 55 | } |
56 | 56 | ); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | return array_combine( |
42 | 42 | array_map( |
43 | - function (\Composer\Package\PackageInterface $package) { |
|
43 | + function(\Composer\Package\PackageInterface $package) { |
|
44 | 44 | return $package->getName(); |
45 | 45 | }, |
46 | 46 | $packages |
@@ -10,7 +10,7 @@ |
||
10 | 10 | public function composePath() |
11 | 11 | { |
12 | 12 | $pathSegments = array_map( |
13 | - function ($item) { |
|
13 | + function($item) { |
|
14 | 14 | return rtrim($item, DIRECTORY_SEPARATOR); |
15 | 15 | }, |
16 | 16 | func_get_args() |