Skip to content

Commit

Permalink
Tweak fix spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Sep 2, 2024
1 parent cfbbf8c commit ba4e5c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Web/Modules/ConfigConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getConfig(): array
if (is_null($this->config)) {
$this->config = $this->readConfig(self::CONFIG_FILE_PATH, self::CONFIG_FILE_FORMAT);
if (is_array($this->config)) {
foreach($this->config as $key => $value) {
foreach ($this->config as $key => $value) {
$value['name'] = $key;
if (key_exists('config', $value)) {
$value['config'] = json_decode($value['config'], true);
Expand All @@ -76,7 +76,7 @@ public function getConfig(): array
public function setConfig(array $config): bool
{
if (is_array($config)) {
foreach($config as $key => $value) {
foreach ($config as $key => $value) {
if (key_exists('config', $value)) {
$value['config'] = json_encode($value['config']);
}
Expand Down
2 changes: 1 addition & 1 deletion Web/Modules/DataViewConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getDataViewConfig(string $username): array
public function setDataViewConfig(string $username, array $view_config): bool
{
$config = $this->getConfig();
foreach($view_config as $view => $data) {
foreach ($view_config as $view => $data) {
foreach ($data as $name => $value) {
$vw = http_build_query($value);
$view_config[$view][$name] = $vw;
Expand Down
2 changes: 1 addition & 1 deletion Web/Modules/PatternConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getConfig(): array
if (is_null($this->config)) {
$this->config = $this->readConfig(self::CONFIG_FILE_PATH, self::CONFIG_FILE_FORMAT);
if (is_array($this->config)) {
foreach($this->config as $key => $value) {
foreach ($this->config as $key => $value) {
$value['name'] = $key;
$this->config[$key] = $value;
}
Expand Down
2 changes: 1 addition & 1 deletion Web/Pages/Patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function savePattern($sender, $param)
$component = $this->PatternComponentName->getSelectedValue();
$pattern_configs = $this->PatternConfigs->getSelectedIndices();
$configs = [];
foreach($pattern_configs as $indice) {
foreach ($pattern_configs as $indice) {
for ($i = 0; $i < $this->PatternConfigs->getItemCount(); $i++) {
if ($i === $indice) {
$configs[] = $this->PatternConfigs->Items[$i]->Value;
Expand Down

0 comments on commit ba4e5c4

Please sign in to comment.