#!/usr/bin/env bash
# Variables
# shellcheck disable=SC2164
CURRENT_DIRECTORY="$(cd "$(dirname "$0")"; pwd -P)"
PROJECT_DIRECTORY="$(dirname "${CURRENT_DIRECTORY}")"
# shellcheck disable=SC2164
cd "${PROJECT_DIRECTORY}";
# Check PHP Lint
sh "$CURRENT_DIRECTORY/lint"
[ $? -eq 0 ] || exit 1
# Run php-cs-fixer
php "$CURRENT_DIRECTORY/composer" fix-cs
|