Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond authored and adrolli committed Jul 24, 2024
1 parent d690d2f commit 1542f78
Show file tree
Hide file tree
Showing 201 changed files with 499 additions and 499 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function collectExpiries()
{
$jobs = config('expiry.collect_expiries_jobs', []);
foreach ($jobs as $jobClass) {
dispatch(new $jobClass());
dispatch(new $jobClass);
}

Notification::make()
Expand Down
2 changes: 1 addition & 1 deletion packages/press/src/Providers/WordPressUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class WordPressUserProvider extends EloquentUserProvider
public function __construct($hasher, $model)
{
parent::__construct($hasher, $model);
$this->wpAuthService = new WordPressAuthService();
$this->wpAuthService = new WordPressAuthService;
}

public function validateCredentials(UserContract $user, array $credentials)
Expand Down
2 changes: 1 addition & 1 deletion packages/security/src/Services/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function authenticate(): Redirector|RedirectResponse|LoginResponse|null
}
$user = $query->first();
if (config('security.wpModel') && $user instanceof (config('security.wpModel'))) {
$wpAuthService = new \Moox\Security\Services\WordPressAuthService();
$wpAuthService = new \Moox\Security\Services\WordPressAuthService;

if (! $user || ! $wpAuthService->checkPassword($credentials['password'], $user->user_pass)) {
$this->throwFailureValidationException();
Expand Down
2 changes: 1 addition & 1 deletion public/wp/wp-admin/customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
}

$registered = $wp_scripts->registered;
$wp_scripts = new WP_Scripts();
$wp_scripts = new WP_Scripts;
$wp_scripts->registered = $registered;

add_action('customize_controls_print_scripts', 'print_head_scripts', 20);
Expand Down
24 changes: 12 additions & 12 deletions public/wp/wp-admin/includes/ajax-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ function wp_ajax_add_link_category($action)
}

$names = explode(',', wp_unslash($_POST['newcat']));
$x = new WP_Ajax_Response();
$x = new WP_Ajax_Response;

foreach ($names as $cat_name) {
$cat_name = trim($cat_name);
Expand Down Expand Up @@ -1114,7 +1114,7 @@ function wp_ajax_add_tag()
wp_die(-1);
}

$x = new WP_Ajax_Response();
$x = new WP_Ajax_Response;

$tag = wp_insert_term($_POST['tag-name'], $taxonomy, $_POST);

Expand Down Expand Up @@ -1294,7 +1294,7 @@ function wp_ajax_get_comments($action)
wp_die(1);
}

$x = new WP_Ajax_Response();
$x = new WP_Ajax_Response;

ob_start();
foreach ($wp_list_table->items as $comment) {
Expand Down Expand Up @@ -1472,7 +1472,7 @@ function wp_ajax_replyto_comment($action)
$response['supplemental']['parent_post_id'] = $parent->comment_post_ID;
}

$x = new WP_Ajax_Response();
$x = new WP_Ajax_Response;
$x->add($response);
$x->send();
}
Expand Down Expand Up @@ -1519,7 +1519,7 @@ function wp_ajax_edit_comment()
$wp_list_table->single_row($comment);
$comment_list_item = ob_get_clean();

$x = new WP_Ajax_Response();
$x = new WP_Ajax_Response;

$x->add(
[
Expand Down Expand Up @@ -1615,7 +1615,7 @@ function wp_ajax_add_menu_item()
'before' => '',
'link_after' => '',
'link_before' => '',
'walker' => new $walker_class_name(),
'walker' => new $walker_class_name,
];

echo walk_nav_menu_tree($menu_items, 0, (object) $args);
Expand Down Expand Up @@ -3135,7 +3135,7 @@ function wp_ajax_query_attachments()
// Out-of-bounds, run the query again without LIMIT for total count.
unset($query['paged']);

$count_query = new WP_Query();
$count_query = new WP_Query;
$count_query->query($query);
$total_posts = $count_query->found_posts;
}
Expand Down Expand Up @@ -4087,7 +4087,7 @@ function wp_ajax_crop_image()
switch ($context) {
case 'site-icon':
require_once ABSPATH.'wp-admin/includes/class-wp-site-icon.php';
$wp_site_icon = new WP_Site_Icon();
$wp_site_icon = new WP_Site_Icon;

// Skip creating a new attachment if the attachment is a Site Icon.
if (get_post_meta($attachment_id, '_wp_attachment_context', true) == $context) {
Expand Down Expand Up @@ -4255,7 +4255,7 @@ function wp_ajax_install_theme()
wp_send_json_error($status);
}

$skin = new WP_Ajax_Upgrader_Skin();
$skin = new WP_Ajax_Upgrader_Skin;
$upgrader = new Theme_Upgrader($skin);
$result = $upgrader->install($api->download_link);

Expand Down Expand Up @@ -4378,7 +4378,7 @@ function wp_ajax_update_theme()
wp_update_themes();
}

