diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..acf819b --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,27 @@ +name: lint +run-name: lint is launched by ${{ github.actor }} +on: [push] +jobs: + check: + runs-on: ubuntu-latest + name: lint + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - name: Install linters using Composer + run: | + export COMPOSER_HOME=/tmp + echo "{}" > composer.json + composer config --no-interaction allow-plugins.bamarni/composer-bin-plugin true + composer require --dev bamarni/composer-bin-plugin + composer bin phplint require --dev overtrue/phplint + composer require --dev friendsofphp/php-cs-fixer + - name: Lint + run: vendor/bin/phplint --no-cache --no-progress --exclude=vendor --verbose + - name: PHP CS Fixer + run: vendor/bin/php-cs-fixer fix --dry-run --verbose --diff . + - run: echo "🍏 This job's status is ${{ job.status }}." + diff --git a/401.php b/401.php index 7a00a66..b2dbd09 100644 --- a/401.php +++ b/401.php @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/footer.php b/footer.php index 002065a..4a001ee 100644 --- a/footer.php +++ b/footer.php @@ -1,15 +1,18 @@
\n\n\n | \n"; -if ($HTTP_GET_VARS["IFRANCE"] =="1") - echo "{=compt_puce_b} | \n"; +if ($HTTP_GET_VARS["IFRANCE"] == "1") { + echo "{=compt_puce_b} | \n"; +} echo "\n\n\n | @@ -20,4 +23,3 @@ echo "