Completed
Push — master ( a1f953...291e85 )
by Guillaume
02:31
created
tests/Guesser/StatusGuesserTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Hogosha\Monitor\Guesser\StatusGuesser;
6 6
 use Hogosha\Monitor\Model\Result;
7
-use Hogosha\Monitor\Model\ResultCollection;
8 7
 use Hogosha\Monitor\Model\UrlInfo;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/Runner/Runner.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * Constructor.
40 40
      *
41 41
      * @param UrlProvider  $urlProvider
42
-     * @param GuzzleClient $client
42
+     * @param Client $client
43 43
      */
44 44
     public function __construct(UrlProvider $urlProvider, Client $client)
45 45
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * run.
52 52
      *
53
-     * @return array
53
+     * @return ResultCollection
54 54
      */
55 55
     public function run()
56 56
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,7 @@
 block discarded – undo
16 16
 namespace Hogosha\Monitor\Runner;
17 17
 
18 18
 use GuzzleHttp\Client;
19
-use GuzzleHttp\Exception\ConnectException;
20 19
 use GuzzleHttp\Pool;
21
-use GuzzleHttp\Promise;
22 20
 use GuzzleHttp\Psr7\Request;
23 21
 use GuzzleHttp\TransferStats;
24 22
 use Hogosha\Monitor\Client\GuzzleClient;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
 
62 62
         $resultCollection = new ResultCollection();
63 63
 
64
-        $requests = function () use ($urls, $client, $resultCollection) {
64
+        $requests = function() use ($urls, $client, $resultCollection) {
65 65
             foreach ($urls as $url) {
66
-                yield function () use ($client, $url, $resultCollection) {
66
+                yield function() use ($client, $url, $resultCollection) {
67 67
                     return $client->sendAsync(
68 68
                         new Request(
69 69
                             $url->getMethod(),
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                         ),
73 73
                         [
74 74
                             'timeout' => $url->getTimeout(),
75
-                            'on_stats' => function (TransferStats $tranferStats) use ($url, $resultCollection) {
75
+                            'on_stats' => function(TransferStats $tranferStats) use ($url, $resultCollection) {
76 76
 
77 77
                                 if ($tranferStats->hasResponse()) {
78 78
                                     $statusCode = $tranferStats->getResponse()->getStatusCode();
Please login to merge, or discard this patch.
src/Client/GuzzleClient.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Concat\Http\Middleware\Logger;
19 19
 use GuzzleHttp\Client;
20 20
 use GuzzleHttp\HandlerStack;
21
-use GuzzleHttp\Handler\CurlMultiHandler;
22 21
 use GuzzleHttp\MessageFormatter;
23 22
 use Symfony\Component\Console\Logger\ConsoleLogger;
24 23
 use Webmozart\Console\Adapter\IOOutput;
Please login to merge, or discard this patch.
tests/Renderer/TableRendererTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Hogosha\Monitor\Model\Result;
6 6
 use Hogosha\Monitor\Model\ResultCollection;
7 7
 use Hogosha\Monitor\Model\UrlInfo;
8
-use Webmozart\Console\Api\IO\IO;
9 8
 use Webmozart\Console\IO\BufferedIO;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
src/Console/MonitorApplicationConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                 ->addOption('config', 'c', Option::OPTIONAL_VALUE, 'Config file path', rtrim(getcwd(), DIRECTORY_SEPARATOR))
58 58
                 ->beginCommand('init')
59 59
                     ->setDescription('Create a default configuration file if you do not have one')
60
-                    ->setHandler(function () use ($configurationLoader, $configurationDumper, $filesystem) {
60
+                    ->setHandler(function() use ($configurationLoader, $configurationDumper, $filesystem) {
61 61
                         return new InitHandler($configurationLoader, $configurationDumper, $filesystem);
62 62
                     })
63 63
                     ->setHelp('php <info>bin/monitor</info> init')
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 ->end()
66 66
                 ->beginCommand('run')
67 67
                     ->setDescription('Launch the monitor process')
68
-                    ->setHandler(function () use ($configurationLoader) {
68
+                    ->setHandler(function() use ($configurationLoader) {
69 69
                         return new RunHandler($configurationLoader);
70 70
                     })
71 71
                     ->setHelp('php <info>bin/monitor</info> run')
Please login to merge, or discard this patch.