@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use GuzzleHttp\Client; |
| 19 | 19 | use GuzzleHttp\Pool; |
| 20 | -use GuzzleHttp\Promise; |
|
| 21 | 20 | use GuzzleHttp\Psr7\Request; |
| 22 | 21 | use GuzzleHttp\TransferStats; |
| 23 | 22 | use Hogosha\Monitor\Client\GuzzleClient; |
@@ -107,7 +107,7 @@ |
||
| 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 | { |
@@ -95,7 +95,7 @@ |
||
| 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 | { |
@@ -60,19 +60,19 @@ |
||
| 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 | } |