Add PHPStan and other quality checks
Similar to FreshRSS core Contributes to https://github.com/FreshRSS/Extensions/issues/184
This commit is contained in:
parent
a86467db48
commit
b49596818c
59 changed files with 1173 additions and 404 deletions
|
|
@ -1,14 +1,22 @@
|
|||
<?php
|
||||
|
||||
class FreshExtension_quickCollapse_Controller extends Minz_ActionController {
|
||||
public function jsVarsAction() {
|
||||
|
||||
/** @var QuickCollapse\View */
|
||||
protected $view;
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct(QuickCollapse\View::class);
|
||||
}
|
||||
|
||||
public function jsVarsAction(): void {
|
||||
$extension = Minz_ExtensionManager::findExtension('Quick Collapse');
|
||||
|
||||
$this->view->icon_url_in = $extension->getFileUrl('in.svg', 'svg');
|
||||
$this->view->icon_url_out = $extension->getFileUrl('out.svg', 'svg');
|
||||
if ($extension !== null) {
|
||||
$this->view->icon_url_in = $extension->getFileUrl('in.svg', 'svg');
|
||||
$this->view->icon_url_out = $extension->getFileUrl('out.svg', 'svg');
|
||||
}
|
||||
$this->view->i18n_toggle_collapse = _t('gen.js.toggle_collapse');
|
||||
|
||||
$this->view->_layout(false);
|
||||
$this->view->_layout(null);
|
||||
$this->view->_path('quickCollapse/vars.js');
|
||||
header('Content-Type: application/javascript');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue