YetiForceCompany/YetiForceCRM

View on GitHub
modules/OpenStreetMap/ConfigTemplate.php

Summary

Maintainability
A
0 mins
Test Coverage
F
33%

syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'
Open

            return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));
Severity: Critical
Found in modules/OpenStreetMap/ConfigTemplate.php by phan

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => ['Accounts', 'Contacts', 'Competition', 'Vendors', 'Partners', 'Leads', 'Locations'],

Spaces must be used to indent lines; tabs are not allowed
Open

            return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

    'routingServer' => [

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => [

Spaces must be used to indent lines; tabs are not allowed
Open

            'OpenStreetMap HOT' => 'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',

Spaces must be used to indent lines; tabs are not allowed
Open

    'cronMaxUpdatedAddresses' => [

Spaces must be used to indent lines; tabs are not allowed
Open

                'apiUrl' => 'http://www.yournavigation.org/api/1.0/gosmore.php',

Spaces must be used to indent lines; tabs are not allowed
Open

                'params' => ['key' => 'b16b1d60-3c8c-4cd6-bae6-07493f23e589'],

Spaces must be used to indent lines; tabs are not allowed
Open

        'validation' => '\App\Validator::text',

Line exceeds 120 characters; contains 131 characters
Open

            'Esri WorldImagery' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => 1000,

Spaces must be used to indent lines; tabs are not allowed
Open

            'Competition' => ['subject', 'email'],

Spaces must be used to indent lines; tabs are not allowed
Open

    'coordinatesServer' => [

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

    'coordinatesServers' => [

Spaces must be used to indent lines; tabs are not allowed
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']",

Spaces must be used to indent lines; tabs are not allowed
Open

        'validation' => '\App\Validator::text',

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',

Spaces must be used to indent lines; tabs are not allowed
Open

    'tileLayerServers' => [

Spaces must be used to indent lines; tabs are not allowed
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));

Line exceeds 120 characters; contains 245 characters
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));

Spaces must be used to indent lines; tabs are not allowed
Open

        },

Spaces must be used to indent lines; tabs are not allowed
Open

        ],

Spaces must be used to indent lines; tabs are not allowed
Open

            'Accounts' => ['accountname', 'email1', 'phone'],

Spaces must be used to indent lines; tabs are not allowed
Open

        'validation' => function () {

Spaces must be used to indent lines; tabs are not allowed
Open

        ],

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => [

Spaces must be used to indent lines; tabs are not allowed
Open

            'OpenStreetMap Default' => 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',

Spaces must be used to indent lines; tabs are not allowed
Open

                'docUrl' => 'https://wiki.openstreetmap.org/wiki/Nominatim',

Spaces must be used to indent lines; tabs are not allowed
Open

            ],

Spaces must be used to indent lines; tabs are not allowed
Open

            ],

Line exceeds 120 characters; contains 208 characters
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'",

Spaces must be used to indent lines; tabs are not allowed
Open

            'Contacts' => ['firstname', 'lastname', 'email', 'phone'],

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => 'Nominatim',

Spaces must be used to indent lines; tabs are not allowed
Open

            ],

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => 'Osrm',

Spaces must be used to indent lines; tabs are not allowed
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'",

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

        'validation' => '\App\Validator::text',

Spaces must be used to indent lines; tabs are not allowed
Open

                'driverName' => 'Yours',

Spaces must be used to indent lines; tabs are not allowed
Open

                'driverName' => 'GraphHopper',

Spaces must be used to indent lines; tabs are not allowed
Open

            'Esri WorldImagery' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',

Spaces must be used to indent lines; tabs are not allowed
Open

        'validation' => '\App\Validator::naturalNumber',

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

        'description' => 'Allow modules.',

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

                'apiUrl' => 'https://nominatim.openstreetmap.org',

Spaces must be used to indent lines; tabs are not allowed
Open

            'GraphHopper' => [

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

        'description' => 'Tile layer url template, url used to load and display tile layers on the map.',

Spaces must be used to indent lines; tabs are not allowed
Open

            'Esri WorldTopoMap' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',

Line exceeds 120 characters; contains 132 characters
Open

            'Esri WorldTopoMap' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => [

Spaces must be used to indent lines; tabs are not allowed
Open

        'validation' => function () {

Spaces must be used to indent lines; tabs are not allowed
Open

            'Leads' => ['company', 'firstname', 'lastname', 'email'],

Spaces must be used to indent lines; tabs are not allowed
Open

            ],

Spaces must be used to indent lines; tabs are not allowed
Open

        'description' => 'Number of entries to be updated in one run of cron',

Spaces must be used to indent lines; tabs are not allowed
Open

        'docTags' => ['var' => 'string[]'],

Spaces must be used to indent lines; tabs are not allowed
Open

            'Partners' => ['subject', 'email'],

Spaces must be used to indent lines; tabs are not allowed
Open

        'description' => 'List of fields from which to show information in the map pin',

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

            'Osrm' => [

Spaces must be used to indent lines; tabs are not allowed
Open

                'driverName' => 'Osrm',

Line exceeds 120 characters; contains 287 characters
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' => []]",

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => [

Spaces must be used to indent lines; tabs are not allowed
Open

        ],

Spaces must be used to indent lines; tabs are not allowed
Open

            $arg = func_get_arg(0);

Spaces must be used to indent lines; tabs are not allowed
Open

            'Nominatim' => [

Spaces must be used to indent lines; tabs are not allowed
Open

    ],

Spaces must be used to indent lines; tabs are not allowed
Open

        ],

Spaces must be used to indent lines; tabs are not allowed
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' => []]",

Spaces must be used to indent lines; tabs are not allowed
Open

            $arg = func_get_arg(0);

Spaces must be used to indent lines; tabs are not allowed
Open

            'Vendors' => ['vendorname', 'email', 'website'],

Spaces must be used to indent lines; tabs are not allowed
Open

            'Locations' => ['subject', 'email']

Spaces must be used to indent lines; tabs are not allowed
Open

        'description' => 'Name of connector to get coordinates.',

Line exceeds 120 characters; contains 326 characters
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']",

Spaces must be used to indent lines; tabs are not allowed
Open

        'description' => 'Name of connector to get routing.',

Spaces must be used to indent lines; tabs are not allowed
Open

                'params' => ['preference' => 'fastest', 'profile' => 'driving-car', 'units' => 'km'],

Spaces must be used to indent lines; tabs are not allowed
Open

    'tileLayerServer' => [

Spaces must be used to indent lines; tabs are not allowed
Open

    'mapModules' => [

Spaces must be used to indent lines; tabs are not allowed
Open

        },

Spaces must be used to indent lines; tabs are not allowed
Open

                'apiUrl' => 'https://graphhopper.com/api/1',

Spaces must be used to indent lines; tabs are not allowed
Open

        'docTags' => ['var' => 'int'],

Spaces must be used to indent lines; tabs are not allowed
Open

    'mapPinFields' => [

Spaces must be used to indent lines; tabs are not allowed
Open

        'docTags' => ['var' => 'array'],

Spaces must be used to indent lines; tabs are not allowed
Open

                'driverName' => 'Nominatim',

Spaces must be used to indent lines; tabs are not allowed
Open

    'routingServers' => [

Spaces must be used to indent lines; tabs are not allowed
Open

            'Yours' => [

Spaces must be used to indent lines; tabs are not allowed
Open

                'apiUrl' => 'https://routing.openstreetmap.de/routed-car',

Space before opening parenthesis of function call prohibited
Open

            return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));

Space before opening parenthesis of function call prohibited
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));

Space before opening parenthesis of function call prohibited
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));

There are no issues that match your filters.

Category
Status