PHP Classes
elePHPant
Icontem

File: bin/pre-commit

Recommend this page to a friend!
  Classes of Marco Cesarato  >  PHP Malware Scanner Free Tool  >  bin/pre-commit  >  Download  
File: bin/pre-commit
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Malware Scanner Free Tool
Scan PHP files to find malicious code
Author: By
Last change:
Date: 21 days ago
Size: 355 bytes
 

 

Contents

Class file image Download
#!/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