kai-jacobsen/kontentblocks

View on GitHub

Showing 4,293 of 4,293 total issues

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $view = wp_unslash($request->request->get('view', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $view = wp_unslash($request->request->get('view', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $view = wp_unslash($request->request->get('view', null));
        $module = wp_unslash($request->request->get('module'));
        $string = wp_unslash($request->request->get('tplstring', ''));

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

function renderSideAreas($postId, $areaSettings = array(), $moduleSettings = array())
{
    global $post;
    $post_id = (null === $postId) ? $post->ID : $postId;
    $areas = get_post_meta($post_id, 'active_sidebar_areas', true);
Severity: Minor
Found in includes/kb-api.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $area_id is not named in camelCase.
Open

function has_modules( $area_id, $post_id = null )
{
    return \Kontentblocks\hasModules( $area_id, $post_id );
}
Severity: Minor
Found in includes/wp-api.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $tplName = wp_unslash($request->request->get('filename', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Module is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $view = wp_unslash($request->request->get('view', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ModuleWorkshop is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $view = wp_unslash($request->request->get('view', null));
        $module = wp_unslash($request->request->get('module'));
        $string = wp_unslash($request->request->get('tplstring', ''));

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Panel is not named in camelCase.
Open

function getPostPanel($panelId = null, $postId = null)
{
    if (is_null($postId)) {
        $postId = get_the_ID();
    }
Severity: Minor
Found in includes/kb-api.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Module is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $tplName = wp_unslash($request->request->get('filename', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Module is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $view = wp_unslash($request->request->get('view', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $view = wp_unslash($request->request->get('view', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $view = wp_unslash($request->request->get('view', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $view = wp_unslash($request->request->get('view', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Area is not named in camelCase.
Open

    protected static function action(Request $request)
    {

        $postId = $request->request->getInt('postId', null);
        $areaId = $request->request->filter('areaId', null, FILTER_SANITIZE_STRING);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Module is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $view = wp_unslash($request->request->get('view', null));
        $module = wp_unslash($request->request->get('module'));
        $string = wp_unslash($request->request->get('tplstring', ''));

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

function renderSingleArea($areaId, $post_id = null, $areaSettings = array(), $moduleSettings = array(), $echo = true)
{
    global $post;
    $postId = (is_null($post_id) && !is_null($post)) ? $post->ID : $post_id;

Severity: Minor
Found in includes/kb-api.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Environment is not named in camelCase.
Open

function getPostPanel($panelId = null, $postId = null)
{
    if (is_null($postId)) {
        $postId = get_the_ID();
    }
Severity: Minor
Found in includes/kb-api.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $View is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $module = wp_unslash($request->request->get('module'));
        $tplName = wp_unslash($request->request->get('filename', ''));
        $environment = Utilities::getPostEnvironment($module['postId']);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ModuleWorkshop is not named in camelCase.
Open

    protected static function action(Request $request)
    {
        $file = $request->request->get('viewfile');
        $path = $file['rootPath'] . $file['subPath'] . $file['filename'];
        $data = file_get_contents($path);

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language