apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -11,12 +11,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Doctrine\Model;
use Exception;
use JsonSerializable;
use function json_encode;
class Point implements JsonSerializable
class Point implements \JsonSerializable
{
public static string $SRID = '4326';
@@ -28,7 +23,7 @@ class Point implements JsonSerializable
return self::fromLonLat($array['coordinates'][0], $array['coordinates'][1]);
}
throw new Exception('Unable to build a point from input data.');
throw new \Exception('Unable to build a point from input data.');
}
public static function fromGeoJson(string $geojson): self
@@ -88,7 +83,7 @@ class Point implements JsonSerializable
{
$array = $this->toArrayGeoJson();
return json_encode($array, JSON_THROW_ON_ERROR);
return \json_encode($array, JSON_THROW_ON_ERROR);
}
public function toWKT(): string