fix phpstan
parent
15c5ecfa52
commit
750c7c15f9
|
@ -18,7 +18,7 @@ $this->registerModule(
|
||||||
'improve',
|
'improve',
|
||||||
'Tiny tools to fix things for module devs',
|
'Tiny tools to fix things for module devs',
|
||||||
'Jean-Christian Denis and contributors',
|
'Jean-Christian Denis and contributors',
|
||||||
'1.3',
|
'1.3.1',
|
||||||
[
|
[
|
||||||
'requires' => [
|
'requires' => [
|
||||||
['php', '8.1'],
|
['php', '8.1'],
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="improve">
|
<module id="improve">
|
||||||
<name>improve</name>
|
<name>improve</name>
|
||||||
<version>1.3</version>
|
<version>1.3.1</version>
|
||||||
<author>Jean-Christian Denis and contributors</author>
|
<author>Jean-Christian Denis and contributors</author>
|
||||||
<desc>Tiny tools to fix things for module devs</desc>
|
<desc>Tiny tools to fix things for module devs</desc>
|
||||||
<file>https://github.com/JcDenis/improve/releases/download/v1.3/plugin-improve.zip</file>
|
<file>https://github.com/JcDenis/improve/releases/download/v1.3.1/plugin-improve.zip</file>
|
||||||
<da:dcmin>2.27</da:dcmin>
|
<da:dcmin>2.27</da:dcmin>
|
||||||
<da:details>https://github.com/JcDenis/improve</da:details>
|
<da:details>https://github.com/JcDenis/improve</da:details>
|
||||||
<da:support>https://github.com/JcDenis/improve</da:support>
|
<da:support>https://github.com/JcDenis/improve</da:support>
|
||||||
|
|
|
@ -90,7 +90,7 @@ class PhpStan extends Task
|
||||||
|
|
||||||
public function isConfigured(): bool
|
public function isConfigured(): bool
|
||||||
{
|
{
|
||||||
return !dcCore::app()->blog?->settings->get(My::id())->get('nodetails');
|
return !My::settings()?->get('nodetails');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function header(): ?string
|
public function header(): ?string
|
||||||
|
@ -170,7 +170,7 @@ class PhpStan extends Task
|
||||||
]),
|
]),
|
||||||
])->render() . (
|
])->render() . (
|
||||||
!self::$user_ui_colorsyntax ? '' :
|
!self::$user_ui_colorsyntax ? '' :
|
||||||
Page::jsLoad('/src/Task/phpstan/phpstan.improve.js') .
|
My::jsLoad('/src/Task/phpstan/phpstan.improve.js') .
|
||||||
Page::jsRunCodeMirror('editor', 'file_content', 'dotclear', self::$user_ui_colorsyntax_theme)
|
Page::jsRunCodeMirror('editor', 'file_content', 'dotclear', self::$user_ui_colorsyntax_theme)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue