* [FIX] Fixed wrong behavior when searching for accounts on accounts manager. Thanks to @Weptun for the feedback. Closes #1271

* [ADD] Added missing tests
* [MOD] Code cleanup

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2019-04-21 23:12:45 +02:00
parent b3906afa13
commit 2318796c00
366 changed files with 5141 additions and 3752 deletions

View File

@@ -24,9 +24,11 @@
namespace SP\Modules\Api\Controllers;
use Exception;
use SP\Core\Acl\ActionsInterface;
use SP\Core\Events\Event;
use SP\Core\Events\EventMessage;
use SP\Core\Exceptions\InvalidClassException;
use SP\Modules\Api\Controllers\Help\ConfigHelp;
use SP\Services\Api\ApiResponse;
use SP\Services\Backup\FileBackupService;
@@ -59,7 +61,7 @@ final class ConfigController extends ControllerBase
);
$this->returnResponse(ApiResponse::makeSuccess($path, null, __('Backup process finished')));
} catch (\Exception $e) {
} catch (Exception $e) {
processException($e);
$this->returnResponseException($e);
@@ -92,7 +94,7 @@ final class ConfigController extends ControllerBase
);
$this->returnResponse(ApiResponse::makeSuccess($path, null, __('Export process finished')));
} catch (\Exception $e) {
} catch (Exception $e) {
processException($e);
$this->returnResponseException($e);
@@ -100,7 +102,7 @@ final class ConfigController extends ControllerBase
}
/**
* @throws \SP\Core\Exceptions\InvalidClassException
* @throws InvalidClassException
*/
protected function initialize()
{