Passed
Branch master (26639e)
by Antonio Carlos
10:04 queued 04:30
created
src/Checkers/FilesystemChecker.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
     }
26 26
 
27 27
     /**
28
-     * @param $name
29
-     * @param $content
30
-     * @param null $folder
28
+     * @param string $name
29
+     * @param string $content
30
+     * @param string $folder
31 31
      * @return string
32 32
      */
33 33
     private function temporaryFile($name, $content, $folder = null)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         try {
13 13
             $file = $this->temporaryFile('health-check-', 'just testing', storage_path());
14 14
 
15
-            if (! file_exists($file)) {
15
+            if (!file_exists($file)) {
16 16
                 return $this->makeResult(false, sprintf($this->resource['error-message'], $file));
17 17
             }
18 18
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         file_put_contents($file, $content);
40 40
 
41
-        register_shutdown_function(function () use ($file) {
41
+        register_shutdown_function(function() use ($file) {
42 42
             if (file_exists($file)) {
43 43
                 unlink($file);
44 44
             }
Please login to merge, or discard this patch.
src/Checkers/CacheChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     private function getChecker()
43 43
     {
44
-        return function () {
44
+        return function() {
45 45
             return 'DUMMY DATA';
46 46
         };
47 47
     }
Please login to merge, or discard this patch.
src/Checkers/MailChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     private function sendMail()
68 68
     {
69
-        Mail::send($this->resource['view'], [], function ($message) {
69
+        Mail::send($this->resource['view'], [], function($message) {
70 70
             $fromAddress = array_get($this->resource, 'config.from.address');
71 71
 
72 72
             $message->returnPath($fromAddress);
Please login to merge, or discard this patch.
src/Notifications/Channels/Slack.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
                 config('health.notifications.from.icon_emoji')
21 21
             )
22 22
             ->content($this->getMessage($item))
23
-            ->attachment(function ($attachment) use ($item) {
23
+            ->attachment(function($attachment) use ($item) {
24 24
                 $attachment->title($this->getActionTitle(), $this->getActionLink())
25 25
                             ->content($item['health']['message']);
26 26
             });
Please login to merge, or discard this patch.
src/Notifications/HealthStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      */
60 60
     public function __call($name, $parameters)
61 61
     {
62
-        if (! starts_with($name, 'to')) {
62
+        if (!starts_with($name, 'to')) {
63 63
             return call_user_func([$this, $name], $parameters);
64 64
         }
65 65
 
Please login to merge, or discard this patch.
src/Http/Controllers/Health.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * Check all resources.
26 26
      *
27
-     * @return array
27
+     * @return \Symfony\Component\HttpFoundation\Response
28 28
      */
29 29
     public function check()
30 30
     {
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return mixed
62
+     * @return \Symfony\Component\HttpFoundation\Response
63 63
      */
64 64
     public function string()
65 65
     {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
75
+     * @return \Symfony\Component\HttpFoundation\Response
76 76
      */
77 77
     public function panel()
78 78
     {
Please login to merge, or discard this patch.
src/Notifications/Channels/BaseChannel.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
                 ? $item['action_message']
13 13
                 : (
14 14
                         config('health.notifications.action_message')
15
-                        ?:
16
-                        config('health.notifications.action-message') /// TODO: deprecate
15
+                        ?: config('health.notifications.action-message') /// TODO: deprecate
17 16
                     );
18 17
     }
19 18
 
Please login to merge, or discard this patch.
src/Checkers/ServerLoadChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             $current['load_5'] > $this->resource['max_load']['load_5'] ||
19 19
             $current['load_15'] > $this->resource['max_load']['load_15'];
20 20
 
21
-        return $this->makeResult(! $inTrouble, $this->makeMessage($current));
21
+        return $this->makeResult(!$inTrouble, $this->makeMessage($current));
22 22
     }
23 23
 
24 24
     protected function makeMessage($current, $saved = null)
Please login to merge, or discard this patch.
src/Checkers/ServerUptimeChecker.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * Convert uptime to seconds.
140 140
      *
141 141
      * @param $date
142
-     * @return int
142
+     * @return double
143 143
      */
144 144
     protected function uptimeInSeconds($date)
145 145
     {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      * Make uptime message.
153 153
      *
154 154
      * @param $current
155
-     * @param $saved
155
+     * @param \Illuminate\Support\Collection $saved
156 156
      * @return string
157 157
      */
158 158
     protected function makeMessage($current, $saved = null)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $rebooted = ($cs = $this->uptimeInSeconds($current)) < ($ss = $this->uptimeInSeconds($this->database));
22 22
 
23
-        return $this->makeResult(! $rebooted, $this->makeMessage($current, $this->database));
23
+        return $this->makeResult(!$rebooted, $this->makeMessage($current, $this->database));
24 24
     }
25 25
 
26 26
     /**
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             throw new DomainException((string) $error);
38 38
         }
39 39
 
40
-        return (! is_array($system_string) || empty($system_string))
40
+        return (!is_array($system_string) || empty($system_string))
41 41
             ? ''
42 42
             : $system_string[0];
43 43
     }
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected function normalizeMatches($matches)
65 65
     {
66
-        return collect($matches)->filter(function ($item, $key) {
67
-            return ! is_numeric($key);
68
-        })->map(function ($item, $key) {
66
+        return collect($matches)->filter(function($item, $key) {
67
+            return !is_numeric($key);
68
+        })->map(function($item, $key) {
69 69
             $return = $item[0];
70 70
 
71 71
             if (starts_with($key, 'load')) {
Please login to merge, or discard this patch.