Skip to content

Commit 057b1cd

Browse files
committed
Normalize spacing after explicit type casting
- Small changes adding consistency in coding standards
1 parent f6b2882 commit 057b1cd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Elasticsearch/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ public function cat()
13611361
public function extractArgument(&$params, $arg)
13621362
{
13631363
if (is_object($params) === true) {
1364-
$params = (array)$params;
1364+
$params = (array) $params;
13651365
}
13661366

13671367
if (isset($params[$arg]) === true) {

src/Elasticsearch/ConnectionPool/SniffingConnectionPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function parseClusterState($transportSchema, $nodeInfo)
137137
if (preg_match($pattern, $node[$schemaAddress], $match) === 1) {
138138
$hosts[] = array(
139139
'host' => $match[1],
140-
'port' => (int)$match[2],
140+
'port' => (int) $match[2],
141141
);
142142
}
143143
}

src/Elasticsearch/Endpoints/AbstractEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function performRequest()
9090
public function setParams($params)
9191
{
9292
if (is_object($params) === true) {
93-
$params = (array)$params;
93+
$params = (array) $params;
9494
}
9595

9696
$this->checkUserParams($params);

src/Elasticsearch/Namespaces/AbstractNamespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct($transport, $endpoints)
4444
public function extractArgument(&$params, $arg)
4545
{
4646
if (is_object($params) === true) {
47-
$params = (array)$params;
47+
$params = (array) $params;
4848
}
4949

5050
if (isset($params[$arg]) === true) {

0 commit comments

Comments
 (0)