Passed
Push — master ( 3c6756...8b3b37 )
by Michael
20:43 queued 12:59
created

FOO   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 13
c 2
b 0
f 0
dl 0
loc 34
rs 10
wmc 5

4 Methods

Rating   Name   Duplication   Size   Complexity  
A loadFromString() 0 5 1
A save() 0 9 2
A reset() 0 4 1
A load() 0 5 1
1
<?php
2
3
namespace WideImage\Mapper;
4
5
/**
6
 * @package Tests
7
 */
8
class FOO
9
{
10
	public static $calls = array();
11
	public static $handle = null;
12
13
	public static function reset()
14
	{
15
		static::$calls  = array();
16
		static::$handle = null;
17
	}
18
19
	public function load()
20
	{
21
		static::$calls['load'] = func_get_args();
22
23
		return static::$handle;
24
	}
25
26
	public function loadFromString($data)
27
	{
28
		static::$calls['loadFromString'] = func_get_args();
29
30
		return static::$handle;
31
	}
32
33
	public function save($image, $uri = null)
34
	{
35
		static::$calls['save'] = func_get_args();
36
37
		if ($uri == null) {
38
			echo 'out';
39
		}
40
41
		return true;
42
	}
43
}