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

Utils::get_item_id()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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