modules/OpenStreetMap/ConfigTemplate.php
syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'
Open
Open
return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => ['Accounts', 'Contacts', 'Competition', 'Vendors', 'Partners', 'Leads', 'Locations'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'routingServer' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'OpenStreetMap HOT' => 'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'cronMaxUpdatedAddresses' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'apiUrl' => 'http://www.yournavigation.org/api/1.0/gosmore.php',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'params' => ['key' => 'b16b1d60-3c8c-4cd6-bae6-07493f23e589'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::text',
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
'Esri WorldImagery' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 1000,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Competition' => ['subject', 'email'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'coordinatesServer' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'coordinatesServers' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "List of available coordinate servers, free list of servers is available on page https://wiki.openstreetmap.org/wiki/Search_engines\n Value: 'server name' => ['driverName' => 'Nominatim', 'apiUrl' => 'https://nominatim.openstreetmap.org', 'docUrl' => 'https://wiki.openstreetmap.org/wiki/Nominatim']",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::text',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'tileLayerServers' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v, $k) => \App\Validator::alnum($k) && \is_array($v) && \count($v) === \count(array_filter($v, fn ($i) => \App\Validator::alnum($i))), ARRAY_FILTER_USE_BOTH));
- Exclude checks
Line exceeds 120 characters; contains 245 characters Open
Open
return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v, $k) => \App\Validator::alnum($k) && \is_array($v) && \count($v) === \count(array_filter($v, fn ($i) => \App\Validator::alnum($i))), ARRAY_FILTER_USE_BOTH));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Accounts' => ['accountname', 'email1', 'phone'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'OpenStreetMap Default' => 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'docUrl' => 'https://wiki.openstreetmap.org/wiki/Nominatim',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Line exceeds 120 characters; contains 208 characters Open
Open
'description' => "List of available Tile layer servers, free list of servers is available on page https://wiki.openstreetmap.org/wiki/Tile_servers\n Value: 'server name' => 'Tile layer url template'",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Contacts' => ['firstname', 'lastname', 'email', 'phone'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'Nominatim',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => 'Osrm',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "List of available Tile layer servers, free list of servers is available on page https://wiki.openstreetmap.org/wiki/Tile_servers\n Value: 'server name' => 'Tile layer url template'",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::text',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'driverName' => 'Yours',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'driverName' => 'GraphHopper',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Esri WorldImagery' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => '\App\Validator::naturalNumber',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Allow modules.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'apiUrl' => 'https://nominatim.openstreetmap.org',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'GraphHopper' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Tile layer url template, url used to load and display tile layers on the map.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Esri WorldTopoMap' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',
- Exclude checks
Line exceeds 120 characters; contains 132 characters Open
Open
'Esri WorldTopoMap' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'validation' => function () {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Leads' => ['company', 'firstname', 'lastname', 'email'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Number of entries to be updated in one run of cron',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'docTags' => ['var' => 'string[]'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Partners' => ['subject', 'email'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'List of fields from which to show information in the map pin',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Osrm' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'driverName' => 'Osrm',
- Exclude checks
Line exceeds 120 characters; contains 287 characters Open
Open
'description' => "List of available routing servers, free list of servers is available on page https://wiki.openstreetmap.org/wiki/Routing/online_routers\n Value: 'server name' => ['driverName' => 'xxx', 'apiUrl' => 'https://xxx.org', 'docUrl' => 'https://xxx', 'params' => []]",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'default' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Nominatim' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => "List of available routing servers, free list of servers is available on page https://wiki.openstreetmap.org/wiki/Routing/online_routers\n Value: 'server name' => ['driverName' => 'xxx', 'apiUrl' => 'https://xxx.org', 'docUrl' => 'https://xxx', 'params' => []]",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$arg = func_get_arg(0);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Vendors' => ['vendorname', 'email', 'website'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Locations' => ['subject', 'email']
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Name of connector to get coordinates.',
- Exclude checks
Line exceeds 120 characters; contains 326 characters Open
Open
'description' => "List of available coordinate servers, free list of servers is available on page https://wiki.openstreetmap.org/wiki/Search_engines\n Value: 'server name' => ['driverName' => 'Nominatim', 'apiUrl' => 'https://nominatim.openstreetmap.org', 'docUrl' => 'https://wiki.openstreetmap.org/wiki/Nominatim']",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'description' => 'Name of connector to get routing.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'params' => ['preference' => 'fastest', 'profile' => 'driving-car', 'units' => 'km'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'tileLayerServer' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'mapModules' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
},
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'apiUrl' => 'https://graphhopper.com/api/1',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'docTags' => ['var' => 'int'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'mapPinFields' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'docTags' => ['var' => 'array'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'driverName' => 'Nominatim',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'routingServers' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Yours' => [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'apiUrl' => 'https://routing.openstreetmap.de/routed-car',
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v, $k) => \App\Validator::alnum($k) && \is_array($v) && \count($v) === \count(array_filter($v, fn ($i) => \App\Validator::alnum($i))), ARRAY_FILTER_USE_BOTH));
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v, $k) => \App\Validator::alnum($k) && \is_array($v) && \count($v) === \count(array_filter($v, fn ($i) => \App\Validator::alnum($i))), ARRAY_FILTER_USE_BOTH));
- Exclude checks