Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jul 16, 2024
1 parent 06a273a commit e391c11
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Commands/BadasoPostSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Symfony\Component\VarExporter\VarExporter;
use Uasoft\Badaso\Module\Post\Facades\BadasoPostModule;

class BadasoPostSetup extends Command
Expand Down Expand Up @@ -131,21 +130,21 @@ protected function addPostTablesToHiddenTables()
$filter_hidden_tables = array_diff($config_hidden_tables, $except_tables);
$filter_hidden_table = [];
foreach ($filter_hidden_tables as $value) {
$filter_hidden_table[] = str_replace(ENV('BADASO_TABLE_PREFIX'), "", $value);
$filter_hidden_table[] = str_replace(ENV('BADASO_TABLE_PREFIX'), '', $value);
}

foreach ($tables as $key => $value) {
if (!in_array($value, $filter_hidden_table)) {
if (! in_array($value, $filter_hidden_table)) {
array_push($filter_hidden_table, $value);
}
}

$prefixed_hidden_table = array_map(function ($item) use ($filter_hidden_table) {
$prefixed_hidden_table = array_map(function ($item) {
return
"env('BADASO_TABLE_PREFIX', 'badaso_').'{$item}'";
}, $filter_hidden_table);

$default_table = array_map(function ($item) use ($except_tables) {
$default_table = array_map(function ($item) {
return
"'{$item}'";
}, $except_tables);
Expand Down

0 comments on commit e391c11

Please sign in to comment.