add constructor property promotion
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/push/security Pipeline was successful
ci/woodpecker/pr/security Pipeline was successful

add return type of methods
This commit is contained in:
Simon Vieille 2024-06-27 20:27:31 +02:00
commit 7c5654f3bc
Signed by: deblan
GPG key ID: 579388D585F70417
14 changed files with 77 additions and 387 deletions

View file

@ -29,28 +29,14 @@ use OCP\IUserSession;
class AppController extends Controller
{
/**
* @var ConfigProxy
*/
protected $config;
/**
* @var AppRepository
*/
protected $appRepository;
public function __construct(
string $appName,
IRequest $request,
AppRepository $appRepository,
IURLGenerator $urlGenerator,
ConfigProxy $config
protected AppRepository $appRepository,
protected IURLGenerator $urlGenerator,
protected ConfigProxy $config
) {
parent::__construct($appName, $request);
$this->appRepository = $appRepository;
$this->urlGenerator = $urlGenerator;
$this->config = $config;
}
/**