Showing 15 of 15 total issues
Method form
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function form( $instance ) {
$selected_layout_id = ! empty( $instance['layout_id'] ) ? \sanitize_key( $instance['layout_id'] ) : '';
$layouts = \get_posts( array(
Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space Open
Open
$instance = array();
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected widgets.php, but found Widgets.php. Open
Open
<?php
- Exclude checks
Class file names should be based on the class name with "class-" prepended. Expected class-plugin.php, but found Plugin.php. Open
Open
<?php
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected plugin.php, but found Plugin.php. Open
Open
<?php
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$args'. Open
Open
echo $args['after_widget'];
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$options'. Open
Open
$options
- Exclude checks
Class file names should be based on the class name with "class-" prepended. Expected class-layout.php, but found Layout.php. Open
Open
<?php
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$args'. Open
Open
echo $args['before_widget'];
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'. Open
Open
\__( 'Layout', 'widgetify-divi-layouts' )
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'. Open
Open
$this->get_field_id( 'layout_id' ),
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected layout.php, but found Layout.php. Open
Open
<?php
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'. Open
Open
$this->get_field_id( 'layout' ),
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$this'. Open
Open
$this->get_field_name( 'layout_id' ),
- Exclude checks
Class file names should be based on the class name with "class-" prepended. Expected class-widgets.php, but found Widgets.php. Open
Open
<?php
- Exclude checks