add cs fixer and PHPStan and activate it (build 436)

This commit is contained in:
crazywhalecc
2022-03-15 18:05:33 +08:00
parent d01bd69aa5
commit 1706afbcd0
163 changed files with 4572 additions and 3588 deletions

View File

@@ -1,10 +1,12 @@
<?php
function loader__generated_id__() {
$obj = json_decode(file_get_contents(__DIR__.'/zmplugin.json'), true);
foreach(($obj["autoload-psr-4"] ?? []) as $v) {
require_once Phar::running().'/'.$v;
}
declare(strict_types=1);
function loader__generated_id__()
{
$obj = json_decode(file_get_contents(__DIR__ . '/zmplugin.json'), true);
foreach (($obj['autoload-psr-4'] ?? []) as $v) {
require_once Phar::running() . '/' . $v;
}
}
return json_decode(file_get_contents(__DIR__.'/zmplugin.json'), true) ?? ['zm_module' => false];
return json_decode(file_get_contents(__DIR__ . '/zmplugin.json'), true) ?? ['zm_module' => false];