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

FOO::loadFromString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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
}