Skip to content

Commit

Permalink
Test linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhynds committed Dec 1, 2023
1 parent 46ee086 commit 292df0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,12 @@ function lint_php {
echo -e "${C_RED}PHP-CS-Fixer is not installed. Install it with \`composer install\`.${NO_FORMAT}" && return 1
fi

echo -e "${C_CYAN}Linting PHP-CS-Fixer...${NO_FORMAT}"
php_files_arg=$(echo "$php_files" | tr '\n' ' ')

echo -e "${C_CYAN}Linting PHP-CS-Fixer...${NO_FORMAT}"
$phpcsfixer fix -q || return 1

git add $php_files_arg
}

echo -e "${NO_FORMAT}${F_BOLD}Running pre-commit hook...${NO_FORMAT}"
Expand Down
2 changes: 1 addition & 1 deletion src/Lti1p1Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Packback\Lti1p3;

/**
/**
* Used for migrations from LTI 1.1 to LTI 1.3
*
* @see IMigrationDatabase
Expand Down

0 comments on commit 292df0e

Please sign in to comment.