Skip to content
Snippets Groups Projects
Commit b128813e authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Fix strings "does not exists"

parent 685d3483
No related branches found
No related tags found
No related merge requests found
...@@ -274,7 +274,7 @@ foreach ($all_sp_metadata as $sp_entityid => $sp_values) { ...@@ -274,7 +274,7 @@ foreach ($all_sp_metadata as $sp_entityid => $sp_values) {
\SimpleSAML\Logger::info('consentAdmin: ok'); \SimpleSAML\Logger::info('consentAdmin: ok');
$sp_status = "ok"; $sp_status = "ok";
} }
// Consent does not exists // Consent does not exist
} else { } else {
SimpleSAML\Logger::info('consentAdmin: none'); SimpleSAML\Logger::info('consentAdmin: none');
$sp_status = "none"; $sp_status = "none";
......
...@@ -28,12 +28,12 @@ function statistics_hook_sanitycheck(&$hookinfo) ...@@ -28,12 +28,12 @@ function statistics_hook_sanitycheck(&$hookinfo)
$hookinfo['errors'][] = '[statistics] Statistics dir ['.$statdir.'] is not writable'; $hookinfo['errors'][] = '[statistics] Statistics dir ['.$statdir.'] is not writable';
} }
} else { } else {
$hookinfo['errors'][] = '[statistics] Statistics dir ['.$statdir.'] does not exists'; $hookinfo['errors'][] = '[statistics] Statistics dir ['.$statdir.'] does not exist';
} }
if (file_exists($inputfile)) { if (file_exists($inputfile)) {
$hookinfo['info'][] = '[statistics] Input file ['.$inputfile.'] exists'; $hookinfo['info'][] = '[statistics] Input file ['.$inputfile.'] exists';
} else { } else {
$hookinfo['errors'][] = '[statistics] Input file ['.$inputfile.'] does not exists'; $hookinfo['errors'][] = '[statistics] Input file ['.$inputfile.'] does not exist';
} }
} }
...@@ -33,7 +33,7 @@ class Ruleset ...@@ -33,7 +33,7 @@ class Ruleset
* Walk through file lists, and get available [rule][fileslot]... * Walk through file lists, and get available [rule][fileslot]...
*/ */
if (!is_dir($statdir)) { if (!is_dir($statdir)) {
throw new \Exception('Statisics output directory ['.$statdir.'] does not exists.'); throw new \Exception('Statisics output directory ['.$statdir.'] does not exist.');
} }
$filelist = scandir($statdir); $filelist = scandir($statdir);
$this->available = []; $this->available = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment