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

Description   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 14
rs 10
wmc 1
lcom 1
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A otimize() 0 3 1
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