@@ -55,7 +55,7 @@ |
||
55 | 55 | return (new SlackMessage) |
56 | 56 | ->from(config('app.url')) |
57 | 57 | ->content("*Security Check Report:* `{$this->composerLockPath}`") |
58 | - ->attachment(function ($attachment) { |
|
58 | + ->attachment(function($attachment) { |
|
59 | 59 | $attachment->content($this->textFormatter())->markdown([ 'text' ]); |
60 | 60 | }); |
61 | 61 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | // get the recipients and filter out any configuration mistakes |
58 | - $recipients = collect(config('laravel-security-checker.recipients', [ ]))->filter(function ($recipient) { |
|
58 | + $recipients = collect(config('laravel-security-checker.recipients', [ ]))->filter(function($recipient) { |
|
59 | 59 | return $recipient !== null && !empty($recipient); |
60 | 60 | }); |
61 | 61 |
@@ -37,21 +37,21 @@ |
||
37 | 37 | $output->write("\n"); |
38 | 38 | |
39 | 39 | foreach ($vulnerabilities as $dependency => $issues) { |
40 | - $dependencyFullName = $dependency.' ('.$issues['version'].')'; |
|
40 | + $dependencyFullName = $dependency.' ('.$issues[ 'version' ].')'; |
|
41 | 41 | $output->writeln('<info>'.$dependencyFullName."\n".str_repeat( |
42 | 42 | '-', |
43 | 43 | strlen($dependencyFullName) |
44 | 44 | )."</>\n"); |
45 | 45 | |
46 | - foreach ($issues['advisories'] as $issue => $details) { |
|
46 | + foreach ($issues[ 'advisories' ] as $issue => $details) { |
|
47 | 47 | $output->write(' * '); |
48 | - if ($details['cve']) { |
|
49 | - $output->write('<comment>'.$details['cve'].': </comment>'); |
|
48 | + if ($details[ 'cve' ]) { |
|
49 | + $output->write('<comment>'.$details[ 'cve' ].': </comment>'); |
|
50 | 50 | } |
51 | - $output->writeln($details['title']); |
|
51 | + $output->writeln($details[ 'title' ]); |
|
52 | 52 | |
53 | - if ('' !== $details['link']) { |
|
54 | - $output->writeln(' '.$details['link']); |
|
53 | + if ('' !== $details[ 'link' ]) { |
|
54 | + $output->writeln(' '.$details[ 'link' ]); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | $output->writeln(''); |