mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [ADD] Unit testing. Work in progress
* [MOD] Code refactoring * [MOD] Make classes final for performance improvements and avoid some side behaviours
This commit is contained in:
@@ -43,7 +43,7 @@ use SP\Storage\Database\QueryResult;
|
||||
*
|
||||
* @package SP\Repositories\Client
|
||||
*/
|
||||
class ClientRepository extends Repository implements RepositoryItemInterface
|
||||
final class ClientRepository extends Repository implements RepositoryItemInterface
|
||||
{
|
||||
use RepositoryItemTrait;
|
||||
|
||||
@@ -257,7 +257,7 @@ class ClientRepository extends Repository implements RepositoryItemInterface
|
||||
if (empty($ids)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
$queryData = new QueryData();
|
||||
$queryData->setQuery('DELETE FROM Client WHERE id IN (' . $this->getParamsFromArray($ids) . ')');
|
||||
$queryData->setParams($ids);
|
||||
|
||||
Reference in New Issue
Block a user