Passed
Branch master (26639e)
by Antonio Carlos
10:04 queued 04:30
created
src/Checkers/FilesystemChecker.php 1 patch
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.
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/Checkers/ServerUptimeChecker.php 1 patch
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.
src/Checkers/BaseChecker.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Create base directory for files.
51 51
      *
52
-     * @param $fileName
52
+     * @param null|string $fileName
53 53
      */
54 54
     private function makeDir($fileName)
55 55
     {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     }
82 82
 
83 83
     /**
84
-     * @param $exception
84
+     * @param \Exception $exception
85 85
      * @return array
86 86
      */
87 87
     protected function makeResultFromException($exception)
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
     /**
111
-     * @param $healthy
111
+     * @param boolean $healthy
112 112
      */
113 113
     public function setHealthy($healthy)
114 114
     {
Please login to merge, or discard this patch.
src/Checkers/HttpChecker.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @param $url
76 76
      * @param $ssl
77
-     * @return mixed|\Psr\Http\Message\ResponseInterface
77
+     * @return \Psr\Http\Message\ResponseInterface
78 78
      */
79 79
     private function fetchResponse($url, $ssl)
80 80
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * Make a url with a proper scheme.
146 146
      *
147 147
      * @param $url
148
-     * @param $secure
148
+     * @param boolean $secure
149 149
      * @return mixed
150 150
      */
151 151
     private function makeUrlWithScheme($url, $secure)
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * Send a request and get the result.
170 170
      *
171 171
      * @param $url
172
-     * @param $ssl
172
+     * @param boolean $ssl
173 173
      * @return bool
174 174
      * @internal param $response
175 175
      */
Please login to merge, or discard this patch.
src/Checkers/ProcessChecker.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,11 +26,17 @@  discard block
 block discarded – undo
26 26
         return $this->makeHealthyResult();
27 27
     }
28 28
 
29
+    /**
30
+     * @param integer|null $processes
31
+     */
29 32
     private function checkMinMax($processes)
30 33
     {
31 34
         return $this->buildMessage('minimum', $processes) ?: $this->buildMessage('maximum', $processes);
32 35
     }
33 36
 
37
+    /**
38
+     * @param string $type
39
+     */
34 40
     private function buildMessage($type, $processes)
35 41
     {
36 42
         $instances = $this->resource['instances'];
@@ -71,7 +77,7 @@  discard block
 block discarded – undo
71 77
 
72 78
     /**
73 79
      * @param $file
74
-     * @return bool
80
+     * @return integer
75 81
      */
76 82
     private function checkPidFileExistence($file)
77 83
     {
@@ -84,7 +90,7 @@  discard block
 block discarded – undo
84 90
 
85 91
     /**
86 92
      * @param $file
87
-     * @return bool
93
+     * @return boolean|null
88 94
      */
89 95
     private function checkPidFileLockState($file)
90 96
     {
@@ -111,7 +117,7 @@  discard block
 block discarded – undo
111 117
     }
112 118
 
113 119
     /**
114
-     * @return bool
120
+     * @return integer
115 121
      */
116 122
     private function processPidFileIsLocked()
117 123
     {
Please login to merge, or discard this patch.
src/Support/Yaml.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      *
12 12
      * @param $directory
13 13
      * @param bool $parseYaml
14
-     * @return static
14
+     * @return \Illuminate\Support\Collection
15 15
      */
16 16
     public function loadYamlFromDir($directory, $parseYaml = true)
17 17
     {
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * Parse a yaml file.
27 27
      *
28
-     * @param $contents
28
+     * @param string $contents
29 29
      * @return mixed
30 30
      */
31 31
     private function parseFile($contents)
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * Replace contents.
38 38
      *
39 39
      * @param $contents
40
-     * @return mixed
40
+     * @return string
41 41
      */
42 42
     private function replaceContents($contents)
43 43
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * Resolve variable.
57 57
      *
58
-     * @param $key
58
+     * @param string $key
59 59
      * @return string
60 60
      */
61 61
     private function resolveVariable($key)
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Execute function.
74 74
      *
75
-     * @param $string
75
+     * @param string $string
76 76
      * @return mixed
77 77
      */
78 78
     private function executeFunction($string)
Please login to merge, or discard this patch.
src/Support/helpers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      * Check if string is absolute path.
57 57
      *
58 58
      * @param $path
59
-     * @return string
59
+     * @return boolean
60 60
      */
61 61
     function is_absolute_path($path)
62 62
     {
Please login to merge, or discard this patch.
src/Commands.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * Format input to textual table.
121 121
      *
122 122
      * @param Command|null $command
123
-     * @param $columns
123
+     * @param string[] $columns
124 124
      * @param  \Illuminate\Contracts\Support\Arrayable|array $rows
125 125
      */
126 126
     private function table($command, $columns, $rows)
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * Write a string as information output.
135 135
      *
136 136
      * @param Command|null $command
137
-     * @param $string
137
+     * @param string $string
138 138
      */
139 139
     private function info($command, $string)
140 140
     {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      * Write a string as information output.
148 148
      *
149 149
      * @param Command|null $command
150
-     * @param $string
150
+     * @param string $string
151 151
      */
152 152
     private function error($command, $string)
153 153
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * Write a string as information output.
161 161
      *
162 162
      * @param Command|null $command
163
-     * @param $string
163
+     * @param string $string
164 164
      */
165 165
     private function warn($command, $string)
166 166
     {
Please login to merge, or discard this patch.