Passed
Push — ci ( 9f72b5...d152cd )
by litefeel
02:50
created
lib/import.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -26,24 +26,24 @@  discard block
 block discarded – undo
26 26
 		$this->app = $app;
27 27
 	}
28 28
 
29
-    /**
30
-     * Imports a payload.
31
-     * @param  Writing_On_GitHub_Payload $payload
32
-     *
33
-     * @return string|WP_Error
34
-     */
29
+	/**
30
+	 * Imports a payload.
31
+	 * @param  Writing_On_GitHub_Payload $payload
32
+	 *
33
+	 * @return string|WP_Error
34
+	 */
35 35
 	public function payload( Writing_On_GitHub_Payload $payload ) {
36 36
 
37 37
 		$result = $this->app->api()->fetch()->compare( $payload->get_before_commit_id() );
38 38
 
39 39
 		if ( is_wp_error( $result ) ) {
40
-            /* @var WP_Error $result */
40
+			/* @var WP_Error $result */
41 41
 			return $result;
42 42
 		}
43 43
 
44
-        if ( is_array( $result ) ) {
45
-            $result = $this->import_files( $result );
46
-        }
44
+		if ( is_array( $result ) ) {
45
+			$result = $this->import_files( $result );
46
+		}
47 47
 
48 48
 		if ( is_wp_error( $result ) ) {
49 49
 			return $files;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	/**
56 56
 	 * import blob by files
57 57
 	 * @param  Writing_On_GitHub_File_Info[] $files
58
-     *
58
+	 *
59 59
 	 * @return string|WP_Error
60 60
 	 */
61 61
 	protected function import_files( $files ) {
@@ -94,32 +94,32 @@  discard block
 block discarded – undo
94 94
 		$result = $this->app->api()->fetch()->tree_recursive();
95 95
 
96 96
 		if ( is_wp_error( $result ) ) {
97
-            /* @var WP_Error $result */
97
+			/* @var WP_Error $result */
98 98
 			return $result;
99 99
 		}
100 100
 
101
-        if ( is_array( $result ) ) {
102
-            $result = $this->import_files( $result );
103
-        }
101
+		if ( is_array( $result ) ) {
102
+			$result = $this->import_files( $result );
103
+		}
104 104
 
105 105
 		if ( is_wp_error( $result ) ) {
106
-            /* @var WP_Error $result */
106
+			/* @var WP_Error $result */
107 107
 			return $result;
108 108
 		}
109 109
 
110 110
 		return __( 'Payload processed', 'writing-on-github' );
111 111
 	}
112 112
 
113
-    /**
114
-     * Do compare
115
-     * @param  Writing_On_GitHub_File_Info[]|WP_Error $files
116
-     * @param  int[] &$delete_ids
117
-     *
118
-     * @return string|WP_Error
119
-     */
113
+	/**
114
+	 * Do compare
115
+	 * @param  Writing_On_GitHub_File_Info[]|WP_Error $files
116
+	 * @param  int[] &$delete_ids
117
+	 *
118
+	 * @return string|WP_Error
119
+	 */
120 120
 	protected function compare( $files, &$delete_ids ) {
121 121
 		if ( is_wp_error( $files ) ) {
122
-            /* @var WP_Error $files */
122
+			/* @var WP_Error $files */
123 123
 			return $files;
124 124
 		}
125 125
 
Please login to merge, or discard this patch.