Completed
Pull Request — develop (#900)
by William
04:03
created
src/shortcodes/wordlift_shortcode_geomap.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,6 @@
 block discarded – undo
160 160
  * @uses wl_shortcode_geomap_get_places() in order to retrieve places
161 161
  * @uses wl_shortcode_geomap_prepare_map() in order to encode retireved places in a Leaflet friendly format
162 162
  *
163
- * @param array $places An array of place posts.
164 163
  *
165 164
  * @return array An array of place posts.
166 165
  */
Please login to merge, or discard this patch.
src/includes/class-wordlift-redirect-service.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,9 +115,8 @@
 block discarded – undo
115 115
 	 *
116 116
 	 * @since 3.2.0
117 117
 	 *
118
-	 * @param int $entity_id A post entity id.
119 118
 	 *
120
-	 * @return string permalink.
119
+	 * @return string[] permalink.
121 120
 	 */
122 121
 	public function allowed_redirect_hosts( $content ) {
123 122
 
Please login to merge, or discard this patch.
src/includes/class-wordlift-schema-service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
 	 *
283 283
 	 * @param string $key The field's key.
284 284
 	 *
285
-	 * @return null|array An array of field's properties or null if the field is not found.
285
+	 * @return string An array of field's properties or null if the field is not found.
286 286
 	 */
287 287
 	public function get_field( $key ) {
288 288
 
Please login to merge, or discard this patch.
src/includes/class-wordlift-timeline-service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@
 block discarded – undo
291 291
 	 *
292 292
 	 * @since 3.7.0
293 293
 	 *
294
-	 * @param $value int A date value.
294
+	 * @param integer $value int A date value.
295 295
 	 *
296 296
 	 * @return array An array containing year, month and day values.
297 297
 	 */
Please login to merge, or discard this patch.
src/includes/class-wordlift-rating-service.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,7 +173,6 @@  discard block
 block discarded – undo
173 173
 	 * @since 3.3.0
174 174
 	 *
175 175
 	 * @param int $post_id      The entity post id.
176
-	 * @param     $force_reload $warnings_needed If true, detailed warnings collection is provided with the rating obj.
177 176
 	 *
178 177
 	 * @return array An array representing the rating obj.
179 178
 	 */
@@ -332,7 +331,7 @@  discard block
 block discarded – undo
332 331
 	 *
333 332
 	 * @param int $score The rating score for a given entity.
334 333
 	 *
335
-	 * @return string The input HTML code.
334
+	 * @return double The input HTML code.
336 335
 	 */
337 336
 	public function convert_raw_score_to_percentage( $score ) {
338 337
 
Please login to merge, or discard this patch.
src/admin/class-wordlift-admin-settings-page.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	 * Get the singleton instance of the Notice service.
112 112
 	 *
113 113
 	 * @since 3.14.0
114
-	 * @return \Wordlift_Admin_Settings_Page The singleton instance of the settings page service.
114
+	 * @return Wordlift_Notice_Service The singleton instance of the settings page service.
115 115
 	 */
116 116
 	public static function get_instance() {
117 117
 
Please login to merge, or discard this patch.
src/includes/class-wordlift-user-service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -346,7 +346,7 @@
 block discarded – undo
346 346
 	 *
347 347
 	 * @param int $user_id The {@link WP_User} `id`.
348 348
 	 *
349
-	 * @return int bool True if editing is denied otherwise false.
349
+	 * @return boolean bool True if editing is denied otherwise false.
350 350
 	 */
351 351
 	public function is_deny_editor_entity_create( $user_id ) {
352 352
 
Please login to merge, or discard this patch.
src/modules/core/wordlift_core_schema_api.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
  * @param int   $post_id    The numeric post ID
123 123
  * @param array $type_names An array of strings, each defining a type (e.g. Type, for the http://schema.org/Type)
124 124
  *
125
- * @return boolean True if everything went ok, an error string otherwise.
125
+ * @return boolean|null True if everything went ok, an error string otherwise.
126 126
  */
127 127
 function wl_schema_set_types( $post_id, $type_names ) {
128 128
 
Please login to merge, or discard this patch.
src/includes/class-wordlift-remote-image-service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 	 *
91 91
 	 * @since 3.18.0
92 92
 	 *
93
-	 * @return string|bool The file extension on success and
93
+	 * @return string|false The file extension on success and
94 94
 	 * false on fail or if the content type is not supported.
95 95
 	 */
96 96
 	private static function get_extension_from_content_type( $content_type ) {
Please login to merge, or discard this patch.