Completed
Push — master ( 89f95d...43ee50 )
by Wanderson
02:15
created

Description::otimize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Win\Html\Seo;
4
5
/**
6
 * Auxilia a criar o description otimizado para SEO
7
 */
8
class Description {
9
10
	protected static $MAX_LENGTH = 150;
11
12
	/**
13
	 * Retorna a description com tamanho ideal
14
	 * @param string $description
15
	 * @return string
16
	 */
17
	public static function otimize($description) {
18
		return strTruncate($description, static::$MAX_LENGTH, true);
19
	}
20
21
}
22