Passed
Push — master ( 3295fe...37d5c2 )
by Richard
04:14 queued 14s
created

Trait2   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 7 1
1
<?php
2
3
4
namespace Testcomponents\Storyblok\Blocks;
5
6
use PHP_Typography\Settings as TypographySettings;
7
use Riclep\Storyblok\Block;
8
use Riclep\Storyblok\Traits\AppliesTypography;
9
10
class Trait2 extends Block
11
{
12
	use AppliesTypography;
13
14
	private $applyTypography = ['typography'];
0 ignored issues
show
introduced by
The private property $applyTypography is not used, and could be removed.
Loading history...
15
16
	public function init() {
17
		$settings = new TypographySettings();
18
		$settings->set_style_numbers(false);
19
20
		$this->setTypographySettings($settings);
21
22
		$this->applyTypography();
23
	}
24
}
25