Passed
Push — master ( d021a5...a13070 )
by Sam
03:47 queued 12s
created

PlaceholderThumbnail   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUrl() 0 3 1
1
<?php
2
3
/**
4
 * Represents an image placeholder
5
 *
6
 * @author Sam Stenvall <[email protected]>
7
 * @copyright Copyright &copy; Sam Stenvall 2015-
8
 * @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
9
 */
10
class PlaceholderThumbnail extends AbstractThumbnail
11
{
12
13
	public function getUrl()
14
	{
15
		return Yii::app()->baseUrl.'/'.$this->_path;
16
	}
17
18
}
19