From a9817aa33af980512b334c923c49e27e0b7a3f88 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Thu, 29 Oct 2020 22:33:43 +0200 Subject: [PATCH] Identation --- src/Kinds/K8sResource.php | 21 +++++++-------------- tests/ConfigMapTest.php | 3 +-- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Kinds/K8sResource.php b/src/Kinds/K8sResource.php index 1a5fb612..bb785c50 100644 --- a/src/Kinds/K8sResource.php +++ b/src/Kinds/K8sResource.php @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, diff --git a/tests/ConfigMapTest.php b/tests/ConfigMapTest.php index 42f543a3..d8232be8 100644 --- a/tests/ConfigMapTest.php +++ b/tests/ConfigMapTest.php @@ -98,8 +98,7 @@ public function runUpdateTests() $this->assertTrue($cm->isSynced()); - $cm - ->removeData('key2') + $cm->removeData('key2') ->addData('newkey', 'newval'); $this->assertTrue($cm->update());