Test Failed
Push — 252-better-meta-error-logging ( af19ff )
by Jonathan
07:27 queued 02:46
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_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/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.
object-sync-for-salesforce.php 1 patch
Doc Comments   +28 added lines, -36 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 	 * @param string $slug
248 248
 	 * @param string $option_prefix
249 249
 	 *
250
-	 * @return object
250
+	 * @return Object_Sync_Sf_Logging
251 251
 	 *   Instance of Object_Sync_Sf_Logging
252 252
 	 */
253 253
 	private function logging( $wpdb, $version, $slug, $option_prefix ) {
@@ -263,9 +263,9 @@  discard block
 block discarded – undo
263 263
 	 * @param string $version
264 264
 	 * @param string $slug
265 265
 	 * @param string $option_prefix
266
-	 * @param object $logging
266
+	 * @param Object_Sync_Sf_Logging $logging
267 267
 	 *
268
-	 * @return object
268
+	 * @return Object_Sync_Sf_Mapping
269 269
 	 *   Instance of Object_Sync_Sf_Mapping
270 270
 	 */
271 271
 	private function mappings( $wpdb, $version, $slug, $option_prefix, $logging ) {
@@ -281,10 +281,10 @@  discard block
 block discarded – undo
281 281
 	* @param string $version
282 282
 	* @param string $slug
283 283
 	* @param string $option_prefix
284
-	* @param object $mappings
285
-	* @param object $logging
284
+	* @param Object_Sync_Sf_Mapping $mappings
285
+	* @param Object_Sync_Sf_Logging $logging
286 286
 	*
287
-	* @return object
287
+	* @return Object_Sync_Sf_WordPress
288 288
 	*   Instance of Object_Sync_Sf_WordPress
289 289
 	*/
290 290
 	private function wordpress( $wpdb, $version, $slug, $option_prefix, $mappings, $logging ) {
@@ -338,9 +338,9 @@  discard block
 block discarded – undo
338 338
 	 * @param string $slug
339 339
 	 * @param string $option_prefix
340 340
 	 * @param array $schedulable_classes
341
-	 * @param object $queue
341
+	 * @param Object_Sync_Sf_Queue $queue
342 342
 	 *
343
-	 * @return object
343
+	 * @return Object_Sync_Sf_Activate
344 344
 	 *   Instance of Object_Sync_Sf_Activate
345 345
 	 */
346 346
 	private function activate( $wpdb, $version, $slug, $option_prefix, $schedulable_classes, $queue ) {
@@ -375,14 +375,14 @@  discard block
 block discarded – undo
375 375
 	 * @param string $version
376 376
 	 * @param array $login_credentials
377 377
 	 * @param string $slug
378
-	 * @param string $object_prefix
379
-	 * @param object $wordpress
378
+	 * @param Object_Sync_Sf_WordPress $wordpress
380 379
 	 * @param object $salesforce
381
-	 * @param object $mappings
382
-	 * @param object $logging
380
+	 * @param Object_Sync_Sf_Mapping $mappings
381
+	 * @param Object_Sync_Sf_Logging $logging
383 382
 	 * @param array $schedulable_classes
383
+	 * @param string $option_prefix
384 384
 	 *
385
-	 * @return object
385
+	 * @return Object_Sync_Sf_Salesforce_Push
386 386
 	 *   Instance of Object_Sync_Sf_Salesforce_Push
387 387
 	 */
388 388
 	private function push( $wpdb, $version, $login_credentials, $slug, $option_prefix, $wordpress, $salesforce, $mappings, $logging, $schedulable_classes, $queue ) {
@@ -399,12 +399,12 @@  discard block
 block discarded – undo
399 399
 	 * @param array $login_credentials
400 400
 	 * @param string $slug
401 401
 	 * @param string $option_prefix
402
-	 * @param object $wordpress
402
+	 * @param Object_Sync_Sf_WordPress $wordpress
403 403
 	 * @param object $salesforce
404
-	 * @param object $mappings
405
-	 * @param object $logging
404
+	 * @param Object_Sync_Sf_Mapping $mappings
405
+	 * @param Object_Sync_Sf_Logging $logging
406 406
 	 * @param array $schedulable_classes
407
-	 * @return object
407
+	 * @return Object_Sync_Sf_Salesforce_Pull
408 408
 	 *   Instance of Object_Sync_Sf_Salesforce_Pull
409 409
 	 */
410 410
 	private function pull( $wpdb, $version, $login_credentials, $slug, $option_prefix, $wordpress, $salesforce, $mappings, $logging, $schedulable_classes, $queue ) {
@@ -419,20 +419,12 @@  discard block
 block discarded – undo
419 419
 	*
420 420
 	* @param object $wpdb
421 421
 	* @param string $version
422
-	* @param array $login_credentials
423
-	* @param string $slug
424
-	* @param string $option_prefix
425
-	* @param object $wordpress
426
-	* @param object $salesforce
427
-	* @param object $mappings
428
-	* @param object $push
429
-	* @param object $pull
430
-	* @param object $logging
431
-	* @param array $schedulable_classes
432
-	* @param object $queue
433
-	* @return object $admin
434
-	*   Instance of Object_Sync_Sf_Rest
422
+	* @param Object_Sync_Sf_WordPress $wordpress
423
+	* @param Object_Sync_Sf_Mapping $mappings
424
+	* @param Object_Sync_Sf_Salesforce_Push $push
425
+	* @param Object_Sync_Sf_Salesforce_Pull $pull
435 426
 	*
427
+	* @return Object_Sync_Sf_Rest
436 428
 	*/
437 429
 	private function rest( $wpdb, $version, $slug, $option_prefix, $wordpress, $salesforce, $mappings, $push, $pull ) {
438 430
 		require_once( plugin_dir_path( __FILE__ ) . 'classes/class-object-sync-sf-rest.php' );
@@ -449,15 +441,15 @@  discard block
 block discarded – undo
449 441
 	* @param array $login_credentials
450 442
 	* @param string $slug
451 443
 	* @param string $option_prefix
452
-	* @param object $wordpress
444
+	* @param Object_Sync_Sf_WordPress $wordpress
453 445
 	* @param object $salesforce
454
-	* @param object $mappings
455
-	* @param object $push
456
-	* @param object $pull
457
-	* @param object $logging
446
+	* @param Object_Sync_Sf_Mapping $mappings
447
+	* @param Object_Sync_Sf_Salesforce_Push $push
448
+	* @param Object_Sync_Sf_Salesforce_Pull $pull
449
+	* @param Object_Sync_Sf_Logging $logging
458 450
 	* @param array $schedulable_classes
459 451
 	* @param object $queue
460
-	* @return object $admin
452
+	* @return Object_Sync_Sf_Admin $admin
461 453
 	*   Instance of Object_Sync_Sf_Admin
462 454
 	*
463 455
 	*/
Please login to merge, or discard this patch.
vendor/composer/ClassLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -367,6 +367,10 @@
 block discarded – undo
367 367
         return $file;
368 368
     }
369 369
 
370
+    /**
371
+     * @param string $class
372
+     * @param string $ext
373
+     */
370 374
     private function findFileWithExtension($class, $ext)
371 375
     {
372 376
         // PSR-4 lookup
Please login to merge, or discard this patch.