Completed
Push — feature/security-checker-5 ( b1af27 )
by Jorijn
05:15
created
src/Formatter/SimpleFormatter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,19 +32,19 @@
 block discarded – undo
32 32
             $output->write("\n");
33 33
 
34 34
             foreach ($vulnerabilities as $dependency => $issues) {
35
-                $dependencyFullName = $dependency.' ('.$issues['version'].')';
35
+                $dependencyFullName = $dependency.' ('.$issues[ 'version' ].')';
36 36
                 $output->writeln('<info>'.$dependencyFullName."\n".str_repeat('-',
37 37
                         strlen($dependencyFullName))."</>\n");
38 38
 
39
-                foreach ($issues['advisories'] as $issue => $details) {
39
+                foreach ($issues[ 'advisories' ] as $issue => $details) {
40 40
                     $output->write(' * ');
41
-                    if ($details['cve']) {
42
-                        $output->write('<comment>'.$details['cve'].': </comment>');
41
+                    if ($details[ 'cve' ]) {
42
+                        $output->write('<comment>'.$details[ 'cve' ].': </comment>');
43 43
                     }
44
-                    $output->writeln($details['title']);
44
+                    $output->writeln($details[ 'title' ]);
45 45
 
46
-                    if ('' !== $details['link']) {
47
-                        $output->writeln('   '.$details['link']);
46
+                    if ('' !== $details[ 'link' ]) {
47
+                        $output->writeln('   '.$details[ 'link' ]);
48 48
                     }
49 49
 
50 50
                     $output->writeln('');
Please login to merge, or discard this patch.