kai-jacobsen/kontentblocks

View on GitHub

Showing 4,293 of 4,293 total issues

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 $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 $upload_dir is not named in camelCase.
Open

    public static function uploadFilter($param)
    {


        $dir = filter_input(INPUT_POST, 'upload_folder', FILTER_DEFAULT, 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 $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 renderContext($context, $postId, $areaSettings = array(), $moduleSettings = array())
{
    global $post;
    $postId = (null === $postId) ? $post->ID : $postId;
    $Environment = Utilities::getPostEnvironment($postId);
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 $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 $post_id is not named in camelCase.
Open

function kb_render_area( $area = null, $post_id = null, $additionalArgs = null, $moduleSettings = array(), $echo = true )
{
    \Kontentblocks\renderSingleArea( $area, $post_id, $additionalArgs, $moduleSettings, $echo );
}
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 $ModuleWorkshop 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)
    {
        $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'));
        $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 $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 $post_id is not named in camelCase.
Open

function kb_render_context( $context = null, $post_id = null, $additionalArgs = array() )
{
    \Kontentblocks\renderContext( $context, $post_id, $additionalArgs );
}
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 $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 $ModuleWorkshop 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 $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 $upload_dir is not named in camelCase.
Open

    public static function uploadFilter($param)
    {


        $dir = filter_input(INPUT_POST, 'upload_folder', FILTER_DEFAULT, 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 $Environment is not named in camelCase.
Open

function renderContext($context, $postId, $areaSettings = array(), $moduleSettings = array())
{
    global $post;
    $postId = (null === $postId) ? $post->ID : $postId;
    $Environment = Utilities::getPostEnvironment($postId);
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)
    {
        $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

Severity
Category
Status
Source
Language