Completed
Pull Request — master (#119)
by
unknown
01:55
created
classes/autoptimizeCLI.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 // Exit if accessed directly
3 3
 if ( ! defined( 'ABSPATH' ) ) {
4
-	exit;
4
+    exit;
5 5
 }
6 6
 
7 7
 class autoptimizeCLI extends WP_CLI_Command {
8 8
 
9
-	/**
10
-	 * Clears the cache.
11
-	 *
12
-	 * @subcommand clear
13
-	 */
14
-	public function clear( $args, $args_assoc ) {
15
-		WP_CLI::line( esc_html__( 'Flushing the cache...', 'autoptimize' ) );
16
-		autoptimizeCache::clearall();
17
-		WP_CLI::success( esc_html__( 'Cache flushed.', 'autoptimize' ) );
18
-	}
9
+    /**
10
+     * Clears the cache.
11
+     *
12
+     * @subcommand clear
13
+     */
14
+    public function clear( $args, $args_assoc ) {
15
+        WP_CLI::line( esc_html__( 'Flushing the cache...', 'autoptimize' ) );
16
+        autoptimizeCache::clearall();
17
+        WP_CLI::success( esc_html__( 'Cache flushed.', 'autoptimize' ) );
18
+    }
19 19
 
20 20
 }
21 21
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 // Exit if accessed directly
3
-if ( ! defined( 'ABSPATH' ) ) {
3
+if (!defined('ABSPATH')) {
4 4
 	exit;
5 5
 }
6 6
 
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
 	 *
12 12
 	 * @subcommand clear
13 13
 	 */
14
-	public function clear( $args, $args_assoc ) {
15
-		WP_CLI::line( esc_html__( 'Flushing the cache...', 'autoptimize' ) );
14
+	public function clear($args, $args_assoc) {
15
+		WP_CLI::line(esc_html__('Flushing the cache...', 'autoptimize'));
16 16
 		autoptimizeCache::clearall();
17
-		WP_CLI::success( esc_html__( 'Cache flushed.', 'autoptimize' ) );
17
+		WP_CLI::success(esc_html__('Cache flushed.', 'autoptimize'));
18 18
 	}
19 19
 
20 20
 }
21 21
 
22
-WP_CLI::add_command( 'autoptimize', 'autoptimizeCLI' );
22
+WP_CLI::add_command('autoptimize', 'autoptimizeCLI');
Please login to merge, or discard this patch.