for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Audio Player
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the LICENSE.md file.
* @author Marcel Scherello <[email protected]>
* @copyright 2016-2021 Marcel Scherello
*/
namespace OCA\audioplayer\Hooks;
use OCA\audioplayer\Controller;
class UserHooks {
public static function deleteUser($params) {
$userId = $params['uid'];
$app = new \OCA\audioplayer\AppInfo\Application();
$container = $app->getContainer();
$container->query(\OCA\audioplayer\Controller\DbController::class)->resetMediaLibrary($userId, null, true);
OCP\IContainer::query()
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
/** @scrutinizer ignore-deprecated */ $container->query(\OCA\audioplayer\Controller\DbController::class)->resetMediaLibrary($userId, null, true);
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.
}
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.