PHP Classes

File: util/lint.sh

Recommend this page to a friend!
  Packages of Max   Fenrir   util/lint.sh   Download  
File: util/lint.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Fenrir
Use Discord services using the Web services API
Author: By
Last change:
Date: 4 months ago
Size: 432 bytes
 

 

Contents

Class file image Download
#!/bin/bash # Initialize a variable to track whether any errors were found ERROR_FOUND=0 # Find all PHP files in the src directory and its subdirectories # and lint them using php -l find src/ -type f -name "*.php" -print0 | while IFS= read -r -d $'\0' file; do php -l "$file" >/dev/null 2>&1 # Check the exit code of php -l if [ $? -ne 0 ]; then echo "Found error in file: $file" exit 1; fi done