Skip to content

Commit

Permalink
docs(Page/Form Managers): remove not needed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
J9rem authored and mrflos committed May 10, 2024
1 parent 5d89530 commit 75f0af4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions includes/services/PageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ public function getAll(): array
*/
public function getReadablePageTags(): array
{
/**
* @var string $sqlRequest
*/
$sqlRequest = <<<SQL
SELECT tag,owner FROM {$this->dbService->prefixTable('pages')} WHERE LATEST = 'Y' ORDER BY tag
SQL;
Expand All @@ -239,9 +236,6 @@ public function getReadablePageTags(): array
if (!$this->wiki->UserIsAdmin()) {
$sqlRequest .= $this->aclService->updateRequestWithACL();
}
/**
* @var array $pages - list of pages ['tag' => string,'owner' => string]
*/
$pages = $this->dbService->loadAll($sqlRequest);
return array_map(function ($page) {
// cache page's owner to prevent reload of page from sql or infinite loop in some case
Expand Down
3 changes: 0 additions & 3 deletions tools/bazar/services/FormManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ public function getFromRawData($form)
public function getAll(): array
{
if (!$this->cacheValidatedForAll) {
/**
* @var array $forms - forms extracted from database
*/
$forms = $this->dbService->loadAll("SELECT * FROM {$this->dbService->prefixTable('nature')} ORDER BY bn_label_nature ASC");
foreach ($forms as $form) {
if (!empty($form['bn_id_nature'])) {
Expand Down

0 comments on commit 75f0af4

Please sign in to comment.