From 25470375b047e554c6d760e388d8befa69cf46d0 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Sat, 20 Apr 2024 17:26:31 +0200 Subject: [PATCH] prettier --- devrun | 2 +- src/index.php | 92 ++++++++++++++++++++++--------------------------- src/queue | 4 +-- src/queueWorker | 37 ++++++++++---------- 4 files changed, 63 insertions(+), 72 deletions(-) diff --git a/devrun b/devrun index bb1b71b..11508fd 100755 --- a/devrun +++ b/devrun @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -e docker build -t taggor . -docker run -p 8888:80 -v "$PWD/src:/var/www/src" --rm -it taggor "$@" \ No newline at end of file +docker run -p 8888:80 -v "$PWD/src:/var/www/src" --rm -it taggor "$@" diff --git a/src/index.php b/src/index.php index 4586e2e..a35af5c 100644 --- a/src/index.php +++ b/src/index.php @@ -1,57 +1,54 @@ c3RE AuerBoxTag Generator (Download starting) @@ -65,12 +62,9 @@ Your job $jobId is Finished. EOT; - - - } - header('HTTP/1.1 404 Not Found'); - exit; + header("HTTP/1.1 404 Not Found"); + exit(); } $myPositionInQueue++; @@ -87,15 +81,13 @@ Your job $jobId is $myPositionInQueue in the queue. EOT; - exit; + exit(); } - - -$err=''; -switch($_GET['err']){ - case 'notags': - $err='Please provide at least one tag'; +$err = ""; +switch ($_GET["err"]) { + case "notags": + $err = "Please provide at least one tag"; break; } ?> diff --git a/src/queue b/src/queue index 3ca3e8e..8fd346c 100755 --- a/src/queue +++ b/src/queue @@ -1,7 +1,7 @@ #!/usr/bin/env bash -cd "$( dirname "${BASH_SOURCE[0]}" )" +cd "$(dirname "${BASH_SOURCE[0]}")" while :; do sleep 5 & ./queueWorker wait -done \ No newline at end of file +done diff --git a/src/queueWorker b/src/queueWorker index 9024c67..b91732e 100755 --- a/src/queueWorker +++ b/src/queueWorker @@ -1,36 +1,35 @@ #!/usr/bin/env php