Skip to content

Commit

Permalink
Merge pull request #217 from Yoast/JRF/cs-various-minor-tweaks
Browse files Browse the repository at this point in the history
CS; various minor tweaks
  • Loading branch information
jrfnl authored Dec 16, 2023
2 parents 80bb7bb + 85cffe2 commit 2a613eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/domain-dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,3 @@ private function replace_domain( $domain, $url, $headers ) {
];
}
}

2 changes: 1 addition & 1 deletion src/downgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function downgrade( $target_version ) {
throw new Exception( \esc_html__( 'Could not install the requested version.', 'yoast-test-helper' ) );
}

$downgrade_version = static function( $option ) use ( $target_version ) {
$downgrade_version = static function ( $option ) use ( $target_version ) {
$option['version'] = \sanitize_text_field( $target_version );
return $option;
};
Expand Down
1 change: 0 additions & 1 deletion src/feature-toggler.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function get_controls() {
return '';
}


$fields = '';

foreach ( $this->features as $feature => $label ) {
Expand Down
4 changes: 3 additions & 1 deletion yoast-test-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

use Yoast\WP\Test_Helper\Plugin;

define( 'YOAST_TEST_HELPER_FILE', __FILE__ );
define( 'YOAST_TEST_HELPER_DIR', dirname( YOAST_TEST_HELPER_FILE ) );
define( 'YOAST_TEST_HELPER_VERSION', '1.18-RC6' );
Expand All @@ -41,5 +43,5 @@
require __DIR__ . '/vendor/autoload.php';
}

$yoast_test_helper = new Yoast\WP\Test_Helper\Plugin();
$yoast_test_helper = new Plugin();
$yoast_test_helper->add_hooks();

0 comments on commit 2a613eb

Please sign in to comment.