Completed
Push — feature/security-checker-5 ( b1af27 )
by Jorijn
05:15
created
src/Notifications/SecuritySlackNotification.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
         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
     }
Please login to merge, or discard this patch.
src/Console/SecurityMailCommand.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
         }
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
 
Please login to merge, or discard this patch.
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.