aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/php/exec.mjs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-03-06 02:18:40 +0900
committernsfisis <nsfisis@gmail.com>2026-03-06 02:18:40 +0900
commit46f9ba5d8c295454381655e6ec02ad3cf8bd79db (patch)
treec54719cb129ee05f96c4898219588062f71daa36 /worker/php/exec.mjs
parent27f509ccf4fbfeaa1bc2580ae2251461dc44ebfa (diff)
downloadphperkaigi-2026-albatross-46f9ba5d8c295454381655e6ec02ad3cf8bd79db.tar.gz
phperkaigi-2026-albatross-46f9ba5d8c295454381655e6ec02ad3cf8bd79db.tar.zst
phperkaigi-2026-albatross-46f9ba5d8c295454381655e6ec02ad3cf8bd79db.zip
style: switch from tab to space indentation in frontend and worker/php
Update biome.json indentStyle from "tab" to "space" and reformat all files in both workspaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'worker/php/exec.mjs')
-rw-r--r--worker/php/exec.mjs30
1 files changed, 15 insertions, 15 deletions
diff --git a/worker/php/exec.mjs b/worker/php/exec.mjs
index 7403dfc..f1cb361 100644
--- a/worker/php/exec.mjs
+++ b/worker/php/exec.mjs
@@ -2,22 +2,22 @@ import { buildResult, createIOCallbacks, preprocessCode } from "./lib.mjs";
import PHPWasm from "./php-wasm.js";
process.once("message", async ({ code: originalCode, input }) => {
- const code = preprocessCode(originalCode);
- const io = createIOCallbacks(input);
+ const code = preprocessCode(originalCode);
+ const io = createIOCallbacks(input);
- const { ccall } = await PHPWasm({
- stdin: io.stdin,
- stdout: io.stdout,
- stderr: io.stderr,
- });
+ const { ccall } = await PHPWasm({
+ stdin: io.stdin,
+ stdout: io.stdout,
+ stderr: io.stderr,
+ });
- let err;
- let result;
- try {
- result = ccall("php_wasm_run", "number", ["string"], [code]);
- } catch (e) {
- err = e;
- }
+ let err;
+ let result;
+ try {
+ result = ccall("php_wasm_run", "number", ["string"], [code]);
+ } catch (e) {
+ err = e;
+ }
- process.send(buildResult(err, result, io.getStdout, io.getStderr));
+ process.send(buildResult(err, result, io.getStdout, io.getStderr));
});