Skip to content

Commit

Permalink
chore: fix standards
Browse files Browse the repository at this point in the history
  • Loading branch information
SteelWagstaff committed Oct 25, 2023
1 parent 2ba7ffb commit 3b5103c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/PressbooksNetworkCatalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ protected function setUpBlade(): void
);
}

protected function load_plugin_textdomain() {
load_plugin_textdomain( 'pressbooks-network-catalog', FALSE, 'pressbooks-network-catalog/languages/' );
protected function load_plugin_textdomain()
{
load_plugin_textdomain('pressbooks-network-catalog', false, 'pressbooks-network-catalog/languages/');
}

protected function addHooks(): void
{
add_filter('pb_network_catalog', function () {
Expand All @@ -101,6 +103,6 @@ protected function addHooks(): void
'admin_init', fn () => remove_action('admin_init', '\Aldine\Actions\hide_catalog_content_editor'), 1
);

add_action( 'plugins_loaded', 'load_plugin_textdomain' );
add_action('plugins_loaded', 'load_plugin_textdomain');
}
}

0 comments on commit 3b5103c

Please sign in to comment.