Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit ff58016

Browse files
author
Jamie Snape
committed
Tweak trailing whitespace test so that fails if file does not exist
1 parent 584ce1d commit ff58016

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/library/MIDASStyleChecker.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
function _getMatchingFilesRecursive($src, $dir = '')
6262
{
6363
$files = array();
64+
if(!file_exists($src))
65+
{
66+
echo 'ERROR: '.$src.' does not exist';
67+
exit;
68+
}
6469
if(!is_dir($src))
6570
{
6671
$files[] = $src;

0 commit comments

Comments
 (0)