Completed
Push — master ( 0cf24a...1a553a )
by Guillaume
04:54
created
src/Runner/Runner.php 1 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/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.
src/Utils/Dom.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
      *
108 108
      * @param string $element
109 109
      *
110
-     * @return DOMNodeList
110
+     * @return \DOMNodeList
111 111
      */
112 112
     public function xpath($element)
113 113
     {
Please login to merge, or discard this patch.
src/Validator/Validator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      *
96 96
      * @param string $value
97 97
      *
98
-     * @return bool
98
+     * @return null|boolean
99 99
      */
100 100
     public function check($value)
101 101
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,19 +60,19 @@
 block discarded – undo
60 60
             ]
61 61
         );
62 62
 
63
-        $resolver->setDefault('type', function (Options $options, $value) {
63
+        $resolver->setDefault('type', function(Options $options, $value) {
64 64
             if (null === $value) {
65 65
                 return;
66 66
             }
67 67
         });
68 68
 
69
-        $resolver->setDefault('match', function (Options $options, $value) {
69
+        $resolver->setDefault('match', function(Options $options, $value) {
70 70
             if (null === $value) {
71 71
                 return;
72 72
             }
73 73
         });
74 74
 
75
-        $resolver->setAllowedValues('type', function ($value) {
75
+        $resolver->setAllowedValues('type', function($value) {
76 76
             if (in_array($value, ['json', 'xml', 'html'])) {
77 77
                 return true;
78 78
             }
Please login to merge, or discard this patch.
src/Middleware/Backoff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public static function decider()
21 21
     {
22
-        return function (
22
+        return function(
23 23
             $retries,
24 24
             Request $request,
25 25
             Response $response = null,
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public static function delay()
55 55
     {
56
-        return function ($numberOfRetries) {
56
+        return function($numberOfRetries) {
57 57
             return 1000 * $numberOfRetries;
58 58
         };
59 59
     }
Please login to merge, or discard this patch.
src/Pusher/AbstractPusher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      *
56 56
      * @param array  $options
57 57
      * @param IO     $io
58
-     * @param Client $client
58
+     * @param SdkClient $client
59 59
      */
60 60
     public function __construct(array $options, IO $io, SdkClient $client = null)
61 61
     {
Please login to merge, or discard this patch.
tests/Monitor/Runner/RunnerTest.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,8 +120,7 @@
 block discarded – undo
120 120
             1,
121 121
             200,
122 122
             $validator ?
123
-            (new Validator(['type' => 'html', 'match' => '/test/'])) :
124
-            (new Validator()),
123
+            (new Validator(['type' => 'html', 'match' => '/test/'])) : (new Validator()),
125 124
             null,
126 125
             null
127 126
         );
Please login to merge, or discard this patch.