lint: fix php

pull/460/head
Varun Patil 2023-02-16 13:39:42 -08:00
parent 91697b3523
commit 6a3fda1e0b
1 changed files with 3 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class PlacesSetup extends Command
protected function detectGisType()
{
// Detect database type
$platform = strtolower(get_class($this->connection->getDatabasePlatform()));
$platform = strtolower(\get_class($this->connection->getDatabasePlatform()));
// Test MySQL-like support in databse
if (str_contains($platform, 'mysql') || str_contains($platform, 'mariadb')) {
@ -304,6 +304,7 @@ class PlacesSetup extends Command
}
$this->output->writeln('MySQL-like support detected!');
$this->gisType = GIS_TYPE_MYSQL;
return;
} catch (\Exception $e) {
$this->output->writeln('No MySQL-like support detected');
@ -319,6 +320,7 @@ class PlacesSetup extends Command
}
$this->output->writeln('Postgres native geometry support detected!');
$this->gisType = GIS_TYPE_POSTGRES;
return;
} catch (\Exception $e) {
$this->output->writeln('No Postgres native geometry support detected');