Browse Source

php-cs-fixer

master
vincent 5 days ago
parent
commit
a785c9d1a3
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/Controller/TaskController.php
  2. +3
    -3
      src/Entity/Task.php

+ 1
- 1
src/Controller/TaskController.php View File

@ -110,7 +110,7 @@ class TaskController extends AbstractController
$josmCommands = [
// Charge l’imagerie (fond OSM par défaut)
'imagery' => [
(($project->hasImagery() and substr($project->getImagery(), 0, 4) === 'http') ? 'url' : 'id') => ($project->hasImagery() ? $project->getImagery() : 'osmfr'),
(($project->hasImagery() and 'http' === substr($project->getImagery(), 0, 4)) ? 'url' : 'id') => ($project->hasImagery() ? $project->getImagery() : 'osmfr'),
],
];


+ 3
- 3
src/Entity/Task.php View File

@ -166,11 +166,11 @@ class Task
public function hasGeojson(): bool
{
return (
return
isset($this->geojson)
and !empty($this->geojson)
and ($this->geojson !== '{}')
);
and ('{}' !== $this->geojson)
;
}
public function getGeojson(): ?string


Loading…
Cancel
Save