Passed
Push — master ( c140ce...c00ab5 )
by litefeel
02:56
created
lib/client/base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	 * @param string $endpoint API endpoint.
38 38
 	 * @param array  $body Request body.
39 39
 	 *
40
-	 * @return stdClass|WP_Error
40
+	 * @return stdClass
41 41
 	 */
42 42
 	protected function call( $method, $endpoint, $body = array() ) {
43 43
 		if ( is_wp_error( $error = $this->can_call() ) ) {
Please login to merge, or discard this patch.
lib/client/persist.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@
 block discarded – undo
31 31
 	/**
32 32
 	 * Delete the file.
33 33
 	 *
34
+	 * @param string $message
34 35
 	 * @return array
35 36
 	 */
36 37
 	public function delete_file( $path, $sha, $message ) {
Please login to merge, or discard this patch.
lib/controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 *
168 168
 	 * @param int $post_id Post ID.
169 169
 	 *
170
-	 * @return boolean
170
+	 * @return null|boolean
171 171
 	 */
172 172
 	public function export_post( $post_id ) {
173 173
 		if ( wp_is_post_revision( $post_id ) ) {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	 *
200 200
 	 * @param int $post_id Post ID.
201 201
 	 *
202
-	 * @return boolean
202
+	 * @return null|boolean
203 203
 	 */
204 204
 	public function delete_post( $post_id ) {
205 205
 		if ( wp_is_post_revision( $post_id ) ) {
Please login to merge, or discard this patch.
lib/database.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,6 @@  discard block
 block discarded – undo
108 108
 	 * and associates their author as well as their latest
109 109
 	 *
110 110
 	 * @param Writing_On_GitHub_Post[] $posts Array of Posts to save.
111
-	 * @param string                       $email Author email.
112 111
 	 *
113 112
 	 * @return string|WP_Error
114 113
 	 */
@@ -178,6 +177,9 @@  discard block
 block discarded – undo
178 177
 		return __( 'Successfully saved posts.', 'writing-on-github' );
179 178
 	}
180 179
 
180
+	/**
181
+	 * @param Writing_On_GitHub_Post $post
182
+	 */
181 183
 	protected function post_args( $post ) {
182 184
 		$args = $post->get_args();
183 185
 		$meta = $post->get_meta();
Please login to merge, or discard this patch.
lib/export.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -142,6 +142,10 @@
 block discarded – undo
142 142
 		return true;
143 143
 	}
144 144
 
145
+	/**
146
+	 * @param Writing_On_GitHub_Post $post
147
+	 * @param Writing_On_GitHub_Persist_Client $persist
148
+	 */
145 149
 	protected function new_post( $post, $persist ) {
146 150
 		$github_path = $post->github_path();
147 151
 		$old_github_path = $post->old_github_path();
Please login to merge, or discard this patch.
lib/import.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,6 +140,9 @@  discard block
 block discarded – undo
140 140
 		return __( 'Payload processed', 'writing-on-github' );
141 141
 	}
142 142
 
143
+	/**
144
+	 * @param boolean $delete_ids
145
+	 */
143 146
 	protected function compare( $files, &$delete_ids ) {
144 147
 		if ( is_wp_error( $files ) ) {
145 148
 			return $files;
@@ -217,7 +220,6 @@  discard block
 block discarded – undo
217 220
 	/**
218 221
 	 * Checks whether the provided blob should be imported.
219 222
 	 *
220
-	 * @param Writing_On_GitHub_Blob $blob Blob to validate.
221 223
 	 *
222 224
 	 * @return bool
223 225
 	 */
Please login to merge, or discard this patch.
lib/request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	/**
42 42
 	 * Validates the header's secret.
43 43
 	 *
44
-	 * @return true|WP_Error
44
+	 * @return boolean
45 45
 	 */
46 46
 	public function is_secret_valid() {
47 47
 		$headers = $this->headers();
Please login to merge, or discard this patch.