Passed
Push — master ( 27ed8a...cb96b4 )
by Jorijn
02:33
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
@@ -37,21 +37,21 @@
 block discarded – undo
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('');
Please login to merge, or discard this patch.