Passed
Push — develop ( ae3b85...377791 )
by Jorijn
03:47
created
src/Notifications/SecuritySlackNotification.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function via()
44 44
     {
45
-        return ['slack'];
45
+        return [ 'slack' ];
46 46
     }
47 47
 
48 48
     /**
@@ -55,8 +55,8 @@  discard block
 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) {
59
-                $attachment->content($this->textFormatter())->markdown(['text']);
58
+            ->attachment(function($attachment) {
59
+                $attachment->content($this->textFormatter())->markdown([ 'text' ]);
60 60
             });
61 61
     }
62 62
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         if ($packageCount > 0) {
84 84
             foreach ($this->vulnerabilities as $dependency => $issues) {
85
-                $dependencyFullName = sprintf('%s (%s)', $dependency, $issues['version']);
85
+                $dependencyFullName = sprintf('%s (%s)', $dependency, $issues[ 'version' ]);
86 86
 
87 87
                 $content .= PHP_EOL;
88 88
                 $content .= sprintf('*%s*', $dependencyFullName);
@@ -90,17 +90,17 @@  discard block
 block discarded – undo
90 90
                 $content .= str_repeat('-', \strlen($dependencyFullName));
91 91
                 $content .= PHP_EOL;
92 92
 
93
-                foreach ($issues['advisories'] as $issue => $details) {
93
+                foreach ($issues[ 'advisories' ] as $issue => $details) {
94 94
                     $content .= ' * ';
95 95
 
96
-                    if ($details['cve']) {
97
-                        $content .= $details['cve'].' ';
96
+                    if ($details[ 'cve' ]) {
97
+                        $content .= $details[ 'cve' ].' ';
98 98
                     }
99 99
 
100
-                    $content .= $details['title'].' ';
100
+                    $content .= $details[ 'title' ].' ';
101 101
 
102
-                    if (!empty($details['link'])) {
103
-                        $content .= $details['link'];
102
+                    if (!empty($details[ 'link' ])) {
103
+                        $content .= $details[ 'link' ];
104 104
                     }
105 105
 
106 106
                     $content .= PHP_EOL;
Please login to merge, or discard this patch.