Skip to content

Commit

Permalink
these are arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed May 13, 2024
1 parent baba32c commit 1c6ea41
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/Access/AddHostAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat

$this->ui->showHeader();

$data = $request->getParsedBody();
$data = (array)$request->getParsedBody();
$startIp = $data['start'] ?? '';
$endIp = $data['end'] ?? '';

Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/Access/UpdateRecordAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat

$this->ui->showHeader();

$data = $request->getParsedBody();
$data = (array)$request->getParsedBody();
$accessId = (int)($request->getQueryParams()['access_id'] ?? 0);
try {
$this->accessListManager->update(
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/Catalog/AddCatalogAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function handle(

ob_end_flush();

$body = $request->getParsedBody();
$body = (array)$request->getParsedBody();

if (!strlen(filter_input(INPUT_POST, 'type', FILTER_SANITIZE_SPECIAL_CHARS)) || filter_input(INPUT_POST, 'type', FILTER_SANITIZE_SPECIAL_CHARS) == 'none') {
AmpError::add('general', T_('Please select a Catalog type'));
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/Export/ExportAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
// instead of waiting until contents are generated, which could take a long time.
ob_implicit_flush();

$requestData = $request->getParsedBody();
$requestData = (array)$request->getParsedBody();
$catalogId = (int) ($requestData['export_catalog'] ?? 0);

try {
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/Filter/AddFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function handle(ServerRequestInterface $request): ?ResponseInterface
throw new AccessDeniedException();
}

$body = $request->getParsedBody();
$body = (array)$request->getParsedBody();

$this->ui->showHeader();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function handle(ServerRequestInterface $request): ?ResponseInterface
return null;
}

$body = $request->getParsedBody();
$body = (array)$request->getParsedBody();

$filter_name = scrub_in(htmlspecialchars($body['name'] ?? '', ENT_NOQUOTES));

Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/Filter/UpdateFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function handle(ServerRequestInterface $request): ?ResponseInterface
throw new AccessDeniedException();
}

$body = $request->getParsedBody();
$body = (array)$request->getParsedBody();

$this->ui->showHeader();

Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/License/EditAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
throw new AccessDeniedException();
}

$data = $request->getParsedBody();
$data = (array)$request->getParsedBody();
$licenseId = (int) ($data['license_id'] ?? 0);
$name = (string) ($data['name'] ?? '');
$description = (string) ($data['description'] ?? '');
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/Shout/EditShoutAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
throw new AccessDeniedException();
}

$requestData = $request->getParsedBody();
$requestData = (array)$request->getParsedBody();
$shoutId = (int) ($requestData['shout_id'] ?? 0);

$shout = $this->shoutRepository->findById($shoutId);
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/User/AddUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function handle(ServerRequestInterface $request): ?ResponseInterface
throw new AccessDeniedException();
}

$body = $request->getParsedBody();
$body = (array)$request->getParsedBody();

$this->ui->showHeader();

Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Admin/User/UpdateUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function handle(ServerRequestInterface $request): ?ResponseInterface
throw new AccessDeniedException();
}

$body = $request->getParsedBody();
$body = (array)$request->getParsedBody();

$this->ui->showHeader();

Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Podcast/CreateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
throw new AccessDeniedException();
}

$data = $request->getParsedBody();
$data = (array)$request->getParsedBody();

$catalog = Catalog::create_from_id((int) ($data['catalog'] ?? 0));
if ($catalog === null) {
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Podcast/ImportPodcastsAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
throw new AccessDeniedException();
}

$data = $request->getParsedBody();
$data = (array)$request->getParsedBody();

$catalogId = (int) ($data['catalog'] ?? 0);

Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/Podcast/ShowCreateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
throw new AccessDeniedException();
}

$data = $request->getParsedBody();
$data = (array)$request->getParsedBody();

$this->ui->showHeader();
$this->ui->show(
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Application/PrivateMessage/AddMessageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
return null;
}

$data = $request->getParsedBody();
$data = (array)$request->getParsedBody();

$this->ui->showHeader();

Expand Down

0 comments on commit 1c6ea41

Please sign in to comment.