Skip to content

Instantly share code, notes, and snippets.

View hihebark's full-sized avatar
🔻

N.Amara hihebark

🔻
View GitHub Profile
#!/bin/sh
RED='\e[1;41m'
GREEN='\e[1;42m'
NC='\033[0m'
echo "Checking PHPStan..."
phpstan analyse --memory-limit=256M --level 0 app --quiet
RESULT=$?
@hihebark
hihebark / functions.sh
Created September 11, 2024 10:45 — forked from mortenscheel/functions.sh
Laravel specific git hooks for post-checkout and post-merge
#!/usr/bin/env bash
NC='\033[0m' # No Color
YELLOW='\033[0;33m'
CYAN='\033[0;36m'
GREEN='\033[0;32m'
RED='\033[0;31m'
MAGENTA='\033[0;35m'
notify_about_actions_required() {
changed_files="$(git diff-tree -r --name-status --no-commit-id $1 $2)"