Completed
Push — fix/production-builds ( 301e61...f5e011 )
by
unknown
288:28 queued 279:29
created

Utils   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A get_item_values() 0 3 1
A get_item_ids() 0 3 1
A get_item_value() 0 3 1
A get_item_id() 0 3 1
1
<?php
2
3
namespace Automattic\Jetpack\Sync;
4
5
class Utils {
6
7
	static function get_item_values( $items ) {
8
		return array_map( array( __CLASS__, 'get_item_value' ), $items );
9
	}
10
11
	static function get_item_ids( $items ) {
12
		return array_map( array( __CLASS__, 'get_item_id' ), $items );
13
	}
14
15
	private static function get_item_value( $item ) {
16
		return $item->value;
17
	}
18
19
	private static function get_item_id( $item ) {
20
		return $item->id;
21
	}
22
}
23