X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/1ee8f2a206337af0c910400444c312d354cd4dea..6bde4b82ec04ee5a1622220663bcacca2ec301d6:/src/phorkie/SetupCheck.php diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php index 95fd759..b205b87 100644 --- a/src/phorkie/SetupCheck.php +++ b/src/phorkie/SetupCheck.php @@ -74,14 +74,17 @@ class SetupCheck public function checkDatabase() { - if ($this->elasticsearch != '') { + if ($this->elasticsearch == '') { return; } $es = parse_url($this->elasticsearch); if (!preg_match("#/.+/#", $es['path'], $matches)) { - $this->fail('Improper elasticsearch url. Elasticsearch requires a' - . ' search domain to store your data. (e.g. http://localhost:9200/phorkie/)'); + $this->fail( + 'Improper elasticsearch url. Elasticsearch requires a' + . ' search domain to store your data.' + . ' (e.g. http://localhost:9200/phorkie/)' + ); } $dbs = new Database(); $dbs->getSetup()->setup();