-1
誰能幫我看看這些錯誤? 我從code checker
插件讓他們,MOODLE-PHP錯誤日誌
if·($this->content·!==·null){
Expected "if (...) {\n"; found "if (...){\n"
#38: ········if(isloggedin()·and·!has_capability('moodle/site:config',·get_context_instance(CONTEXT_SYSTEM)))·{
Expected "if (...) {\n"; found "if(...) {\n"
#44: ············if($courseid·>·1)·{
Expected "if (...) {\n"; found "if(...) {\n"
#49: ················foreach($criteriamods·as·$ctmds)·{
Expected "foreach (...) {\n"; found "foreach(...) {\n"
這真的是一個PHP錯誤日誌?看起來更像是codesniffer結果報告圓括號周圍不正確的間距。 (在不正確的標準Moodle的編碼風格方面) –
要確認 - 這看起來像是從https://moodle.org/plugins/view.php?plugin=local_codechecker輸出,檢查這裏找到HTTP Moodle的編碼風格://文檔.moodle.org的/ dev/Coding_style – davosmith
是Davosmith,這是錯誤的代碼檢查插件 – user2686207