@@ -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 | |
@@ -32,19 +32,19 @@ |
||
| 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(''); |