@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | public static function setPhpNativeClasses(array $nativeClasses): void |
130 | 130 | { |
131 | - self::$nativeClasses = array_map(function (string $className) { |
|
131 | + self::$nativeClasses = array_map(function(string $className) { |
|
132 | 132 | return substr($className, 0, 1) !== '\\' ? "\\{$className}" : $className; |
133 | 133 | }, $nativeClasses); |
134 | 134 | } |
@@ -136,10 +136,10 @@ discard block |
||
136 | 136 | public function toArray(): array |
137 | 137 | { |
138 | 138 | return [ |
139 | - 'include' => array_map(function (Matchable $fqsen) { |
|
139 | + 'include' => array_map(function(Matchable $fqsen) { |
|
140 | 140 | return $fqsen->getPattern(); |
141 | 141 | }, $this->patterns), |
142 | - 'exclude' => array_map(function (Matchable $fqsen) { |
|
142 | + 'exclude' => array_map(function(Matchable $fqsen) { |
|
143 | 143 | return $fqsen->getPattern(); |
144 | 144 | }, $this->excludePatterns) |
145 | 145 | ]; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | // Breadth first search |
98 | 98 | do { |
99 | 99 | $target = array_shift($queue); |
100 | - $visited[$target->getId()]= $target; |
|
100 | + $visited[$target->getId()] = $target; |
|
101 | 101 | |
102 | 102 | foreach ($target->getVerticesEdgeTo()->getMap() as $id => $vertexTo) { |
103 | 103 | if (!isset($visited[$id])) { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | /** @var Directed $edge */ |
154 | 154 | $types = $edge->getAttribute(DependencyGraph::DEPENDENCY_TYPE_KEY) ?? []; |
155 | 155 | |
156 | - $ret[$vertex->getId()][$edge->getVertexEnd()->getId()] = array_map(function (DependencyType $type) { |
|
156 | + $ret[$vertex->getId()][$edge->getVertexEnd()->getId()] = array_map(function(DependencyType $type) { |
|
157 | 157 | return $type->toString(); |
158 | 158 | }, $types); |
159 | 159 | } |