mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 15:15:35 +08:00
add cs fixer and PHPStan and activate it (build 436)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user