Passed
Pull Request — master (#122)
by
unknown
02:19
created

CKANRegistryPageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCKANClientConfig() 0 5 1
1
<?php
2
3
namespace SilverStripe\CKANRegistry\Page;
4
5
use PageController;
0 ignored issues
show
Bug introduced by
The type PageController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class CKANRegistryPageController extends PageController
8
{
9
    /**
10
     * Loads model data encapsulated as JSON in order to power front end technologies used to render that
11
     * data. Includes critical info such as the CKAN site to query (e.g. which domain, datastore, etc.)
12
     * but also can be extended to be used for configuring the component used to show this (e.g. React.js
13
     * or Vue.js component configuration).
14
     *
15
     * @return string
16
     */
17
    public function getCKANClientConfig()
18
    {
19
        $config = '{}';
20
        $this->extend('updateCKANClientConfig', $config);
21
        return $config;
22
    }
23
}
24