[ 'old' => '配置文件 → 验证码设置', 'new' => '站点设置 → 验证码设置', ], 'registration-email-whitelist.md' => [ 'old' => '配置文件 → 注册设置', 'new' => '站点设置 → 注册设置', ], ]; foreach ($documents as $name => $phrases) { $contents = file_get_contents($root . '/docs/' . $name); if (!is_string($contents) || str_contains($contents, $phrases['old']) || !str_contains($contents, $phrases['new'])) { throw new RuntimeException( $name . ' must use the current administrator navigation name.' ); } } echo "Administrator documentation terminology contract passed.\n";