Test Failed
Push — 135-map-multiple-wordpress-obj... ( 3634c2...bb35fb )
by Jonathan
12:00
created
classes/admin-notice.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	/**
24 24
 	* Constructor which sets up the admin_notices hook for rendering
25 25
 	*
26
-	* @param mixed $condition
26
+	* @param boolean $condition
27 27
 	* @param string $message
28 28
 	* @param bool $dismissible
29 29
 	* @param string $type
Please login to merge, or discard this patch.
classes/admin.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -527,7 +527,6 @@  discard block
 block discarded – undo
527 527
 	*
528 528
 	* @param string $page
529 529
 	* @param string $section
530
-	* @param string $input_callback
531 530
 	*/
532 531
 	private function fields_settings( $page, $section, $callbacks ) {
533 532
 		add_settings_section( $page, ucwords( $page ), null, $page );
@@ -792,7 +791,6 @@  discard block
 block discarded – undo
792 791
 	*
793 792
 	* @param string $page
794 793
 	* @param string $section
795
-	* @param string $input_callback
796 794
 	*/
797 795
 	private function fields_scheduling( $page, $section, $callbacks ) {
798 796
 
@@ -1287,7 +1285,7 @@  discard block
 block discarded – undo
1287 1285
 	* This takes either the $_POST array via ajax, or can be directly called with $wordpress_object and $salesforce_object fields
1288 1286
 	*
1289 1287
 	* @param string $wordpress_object
1290
-	* @param string $salesforce_object
1288
+	* @param string $salesforce
1291 1289
 	* @return array $object_fields
1292 1290
 	*/
1293 1291
 	public function get_wp_sf_object_fields( $wordpress_object = '', $salesforce = '' ) {
Please login to merge, or discard this patch.
classes/class-object-sync-sf-queue.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,11 @@  discard block
 block discarded – undo
21 21
 	protected $option_prefix;
22 22
 	protected $schedulable_classes;
23 23
 
24
+	/**
25
+	 * @param string $version
26
+	 * @param string $slug
27
+	 * @param string $option_prefix
28
+	 */
24 29
 	public function __construct( $wpdb, $version, $slug, $option_prefix, $schedulable_classes ) {
25 30
 		$this->wpdb                = $wpdb;
26 31
 		$this->version             = $version;
@@ -219,7 +224,7 @@  discard block
 block discarded – undo
219 224
 	 * @param string $hook Hook name.
220 225
 	 * @param array  $args Arguments.
221 226
 	 * @param string $group Group name.
222
-	 * @return time|null The date and time for the next occurrence, or null if there is no pending, scheduled action for the given hook.
227
+	 * @return integer|null The date and time for the next occurrence, or null if there is no pending, scheduled action for the given hook.
223 228
 	 */
224 229
 	public function get_next( $hook, $args = null, $group = '' ) {
225 230
 
Please login to merge, or discard this patch.
classes/logging.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
 	 * Set terms for Salesforce logs
157 157
 	 *
158 158
 	 * @param array $terms An array of string log types in the WP_Logging class.
159
-	 * @return array $terms
159
+	 * @return string[] $terms
160 160
 	 */
161 161
 	public function set_log_types( $terms ) {
162 162
 		$terms[] = 'salesforce';
Please login to merge, or discard this patch.
classes/salesforce.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1144,9 +1144,9 @@
 block discarded – undo
1144 1144
 	*
1145 1145
 	* @param string $type
1146 1146
 	*   Object type name, E.g., Contact, Account.
1147
-	* @param string $startDate
1147
+	* @param string $start_date
1148 1148
 	*   Start date to check for deleted objects (in ISO 8601 format).
1149
-	* @param string $endDate
1149
+	* @param string $end_date
1150 1150
 	*   End date to check for deleted objects (in ISO 8601 format).
1151 1151
 	* @return GetDeletedResult
1152 1152
 	*/
Please login to merge, or discard this patch.
classes/salesforce_pull.php 1 patch
Doc Comments   +2 added lines, -10 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 	* Executes a nextRecordsUrl SOQL query based on the previous result,
501 501
 	* and places each updated SF object into the queue for later processing.
502 502
 	*
503
-	* @param gmdate $last_sync
503
+	* @param string $last_sync
504 504
 	* @param array $salesforce_mapping
505 505
 	* @param array $map_sync_triggers
506 506
 	* @param string $type
@@ -566,8 +566,6 @@  discard block
 block discarded – undo
566 566
 	* @param string $type the Salesforce object type
567 567
 	* @param array $salesforce_mapping the map between object types
568 568
 	* @param array $query_options the options for the SOQL query
569
-	* @param bool $check are we just checking?
570
-	* @return object|bool $soql|$does_next_offset_have_results
571 569
 	*
572 570
 	*/
573 571
 	private function check_offset_query( $type, $salesforce_mapping, $query_options ) {
@@ -753,7 +751,7 @@  discard block
 block discarded – undo
753 751
 	* @param string $type
754 752
 	*   e.g. "Contact", "Account", etc.
755 753
 	*
756
-	* @return timestamp $pull_trigger_field_value
754
+	* @return string $pull_trigger_field_value
757 755
 	*
758 756
 	*/
759 757
 	private function get_pull_date_value( $type, $soql ) {
@@ -2046,12 +2044,6 @@  discard block
 block discarded – undo
2046 2044
 	*   Array of the salesforce object's data
2047 2045
 	* @param string $sf_sync_trigger
2048 2046
 	*   The current operation's trigger
2049
-	* @param array $mapping
2050
-	*   the fieldmap that maps the two object types
2051
-	* @param array $map_sync_triggers
2052
-	*
2053
-	* @return bool $pull_allowed
2054
-	*   Whether all this stuff allows the $result to be pulled into WordPress
2055 2047
 	*
2056 2048
 	*/
2057 2049
 	private function is_pull_allowed( $object_type, $object, $sf_sync_trigger, $salesforce_mapping, $map_sync_triggers ) {
Please login to merge, or discard this patch.
classes/salesforce_push.php 1 patch
Doc Comments   +1 added lines, -23 removed lines patch added patch discarded remove patch
@@ -315,9 +315,6 @@  discard block
 block discarded – undo
315 315
 	* Callback method for deleting a term
316 316
 	*
317 317
 	* @param int $term (id)
318
-	* @param int $term_taxonomy_id
319
-	* @param string $taxonomy (slug)
320
-	* @param object $deleted_term
321 318
 	*/
322 319
 	public function delete_term( $term, $tt_id, $taxonomy, $deleted_term ) {
323 320
 		$deleted_term = (array) $deleted_term;
@@ -597,14 +594,6 @@  discard block
 block discarded – undo
597 594
 	*
598 595
 	* @param string $object_type
599 596
 	*   Type of WordPress object.
600
-	* @param array|int $object|$wordpress_id
601
-	*   The WordPress object data or its ID value.
602
-	* @param array $mapping|$mapping_id
603
-	*   Salesforce field mapping data array or ID.
604
-	* @param int $sf_sync_trigger
605
-	*   Trigger for this sync.
606
-	*
607
-	* @return true or exit the method
608 597
 	*
609 598
 	*/
610 599
 	public function salesforce_push_sync_rest( $object_type, $object, $mapping, $sf_sync_trigger ) {
@@ -1276,19 +1265,8 @@  discard block
 block discarded – undo
1276 1265
 	/**
1277 1266
 	* Find out if push is allowed for this record
1278 1267
 	*
1279
-	* @param string $type
1280
-	*   WordPress object type
1281
-	* @param array $object
1282
-	*   Array of the WordPress object's data
1283
-	* @param string $sf_sync_trigger
1284
-	*   The current operation's trigger
1285
-	* @param array $mapping
1286
-	*   the fieldmap that maps the two object types
1287
-	* @param array $map_sync_triggers
1288
-	*
1289
-	* @return bool $push_allowed
1290
-	*   Whether all this stuff allows the $api_result to be pushed to Salesforce
1291 1268
 	*
1269
+	* @param string $object_type
1292 1270
 	*/
1293 1271
 	private function is_push_allowed( $object_type, $object, $sf_sync_trigger, $mapping, $map_sync_triggers ) {
1294 1272
 
Please login to merge, or discard this patch.
classes/salesforce_soap_partner.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
 		}
52 52
 	}
53 53
 
54
+	/**
55
+	 * @param boolean $is_authorized
56
+	 */
54 57
 	protected function set_authorized( $is_authorized ) {
55 58
 		$this->is_authorized = $is_authorized;
56 59
 	}
Please login to merge, or discard this patch.
classes/wordpress.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 	 * if it does, return the transient for that key
397 397
 	 *
398 398
 	 * @param string $url The API call we'd like to make.
399
-	 * @param array  $args The arguents of the API call.
399
+	 * @param string[]  $args The arguents of the API call.
400 400
 	 * @return $this->sfwp_transients->get $cachekey
401 401
 	 */
402 402
 	public function cache_get( $url, $args ) {
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 	 * Create a cache entry for the current result, with the url and args as the key
416 416
 	 *
417 417
 	 * @param string $url The API query URL.
418
-	 * @param array  $args The arguments passed on the API query.
418
+	 * @param string[]  $args The arguments passed on the API query.
419 419
 	 * @param array  $data The data received.
420 420
 	 * @param string $cache_expiration How long to keep the cache result around for.
421 421
 	 * @return Bool whether or not the value was set
Please login to merge, or discard this patch.