dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Expected 0 spaces before closing bracket; 1 found
Open

        if ( in_array( 'wp-i18n', $script_asset['dependencies'], true ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between argument "$registered_styles" and closing bracket; 1 found
Open

                    function( $id ) use ( $registered_styles ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( did_action( $action ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between opening bracket and type hint "string"; 1 found
Open

function register_script( string $relpath, array $extra_deps = [] ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$id"; 1 found
Open

                    function( $id ) use ( $registered_styles ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( file_exists( ABT_ROOT_PATH . $style_suffix ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$id"; 1 found
Open

        function () use ( $id, $data ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between argument "$id" and closing bracket; 1 found
Open

                    function( $id ) use ( $registered_styles ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

                    function( $id ) use ( $registered_styles ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between argument "$data" and closing bracket; 1 found
Open

        function () use ( $id, $data ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between argument "$data" and closing bracket; 1 found
Open

function add_json_script( string $id, $data ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between opening bracket and argument "$registered_styles"; 1 found
Open

                    function( $id ) use ( $registered_styles ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between argument "$extra_deps" and closing bracket; 1 found
Open

function register_script( string $relpath, array $extra_deps = [] ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( file_exists( ABT_ROOT_PATH . $script_suffix ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces between opening bracket and type hint "string"; 1 found
Open

function add_json_script( string $id, $data ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                                    <?php if ( ! extension_loaded( 'dom' ) ) : ?>

Expected 0 spaces before closing bracket; 1 found
Open

                                    <?php if ( version_compare( PHP_VERSION, '7.2', '<' ) ) : ?>

Expected 0 spaces before closing bracket; 1 found
Open

                                    <?php if ( extension_loaded( 'dom' ) ) : ?>

Expected 0 spaces before closing bracket; 1 found
Open

                                    <?php if ( ! extension_loaded( 'libxml' ) ) : ?>

Expected 0 spaces before closing bracket; 1 found
Open

                                    <?php if ( extension_loaded( 'libxml' ) ) : ?>
Severity
Category
Status
Source
Language