Skip to content

Commit 38cd5e4

Browse files
committed
Fix spaces indentation
1 parent 37b9e94 commit 38cd5e4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

php/admin-menus/class-edit-menu.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ public function __construct() {
1313
__( 'Edit Snippet', 'code-snippets' ),
1414
__( 'Edit Snippet', 'code-snippets' )
1515
);
16-
}
16+
}
1717

1818
/**
1919
* Register action and filter hooks
2020
*/
2121
public function run() {
2222
parent::run();
23-
$this->remove_debug_bar_codemirror();
23+
$this->remove_debug_bar_codemirror();
2424

25-
if ( isset( $_POST['save_snippet'] ) && $_POST['save_snippet'] ) {
26-
add_action( 'code_snippets/allow_execute_snippet', array( $this, 'prevent_exec_on_save' ), 10, 2 );
27-
}
25+
if ( isset( $_POST['save_snippet'] ) && $_POST['save_snippet'] ) {
26+
add_action( 'code_snippets/allow_execute_snippet', array( $this, 'prevent_exec_on_save' ), 10, 2 );
27+
}
2828

29-
}
29+
}
3030

3131
/**
3232
* Register the admin menu
@@ -518,12 +518,12 @@ function remove_debug_bar_codemirror() {
518518

519519
/* Try to discern if we are on the single snippet page as best as we can at this early time */
520520
if ( ! is_admin() || 'admin.php' !== $GLOBALS['pagenow'] ) {
521-
return;
521+
return;
522522
}
523523

524524
if ( ! isset( $_GET['page'] ) || code_snippets()->get_menu_slug( 'edit' ) !== $_GET['page'] && code_snippets()->get_menu_slug( 'settings' ) ) {
525-
return;
526-
}
525+
return;
526+
}
527527

528528
remove_action( 'debug_bar_enqueue_scripts', 'debug_bar_console_scripts' );
529529
}

php/class-admin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function __construct() {
1414
if ( is_admin() ) {
1515
$this->run();
1616
}
17-
}
17+
}
1818

1919
public function load_classes() {
2020
$this->menus['manage'] = new Code_Snippets_Manage_Menu();
@@ -26,12 +26,12 @@ public function load_classes() {
2626
}
2727

2828
foreach ( $this->menus as $menu ) {
29-
$menu->run();
30-
}
29+
$menu->run();
30+
}
3131
}
3232

3333
public function run() {
34-
add_action( 'init', array( $this, 'load_classes' ), 11 );
34+
add_action( 'init', array( $this, 'load_classes' ), 11 );
3535

3636
add_filter( 'mu_menu_items', array( $this, 'mu_menu_items' ) );
3737
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_stylesheet' ) );

0 commit comments

Comments
 (0)