Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesPlugin.php

    r45588 r45607  
    103103
    104104        $sub_dir = trailingslashit( dirname( $plugin[1] ) ) . 'subdir';
    105         @mkdir( $sub_dir );
    106         @file_put_contents( $sub_dir . '/subfile.php', '<?php // Silence.' );
     105        mkdir( $sub_dir );
     106        file_put_contents( $sub_dir . '/subfile.php', '<?php // Silence.' );
    107107
    108108        $plugin_files = get_plugin_files( plugin_basename( $plugin[1] ) );
     
    416416            }
    417417
    418             @closedir( $mu_plugins );
     418            closedir( $mu_plugins );
    419419
    420420            foreach ( $files_to_move as $file_to_move ) {
     
    443443        }
    444444
    445         @closedir( $mu_plugins );
     445        closedir( $mu_plugins );
    446446
    447447        foreach ( $files_to_move as $file_to_move ) {
Note: See TracChangeset for help on using the changeset viewer.