diff --git a/package.json b/package.json index 3209d7e0a..909d7e97f 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "files": [ "build/", "src/", - "views/", "uninstall.php", "wp-parsely.php" ], diff --git a/phpstan.neon b/phpstan.neon index 0b43b3f9c..c00d788c7 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,7 +5,6 @@ parameters: paths: - bin/ - src/ - - views/ - tests/ - wp-parsely.php - uninstall.php diff --git a/rector.php b/rector.php index 04d0a029a..16238e4c7 100644 --- a/rector.php +++ b/rector.php @@ -22,7 +22,6 @@ array( __DIR__ . '/src', __DIR__ . '/tests', - __DIR__ . '/views', __DIR__ . '/uninstall.php', __DIR__ . '/wp-parsely.php', ) diff --git a/src/UI/class-settings-page.php b/src/UI/class-settings-page.php index 3e5563bc0..5e756525b 100644 --- a/src/UI/class-settings-page.php +++ b/src/UI/class-settings-page.php @@ -234,7 +234,7 @@ public function display_settings(): void { wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wp-parsely' ) ); } - include_once plugin_dir_path( PARSELY_FILE ) . 'views/parsely-settings.php'; + include_once plugin_dir_path( PARSELY_FILE ) . 'src/UI/settings-page.php'; } /** diff --git a/views/parsely-settings.php b/src/UI/settings-page.php similarity index 100% rename from views/parsely-settings.php rename to src/UI/settings-page.php diff --git a/tests/Integration/UI/SettingsPageTest.php b/tests/Integration/UI/SettingsPageTest.php index e0ac1a958..b838eeeac 100644 --- a/tests/Integration/UI/SettingsPageTest.php +++ b/tests/Integration/UI/SettingsPageTest.php @@ -656,7 +656,7 @@ function () use ( $badge_options ) { $GLOBALS['parsely_settings_page'] = $settings_page; $settings_page->initialize_settings(); - include plugin_dir_path( PARSELY_FILE ) . 'views/parsely-settings.php'; + include plugin_dir_path( PARSELY_FILE ) . 'src/UI/settings-page.php'; self::expectOutputContains( $expected_html ); }