mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-05 06:18:39 +01:00
Convert array syntax and other minor code style adjustments.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
|
||||
* @filesource
|
||||
*/
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper;
|
||||
|
||||
use Contao\Model;
|
||||
@@ -30,14 +31,14 @@ class OptionsBuilder
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $options = array();
|
||||
private $options = [];
|
||||
|
||||
/**
|
||||
* Conditional option mapping.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $conditional = array();
|
||||
private $conditional = [];
|
||||
|
||||
/**
|
||||
* Add a option mapping.
|
||||
@@ -253,7 +254,7 @@ class OptionsBuilder
|
||||
*/
|
||||
private static function getDefaultOption($option, $definition)
|
||||
{
|
||||
$keys = array('has', 'is', 'get');
|
||||
$keys = ['has', 'is', 'get'];
|
||||
$suffix = ucfirst($option);
|
||||
|
||||
foreach ($keys as $key) {
|
||||
|
||||
Reference in New Issue
Block a user