Skip to content

Commit af21af2

Browse files
committed
refactor: removed obsolete code
1 parent 1399c5b commit af21af2

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

phpmyfaq/src/phpMyFAQ/Setup.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,13 @@ public function checkMinimumUpdateVersion(string $version): bool
4343
}
4444

4545
/**
46-
* Updates only possible if maintenance mode is enabled.
46+
* Updates only possible if the maintenance mode is enabled.
4747
*/
4848
public function checkMaintenanceMode(): bool
4949
{
5050
return Configuration::getConfigurationInstance()->get('main.maintenanceMode');
5151
}
5252

53-
/**
54-
* Checks if the database file exists.
55-
*/
56-
public function checkDatabaseFile(): bool
57-
{
58-
return !(!file_exists(PMF_ROOT_DIR . '/config/database.php') &&
59-
!file_exists(PMF_ROOT_DIR . '/content/core/config/database.php'));
60-
}
61-
6253
/**
6354
* Checks for the minimum PHP requirement and if the database credentials file is readable.
6455
* @throws Exception

phpmyfaq/src/phpMyFAQ/StopWords.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ class StopWords
2727
{
2828
private string $language;
2929

30-
/**
31-
* Table name.
32-
*/
3330
private readonly string $tableName;
3431

35-
/**
36-
* Constructor.
37-
*/
3832
public function __construct(private readonly Configuration $configuration)
3933
{
4034
$this->tableName = Database::getTablePrefix() . 'faqstopwords';

0 commit comments

Comments
 (0)