Merge pull request #18953 from kamil-tekiela/Types-in-DatabaseController #789
Annotations
4 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run Infection for changed files only:
src/Controllers/Server/DatabasesController.php#L82
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->hasStatistics = !empty($request->getParam('statistics'));
$position = (int) $request->getParam('pos');
$sortBy = $request->getParam('sort_by', '');
- Assert::string($sortBy);
+
$this->sortBy = self::SORT_BY_ALLOWED_LIST[array_search($sortBy, self::SORT_BY_ALLOWED_LIST, true)];
$sortOrder = $request->getParam('sort_order', '');
Assert::string($sortOrder);
|
Run Infection for changed files only:
src/Controllers/Server/DatabasesController.php#L86
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
Assert::string($sortBy);
$this->sortBy = self::SORT_BY_ALLOWED_LIST[array_search($sortBy, self::SORT_BY_ALLOWED_LIST, true)];
$sortOrder = $request->getParam('sort_order', '');
- Assert::string($sortOrder);
+
$this->sortOrder = strtolower($sortOrder) !== 'desc' ? 'asc' : 'desc';
$this->addScriptFiles(['server/databases.js']);
$GLOBALS['errorUrl'] = Url::getFromRoute('/');
|
Run Infection for changed files only:
src/Controllers/Server/DatabasesController.php#L87
Escaped Mutant for Mutator "UnwrapStrToLower":
--- Original
+++ New
@@ @@
$this->sortBy = self::SORT_BY_ALLOWED_LIST[array_search($sortBy, self::SORT_BY_ALLOWED_LIST, true)];
$sortOrder = $request->getParam('sort_order', '');
Assert::string($sortOrder);
- $this->sortOrder = strtolower($sortOrder) !== 'desc' ? 'asc' : 'desc';
+ $this->sortOrder = $sortOrder !== 'desc' ? 'asc' : 'desc';
$this->addScriptFiles(['server/databases.js']);
$GLOBALS['errorUrl'] = Url::getFromRoute('/');
if ($this->dbi->isSuperUser()) {
|
The logs for this run have expired and are no longer available.
Loading