Completed
Push — feature/back-compat-7.5 ( 9186e7 )
by
unknown
23:17 queued 14:42
created

Warnings   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 11 3
1
<?php
2
3
namespace Automattic\Jetpack\Analyzer;
4
5
class Warnings extends PersistentList {
6
	public function generate( $invocations, $differences ) {
7
		/**
8
		 * Scan every invocation to see if it depends on a Difference
9
		 */
10
		foreach( $invocations->get() as $invocation ) {
11
			foreach( $differences->get() as $difference ) {
12
				// $warning = $
13
				$difference->find_invocation_warnings( $invocation, $this );
14
			}
15
		}
16
	}
17
}