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)
    {
        $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);

Severity: Minor
Found in core/Fields/Definitions/File.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 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 $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)
    {
        $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

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

    public static function handleUpload()
    {
        header( 'Content-Type: text/html; charset=UTF-8' );

        if (!defined( 'DOING_AJAX' )) {
Severity: Minor
Found in core/Fields/Definitions/Plupload.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

    private function normalizeConfiguration( $post_id )
    {
        $collection = array();
        $layout = get_post_meta( $post_id, 'kb_kontentblocks', true );

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

    private function settingsForm($data)
    {
        $templateData = array(
            'strings' => I18n::getPackages('Areas', 'Common'),
            'editMode' => (!empty($data)),
Severity: Minor
Found in core/Backend/Dynamic/DynamicAreas.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

    public function addRowClass($classes, $class, $post_id)
    {
        $screen = get_current_screen();
        if (isset($screen->post_type) && $screen->post_type === 'kb-dyar' && $screen->base === 'edit') {

Severity: Minor
Found in core/Backend/Dynamic/DynamicAreas.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 $left_revision is not named in camelCase.
Open

    public function revisionFields($return)
    {

        //globals
        global $post, $pagenow;

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

    public function observeQuery()
    {
        $input = filter_input_array(
            INPUT_GET,
            array(

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

    public static function handleUpload()
    {
        header( 'Content-Type: text/html; charset=UTF-8' );

        if (!defined( 'DOING_AJAX' )) {
Severity: Minor
Found in core/Fields/Definitions/Plupload.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 $setup_data is not named in camelCase.
Open

    public function observeQuery()
    {
        $input = filter_input_array(
            INPUT_GET,
            array(

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

    private function prepareFromConfiguration( $index, $post_id )
    {
        $i = 1;
        $collection = array();
        $Storage = new ModuleStorage( $post_id );

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

    private function saveConfiguration( $config, $name, $post_id )
    {

        $configurations = get_option( 'kb_layout_configurations' );
        $id = sanitize_title( $name );

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

    private function prepareFromConfiguration( $index, $post_id )
    {
        $i = 1;
        $collection = array();
        $Storage = new ModuleStorage( $post_id );

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

    public function revisionFields($return)
    {

        //globals
        global $post, $pagenow;

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

    public static function enqueueScripts()
    {
        global $post;
        $post_id = ( !empty( $post->ID ) ) ? $post->ID : null;
Severity: Minor
Found in core/Fields/Definitions/Plupload.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

    public static function handleUpload()
    {
        header( 'Content-Type: text/html; charset=UTF-8' );

        if (!defined( 'DOING_AJAX' )) {
Severity: Minor
Found in core/Fields/Definitions/Plupload.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

Severity
Category
Status
Source
Language