@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | private function findByBaseName(string $baseName) |
174 | 174 | { |
175 | 175 | return Manager::instance()->getCollection()->findByCallback( |
176 | - function (PharInvocation $candidate) use ($baseName) { |
|
176 | + function(PharInvocation $candidate) use ($baseName) { |
|
177 | 177 | return $candidate->getBaseName() === $baseName; |
178 | 178 | }, |
179 | 179 | true |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | return null; |
230 | 230 | } |
231 | 231 | return Manager::instance()->getCollection()->findByCallback( |
232 | - function (PharInvocation $candidate) use ($possibleAlias) { |
|
232 | + function(PharInvocation $candidate) use ($possibleAlias) { |
|
233 | 233 | return $candidate->isConfirmed() && $candidate->getAlias() === $possibleAlias; |
234 | 234 | }, |
235 | 235 | true |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | return true; |
89 | 89 | } |
90 | 90 | return $this->findByCallback( |
91 | - function (PharInvocation $candidate) use ($invocation) { |
|
91 | + function(PharInvocation $candidate) use ($invocation) { |
|
92 | 92 | return $candidate->getBaseName() === $invocation->getBaseName(); |
93 | 93 | } |
94 | 94 | ) === null; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | return true; |
109 | 109 | } |
110 | 110 | return $this->findByCallback( |
111 | - function (PharInvocation $candidate) use ($invocation) { |
|
111 | + function(PharInvocation $candidate) use ($invocation) { |
|
112 | 112 | return $candidate->equals($invocation); |
113 | 113 | } |
114 | 114 | ) === null; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | private function triggerDuplicateAliasWarning(PharInvocation $invocation) |
124 | 124 | { |
125 | 125 | $sameAliasInvocation = $this->findByCallback( |
126 | - function (PharInvocation $candidate) use ($invocation) { |
|
126 | + function(PharInvocation $candidate) use ($invocation) { |
|
127 | 127 | return $candidate->isConfirmed() === $invocation->isConfirmed() |
128 | 128 | && $candidate->getAlias() === $invocation->getAlias(); |
129 | 129 | }, |