Passed
Push — ci ( 38d7bc...9f72b5 )
by litefeel
03:33
created
lib/export.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -29,36 +29,36 @@  discard block
 block discarded – undo
29 29
 	/**
30 30
 	 * Updates all of the current posts in the database on master.
31 31
 	 *
32
-     * @param  bool    $force
33
-     *
34
-     * @return string|WP_Error
35
-     */
32
+	 * @param  bool    $force
33
+	 *
34
+	 * @return string|WP_Error
35
+	 */
36 36
 	public function full( $force = false ) {
37 37
 		$posts = $this->app->database()->fetch_all_supported( $force );
38 38
 
39 39
 		if ( is_wp_error( $posts ) ) {
40
-            /* @var WP_Error $posts */
40
+			/* @var WP_Error $posts */
41 41
 			return $posts;
42 42
 		}
43 43
 
44
-        $error = false;
44
+		$error = false;
45 45
 
46
-        foreach ( $posts as $post ) {
47
-            $result = $this->update( $post->id() );
48
-            if ( is_wp_error( $result ) ) {
49
-                if ( $error ) {
50
-                    $error->add( $result->get_error_code(), $result->get_error_message() );
51
-                } else {
52
-                    $error = $result;
53
-                }
54
-            }
55
-        }
46
+		foreach ( $posts as $post ) {
47
+			$result = $this->update( $post->id() );
48
+			if ( is_wp_error( $result ) ) {
49
+				if ( $error ) {
50
+					$error->add( $result->get_error_code(), $result->get_error_message() );
51
+				} else {
52
+					$error = $result;
53
+				}
54
+			}
55
+		}
56 56
 
57
-        if ( is_wp_error( $error ) ) {
58
-            return $error;
59
-        }
57
+		if ( is_wp_error( $error ) ) {
58
+			return $error;
59
+		}
60 60
 
61
-        return __( 'Export to GitHub completed successfully.', 'writing-on-github' );
61
+		return __( 'Export to GitHub completed successfully.', 'writing-on-github' );
62 62
 	}
63 63
 
64 64
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		$post = $this->app->database()->fetch_by_id( $post_id );
89 89
 
90 90
 		if ( is_wp_error( $post ) ) {
91
-            /* @var WP_Error $post */
91
+			/* @var WP_Error $post */
92 92
 			return $post;
93 93
 		}
94 94
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 		$result = $this->new_posts( array( $post ) );
105 105
 
106 106
 		if ( is_wp_error( $result ) ) {
107
-            /* @var WP_Error $result */
107
+			/* @var WP_Error $result */
108 108
 			return $result;
109 109
 		}
110 110
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 			return $error;
139 139
 		}
140 140
 
141
-        return __( 'Export to GitHub completed successfully.', 'writing-on-github' );
141
+		return __( 'Export to GitHub completed successfully.', 'writing-on-github' );
142 142
 	}
143 143
 
144 144
 	protected function new_post( $post, $persist ) {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 		$post = $this->app->database()->fetch_by_id( $post_id );
219 219
 
220 220
 		if ( is_wp_error( $post ) ) {
221
-            /* @var WP_Error $post */
221
+			/* @var WP_Error $post */
222 222
 			return $post;
223 223
 		}
224 224
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 		$result = $this->app->api()->persist()->delete_file( $github_path, $post->sha(), $message );
239 239
 
240 240
 		if ( is_wp_error( $result ) ) {
241
-            /* @var WP_Error $result */
241
+			/* @var WP_Error $result */
242 242
 			return $result;
243 243
 		}
244 244
 
Please login to merge, or discard this patch.