@@ -3,9 +3,9 @@ |
||
| 3 | 3 | use Elasticsearch\Client; |
| 4 | 4 | use Elasticsearch\ClientBuilder; |
| 5 | 5 | use Illuminate\Support\Arr; |
| 6 | -use Psr\Log\LoggerInterface; |
|
| 7 | -use Monolog\Logger; |
|
| 8 | 6 | use Monolog\Handler\StreamHandler; |
| 7 | +use Monolog\Logger; |
|
| 8 | +use Psr\Log\LoggerInterface; |
|
| 9 | 9 | |
| 10 | 10 | class Factory |
| 11 | 11 | { |
@@ -135,9 +135,11 @@ |
||
| 135 | 135 | ); |
| 136 | 136 | |
| 137 | 137 | // Get curl stats |
| 138 | - $http_stats = new class { |
|
| 138 | + $http_stats = new class |
|
| 139 | + { |
|
| 139 | 140 | public $data = []; |
| 140 | - public function __invoke(...$args){ |
|
| 141 | + public function __invoke(...$args) |
|
| 142 | + { |
|
| 141 | 143 | $this->data = $args[0]; |
| 142 | 144 | } |
| 143 | 145 | }; |