Skip to content

Commit

Permalink
Identation
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Oct 29, 2020
1 parent ac82ff1 commit a9817aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
21 changes: 7 additions & 14 deletions src/Kinds/K8sResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,7 @@ public function toJsonPayload(string $kind = null)
*/
public function all(array $query = ['pretty' => 1])
{
return $this
->cluster
return $this->cluster
->setResourceClass(get_class($this))
->runOperation(
KubernetesCluster::GET_OP,
Expand All @@ -414,8 +413,7 @@ public function all(array $query = ['pretty' => 1])
*/
public function get(array $query = ['pretty' => 1])
{
return $this
->cluster
return $this->cluster
->setResourceClass(get_class($this))
->runOperation(
KubernetesCluster::GET_OP,
Expand All @@ -433,8 +431,7 @@ public function get(array $query = ['pretty' => 1])
*/
public function create(array $query = ['pretty' => 1])
{
return $this
->cluster
return $this->cluster
->setResourceClass(get_class($this))
->runOperation(
KubernetesCluster::CREATE_OP,
Expand Down Expand Up @@ -546,8 +543,7 @@ public function watchAll(Closure $callback, array $query = ['pretty' => 1])
);
}

return $this
->cluster
return $this->cluster
->setResourceClass(get_class($this))
->runOperation(
KubernetesCluster::WATCH_OP,
Expand All @@ -573,8 +569,7 @@ public function watch(Closure $callback, array $query = ['pretty' => 1])
);
}

return $this
->cluster
return $this->cluster
->setResourceClass(get_class($this))
->runOperation(
KubernetesCluster::WATCH_OP,
Expand Down Expand Up @@ -611,8 +606,7 @@ public function logs(array $query = ['pretty' => 1])
);
}

return $this
->cluster
return $this->cluster
->setResourceClass(get_class($this))
->runOperation(
KubernetesCluster::LOG_OP,
Expand Down Expand Up @@ -653,8 +647,7 @@ public function watchLogs(Closure $callback, array $query = ['pretty' => 1])
// Ensure the ?follow=1 query exists to trigger the watch.
$query = array_merge($query, ['follow' => 1]);

return $this
->cluster
return $this->cluster
->setResourceClass(get_class($this))
->runOperation(
KubernetesCluster::WATCH_LOGS_OP,
Expand Down
3 changes: 1 addition & 2 deletions tests/ConfigMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public function runUpdateTests()

$this->assertTrue($cm->isSynced());

$cm
->removeData('key2')
$cm->removeData('key2')
->addData('newkey', 'newval');

$this->assertTrue($cm->update());
Expand Down

0 comments on commit a9817aa

Please sign in to comment.