Skip to content

Commit 15b8191

Browse files
committed
Do PSR2 formatting
1 parent b4ffefb commit 15b8191

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/DataProcessing/v1/Service.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,24 @@ public function createCluster(array $options = []): Cluster
3838
return $this->model(Cluster::class)->create($options);
3939
}
4040

41-
public function createMultipleClusters(array $options = [])
41+
public function createMultipleClusters(array $options = [])
4242
{
4343
if (!array_key_exists("count", $options)) {
44-
throw new \RuntimeException("Require 'count'");
44+
throw new \RuntimeException("Require 'count'");
4545
}
4646

4747
$response = $this->execute($this->api->postClusters(), $options);
4848
# For multiple clusters, the current API returns only cluster IDs.
4949
$ids = Utils::flattenJson(Utils::jsonDecode($response), 'clusters');
5050
if ($response->getStatusCode() === 204 || empty($ids)) {
5151
return;
52-
}
52+
}
5353
foreach ($ids as $id) {
5454
$cluster = $this->model(Cluster::class);
5555
$cluster->id = $id;
5656
yield $cluster;
5757
}
58-
59-
}
58+
}
6059

6160
public function scaleCluster(array $options = []): Cluster
6261
{

src/OpenStack.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,5 +209,4 @@ public function dataProcessingV1(array $options = []): \OpenStack\DataProcessing
209209
$defaults = ['catalogName' => 'sahara', 'catalogType' => 'data-processing'];
210210
return $this->builder->createService('DataProcessing\\v1', array_merge($defaults, $options));
211211
}
212-
213212
}

0 commit comments

Comments
 (0)