@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $signer = new SignatureV4('es', $region); |
| 44 | 44 | $credProvider = $this->getCredentialProvider(); |
| 45 | 45 | |
| 46 | - return Middleware::mapRequest(function (RequestInterface $req) use ( |
|
| 46 | + return Middleware::mapRequest(function(RequestInterface $req) use ( |
|
| 47 | 47 | $signer, |
| 48 | 48 | $credProvider |
| 49 | 49 | ) { |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | $types = is_array($types) ? $types : [$types]; |
| 132 | 132 | |
| 133 | 133 | $types = array_map( |
| 134 | - function ($type) { |
|
| 134 | + function($type) { |
|
| 135 | 135 | if ($type instanceof Type) { |
| 136 | 136 | $type = $type->getName(); |
| 137 | 137 | } |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Elastica\Aggregation\AbstractAggregation; |
| 5 | 5 | use Elastica\Exception\InvalidException; |
| 6 | -use Elastica\Exception\NotImplementedException; |
|
| 7 | 6 | use Elastica\Query\AbstractQuery; |
| 8 | 7 | use Elastica\Query\MatchAll; |
| 9 | 8 | use Elastica\Query\QueryString; |
@@ -521,7 +521,7 @@ |
||
| 521 | 521 | */ |
| 522 | 522 | public function exists() |
| 523 | 523 | { |
| 524 | - $path = '_mapping/' . $this->getName(); |
|
| 524 | + $path = '_mapping/'.$this->getName(); |
|
| 525 | 525 | $response = $this->getIndex()->request($path, Request::HEAD); |
| 526 | 526 | |
| 527 | 527 | return $response->getStatus() === 200; |