Passed
Branch master (176455)
by Satoshi
04:45
created
Category
src/Commands/VerifyDependencyCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             ];
68 68
 
69 69
             $otherComponent = [
70
-                'define' => array_merge(['\\'], array_map(function (string $className) {
70
+                'define' => array_merge(['\\'], array_map(function(string $className) {
71 71
                     return '!' . $className;
72 72
                 }, $classesInPhpDoc)),
73 73
             ];
Please login to merge, or discard this patch.
src/Commands/AnalyzeDependencyCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace DependencyAnalyzer\Commands;
5 5
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function createDependencyGraph(array $paths, array $excludePaths = []): DependencyGraph
56 56
     {
57
-        $convertRealpathClosure = function ($path) {
57
+        $convertRealpathClosure = function($path) {
58 58
             $realpath = realpath($path);
59 59
             if (!is_file($realpath) && !is_dir($realpath)) {
60 60
                 throw new InvalidCommandArgumentException("path was not found: {$realpath}");
Please login to merge, or discard this patch.
src/Detector/CycleDetector.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
             $subGraph->walkOnPath([$this, 'checkCycle']);
23 23
         }
24 24
 
25
-        return array_map(function (Path $path) {
25
+        return array_map(function(Path $path) {
26 26
             return $path->getIds();
27 27
         }, $this->cycles);
28 28
     }
Please login to merge, or discard this patch.
src/DependencyDumper/DependencyResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace DependencyAnalyzer\DependencyDumper;
5 5
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     {
222 222
         $functionName = $node->name->name;
223 223
         if (isset($node->namespacedName)) {
224
-            $functionName = (string)$node->namespacedName;
224
+            $functionName = (string) $node->namespacedName;
225 225
         }
226 226
         $functionNameName = new \PhpParser\Node\Name($functionName);
227 227
         if ($this->broker->hasCustomFunction($functionNameName, null)) {
Please login to merge, or discard this patch.
src/DependencyGraph.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         // Breadth first search
56 56
         do {
57 57
             $target = array_shift($queue);
58
-            $visited[$target->getId()]= $target;
58
+            $visited[$target->getId()] = $target;
59 59
 
60 60
             foreach ($target->getVerticesEdgeTo()->getMap() as $id => $vertexTo) {
61 61
                 if (!isset($visited[$id])) {
Please login to merge, or discard this patch.