@@ 98-108 (lines=11) @@ | ||
95 | foreach ($validFiles as $vf) { |
|
96 | $validFileList .= $vf."\n"; |
|
97 | } |
|
98 | if ($fileTypeValidateFunc == 'noVidation') { |
|
99 | $checkReturn = array( |
|
100 | EnvironmentCheck::OK, |
|
101 | sprintf('At least these file(s) accessible: %s', $validFileList) |
|
102 | ); |
|
103 | } else { |
|
104 | $checkReturn = array( |
|
105 | EnvironmentCheck::OK, |
|
106 | sprintf('At least these file(s) passed file type validate function "%s": %s', $fileTypeValidateFunc, $validFileList) |
|
107 | ); |
|
108 | } |
|
109 | } else { |
|
110 | if (count($invalidFiles) == 0) { |
|
111 | $checkReturn = array(EnvironmentCheck::OK, 'All files valideted'); |
|
@@ 118-128 (lines=11) @@ | ||
115 | $invalidFileList .= $vf."\n"; |
|
116 | } |
|
117 | ||
118 | if ($fileTypeValidateFunc == 'noVidation') { |
|
119 | $checkReturn = array( |
|
120 | EnvironmentCheck::ERROR, |
|
121 | sprintf('File(s) not accessible: %s', $invalidFileList) |
|
122 | ); |
|
123 | } else { |
|
124 | $checkReturn = array( |
|
125 | EnvironmentCheck::ERROR, |
|
126 | sprintf('File(s) not passing the file type validate function "%s": %s', $fileTypeValidateFunc, $invalidFileList) |
|
127 | ); |
|
128 | } |
|
129 | } |
|
130 | } |
|
131 | } else { |