Completed
Push — master ( 243e21...a5626d )
by Freek
02:00 queued 42s
created
src/Flare.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,18 +3,18 @@
 block discarded – undo
3 3
 namespace Facade\FlareClient;
4 4
 
5 5
 use Exception;
6
-use Illuminate\Contracts\Container\Container;
7 6
 use Facade\FlareClient\Concerns\HasContext;
8 7
 use Facade\FlareClient\Context\ContextContextDetector;
9 8
 use Facade\FlareClient\Context\ContextDetectorInterface;
10 9
 use Facade\FlareClient\Enums\MessageLevels;
11
-use Facade\FlareClient\Middleware\AnonymizeIp;
12
-use Throwable;
13
-use Illuminate\Pipeline\Pipeline;
14
-use Facade\FlareClient\Http\Client;
15
-use Facade\FlareClient\Glows\Recorder;
16 10
 use Facade\FlareClient\Glows\Glow;
11
+use Facade\FlareClient\Glows\Recorder;
12
+use Facade\FlareClient\Http\Client;
17 13
 use Facade\FlareClient\Middleware\AddGlows;
14
+use Facade\FlareClient\Middleware\AnonymizeIp;
15
+use Illuminate\Contracts\Container\Container;
16
+use Illuminate\Pipeline\Pipeline;
17
+use Throwable;
18 18
 
19 19
 class Flare
20 20
 {
Please login to merge, or discard this patch.
src/Http/Client.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@  discard block
 block discarded – undo
22 22
     /** @var int */
23 23
     private $timeout;
24 24
 
25
+    /**
26
+     * @param string $apiToken
27
+     * @param null|string $apiSecret
28
+     */
25 29
     public function __construct(
26 30
         ?string $apiToken,
27 31
         ?string $apiSecret,
@@ -173,6 +177,9 @@  discard block
 block discarded – undo
173 177
         return new Response($headers, $body, $error);
174 178
     }
175 179
 
180
+    /**
181
+     * @param resource $curlHandle
182
+     */
176 183
     private function attachRequestPayload(&$curlHandle, array $data)
177 184
     {
178 185
         $encoded = json_encode($data);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\FlareClient\Http;
4 4
 
5
-use Facade\FlareClient\Http\Exceptions\BadResponse;
6 5
 use Facade\FlareClient\Http\Exceptions\BadResponseCode;
7 6
 use Facade\FlareClient\Http\Exceptions\InvalidData;
8 7
 use Facade\FlareClient\Http\Exceptions\MissingParameter;
Please login to merge, or discard this patch.
src/Http/Exceptions/BadResponseCode.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
26 26
         return $exception;
27 27
     }
28 28
 
29
+    /**
30
+     * @return string|null
31
+     */
29 32
     public static function getMessageForResponse(Response $response)
30 33
     {
31 34
         return "Response code {$response->getHttpResponseCode()} returned";
Please login to merge, or discard this patch.
src/Report.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -142,6 +142,9 @@
 block discarded – undo
142 142
         return $this;
143 143
     }
144 144
 
145
+    /**
146
+     * @param string $applicationPath
147
+     */
145 148
     public function setApplicationPath(?string $applicationPath)
146 149
     {
147 150
         $this->applicationPath = $applicationPath;
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Facade\FlareClient\Concerns\HasContext;
6 6
 use Facade\FlareClient\Concerns\UsesTime;
7
+use Facade\FlareClient\Context\ContextInterface;
7 8
 use Facade\FlareClient\Contracts\ProvidesFlareContext;
8 9
 use Facade\FlareClient\Glows\Glow;
9
-use Facade\FlareClient\Context\ContextInterface;
10 10
 use Facade\FlareClient\Solutions\ReportSolution;
11 11
 use Facade\FlareClient\Stacktrace\Stacktrace;
12 12
 use Facade\IgnitionContracts\Solution;
Please login to merge, or discard this patch.
src/Stacktrace/Codesnippet.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@
 block discarded – undo
56 56
         }
57 57
     }
58 58
 
59
+    /**
60
+     * @param integer $totalNumberOfLineInFile
61
+     */
59 62
     private function getBounds($totalNumberOfLineInFile): array
60 63
     {
61 64
         $startLine = max($this->surroundingLine - floor($this->snippetLineCount / 2), 1);
Please login to merge, or discard this patch.