$skin = new WP_Ajax_Upgrader_Skin();
$skin = new WP_Ajax_Upgrader_Skin;
$upgrader = new Theme_Upgrader($skin);
$result = $upgrader->bulk_upgrade([$stylesheet]);

Expand Down Expand Up @@ -4552,7 +4552,7 @@ function wp_ajax_install_plugin()

$status['pluginName'] = $api->name;

$skin = new WP_Ajax_Upgrader_Skin();
$skin = new WP_Ajax_Upgrader_Skin;
$upgrader = new Plugin_Upgrader($skin);
$result = $upgrader->install($api->download_link);

Expand Down Expand Up @@ -4709,7 +4709,7 @@ function wp_ajax_update_plugin()

wp_update_plugins();

$skin = new WP_Ajax_Upgrader_Skin();
$skin = new WP_Ajax_Upgrader_Skin;
$upgrader = new Plugin_Upgrader($skin);
$result = $upgrader->bulk_upgrade([$plugin]);

Expand Down
2 changes: 1 addition & 1 deletion public/wp/wp-admin/includes/bookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function edit_link($link_id = 0)
*/
function get_default_link_to_edit()
{
$link = new stdClass();
$link = new stdClass;
if (isset($_GET['linkurl'])) {
$link->link_url = esc_url(wp_unslash($_GET['linkurl']));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function async_upgrade($upgrader = false)
* Avoid messing with VCS installations, at least for now.
* Noted: this is not the ideal way to accomplish this.
*/
$check_vcs = new WP_Automatic_Updater();
$check_vcs = new WP_Automatic_Updater;
if ($check_vcs->is_vcs_checkout(WP_CONTENT_DIR)) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct($args = [])
{
parent::__construct($args);

$this->errors = new WP_Error();
$this->errors = new WP_Error;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions public/wp/wp-admin/includes/class-wp-automatic-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function is_vcs_checkout($context)
public function should_update($type, $item, $context)
{
// Used to see if WP_Filesystem is set up to allow unattended updates.
$skin = new Automatic_Upgrader_Skin();
$skin = new Automatic_Upgrader_Skin;

if ($this->is_disabled()) {
return false;
Expand Down Expand Up @@ -367,7 +367,7 @@ protected function send_core_update_notification_email($item)
*/
public function update($type, $item)
{
$skin = new Automatic_Upgrader_Skin();
$skin = new Automatic_Upgrader_Skin;

switch ($type) {
case 'core':
Expand Down
6 changes: 3 additions & 3 deletions public/wp/wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public static function debug_data()
'debug' => $site_id,
];

$network_query = new WP_Network_Query();
$network_query = new WP_Network_Query;
$network_ids = $network_query->query(
[
'fields' => 'ids',
Expand Down Expand Up @@ -522,7 +522,7 @@ public static function debug_data()
// Get ImageMagic information, if available.
if (class_exists('Imagick')) {
// Save the Imagick instance for later use.
$imagick = new Imagick();
$imagick = new Imagick;
$imagemagick_version = $imagick->getVersion();
} else {
$imagemagick_version = __('Not available');
Expand Down Expand Up @@ -1037,7 +1037,7 @@ public static function debug_data()
'banners_rtl' => [],
'tested' => '',
'requires_php' => '',
'compatibility' => new stdClass(),
'compatibility' => new stdClass,
];
$item = wp_parse_args($plugin, $item);
}
Expand Down
2 changes: 1 addition & 1 deletion public/wp/wp-admin/includes/class-wp-filesystem-direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base
public function __construct($arg)
{
$this->method = 'direct';
$this->errors = new WP_Error();
$this->errors = new WP_Error;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion public/wp/wp-admin/includes/class-wp-filesystem-ftpext.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base
public function __construct($opt = '')
{
$this->method = 'ftpext';
$this->errors = new WP_Error();
$this->errors = new WP_Error;

// Check if possible to use ftp functions.
if (! extension_loaded('ftp')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base
public function __construct($opt = '')
{
$this->method = 'ftpsockets';
$this->errors = new WP_Error();
$this->errors = new WP_Error;

// Check if possible to use ftp functions.
if (! require_once ABSPATH.'wp-admin/includes/class-ftp.php') {
return;
}

$this->ftp = new ftp();
$this->ftp = new ftp;

if (empty($opt['port'])) {
$this->options['port'] = 21;
Expand Down
2 changes: 1 addition & 1 deletion public/wp/wp-admin/includes/class-wp-filesystem-ssh2.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base
public function __construct($opt = '')
{
$this->method = 'ssh2';
$this->errors = new WP_Error();
$this->errors = new WP_Error;

// Check if possible to use ssh2 functions.
if (! extension_loaded('ssh2')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function prepare_items()
'banners_rtl' => [],
'tested' => '',
'requires_php' => '',
'compatibility' => new stdClass(),
'compatibility' => new stdClass,
];

$filter_payload = (object) wp_parse_args($plugin_data, $filter_payload);
Expand Down
2 changes: 1 addition & 1 deletion public/wp/wp-admin/includes/class-wp-screen.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public static function get($hook_name = '')
return $screen;
}
} else {
$screen = new self();
$screen = new self;
$screen->id = $id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function test_wp_automatic_updates_disabled()
require_once ABSPATH.'wp-admin/includes/class-wp-automatic-updater.php';
}

$auto_updates = new WP_Automatic_Updater();
$auto_updates = new WP_Automatic_Updater;

if (! $auto_updates->is_disabled()) {
return false;
Expand Down Expand Up @@ -288,7 +288,7 @@ public function test_check_wp_filesystem_method()
require_once ABSPATH.'wp-admin/includes/file.php';
}

$skin = new Automatic_Upgrader_Skin();
$skin = new Automatic_Upgrader_Skin;
$success = $skin->request_filesystem_credentials(false, ABSPATH);

if (! $success) {
Expand Down Expand Up @@ -322,7 +322,7 @@ public function test_all_files_writable()

require ABSPATH.WPINC.'/version.php'; // $wp_version; // x.y.z

$skin = new Automatic_Upgrader_Skin();
$skin = new Automatic_Upgrader_Skin;
$success = $skin->request_filesystem_credentials(false, ABSPATH);

if (! $success) {
Expand Down
6 changes: 3 additions & 3 deletions public/wp/wp-admin/includes/class-wp-site-health.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function show_site_health_tab($tab)
public static function get_instance()
{
if (self::$instance === null) {
self::$instance = new WP_Site_Health();
self::$instance = new WP_Site_Health;
}

return self::$instance;
Expand Down Expand Up @@ -1870,7 +1870,7 @@ public function get_test_background_updates()
* Run the auto-update tests in a separate class,
* as there are many considerations to be made.
*/
$automatic_updates = new WP_Site_Health_Auto_Updates();
$automatic_updates = new WP_Site_Health_Auto_Updates;
$tests = $automatic_updates->run_tests();

$output = '<ul>';
Expand Down Expand Up @@ -3109,7 +3109,7 @@ public function detect_plugin_theme_auto_update_issues()
'banners_rtl' => [],
'tested' => '5.5.0',
'requires_php' => '5.6.20',
'compatibility' => new stdClass(),
'compatibility' => new stdClass,
];

$mock_theme = (object) [
Expand Down
6 changes: 3 additions & 3 deletions public/wp/wp-admin/includes/class-wp-upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class WP_Upgrader
public function __construct($skin = null)
{
if ($skin === null) {
$this->skin = new WP_Upgrader_Skin();
$this->skin = new WP_Upgrader_Skin;
} else {
$this->skin = $skin;
}
Expand Down Expand Up @@ -1164,7 +1164,7 @@ public function restore_temp_backup()
{
global $wp_filesystem;

$errors = new WP_Error();
$errors = new WP_Error;

foreach ($this->temp_restores as $args) {
if (empty($args['slug']) || empty($args['src']) || empty($args['dir'])) {
Expand Down Expand Up @@ -1221,7 +1221,7 @@ public function delete_temp_backup()
{
global $wp_filesystem;

$errors = new WP_Error();
$errors = new WP_Error;

foreach ($this->temp_backups as $args) {
if (empty($args['slug']) || empty($args['dir'])) {
Expand Down
6 changes: 3 additions & 3 deletions public/wp/wp-admin/includes/deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ function wp_update_core($current, $feedback = '')
}

require ABSPATH.'wp-admin/includes/class-wp-upgrader.php';
$upgrader = new Core_Upgrader();
$upgrader = new Core_Upgrader;

return $upgrader->upgrade($current);

Expand All @@ -1274,7 +1274,7 @@ function wp_update_plugin($plugin, $feedback = '')
}

require ABSPATH.'wp-admin/includes/class-wp-upgrader.php';
$upgrader = new Plugin_Upgrader();
$upgrader = new Plugin_Upgrader;

return $upgrader->upgrade($plugin);
}
Expand All @@ -1299,7 +1299,7 @@ function wp_update_theme($theme, $feedback = '')
}

require ABSPATH.'wp-admin/includes/class-wp-upgrader.php';
$upgrader = new Theme_Upgrader();
$upgrader = new Theme_Upgrader;

return $upgrader->upgrade($theme);
}
Expand Down
Loading

0 comments on commit 1542f78

Please sign in to comment.