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

Trait2::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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