Skip to content

Commit ee1eaa7

Browse files
rennokkiStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 37d133f commit ee1eaa7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/KubernetesCluster.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace RenokiCo\PhpK8s;
44

5-
use RenokiCo\PhpK8s\Kinds\K8sResource;
65
use Illuminate\Support\Str;
6+
use RenokiCo\PhpK8s\Kinds\K8sResource;
77

88
class KubernetesCluster
99
{

src/Traits/Cluster/LoadsFromKubeConfig.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait LoadsFromKubeConfig
1212
/**
1313
* The absolute path to the temporary folder
1414
* used to write base64-encoded SSL certs and keys
15-
* to be able to load them in Guzzle
15+
* to be able to load them in Guzzle.
1616
*
1717
* @var null|string
1818
*/
@@ -132,7 +132,7 @@ protected function loadKubeConfigFromArray(array $kubeconfig, string $context):
132132
* @return string
133133
*/
134134
protected function writeTempFileForContext(string $context, string $fileName, string $contents)
135-
{
135+
{
136136
$tempFolder = static::$tempFolder ?: sys_get_temp_dir();
137137

138138
$tempFilePath = $tempFolder.DIRECTORY_SEPARATOR."ctx-{$context}-{$fileName}";
@@ -141,10 +141,10 @@ protected function writeTempFileForContext(string $context, string $fileName, st
141141
return $tempFilePath;
142142
}
143143

144-
if (file_put_contents($tempFilePath, base64_decode($contents, true)) === false) {
145-
throw new Exception("Failed to write content to temp file: {$tempFilePath}");
146-
}
144+
if (file_put_contents($tempFilePath, base64_decode($contents, true)) === false) {
145+
throw new Exception("Failed to write content to temp file: {$tempFilePath}");
146+
}
147147

148-
return $tempFilePath;
149-
}
148+
return $tempFilePath;
149+
}
150150
}

0 commit comments

Comments
 (0)