Completed
Push — master ( b09517...57901d )
by
unknown
18:40
created

VariablesTrait::prepVariables()   B

Complexity

Conditions 5
Paths 10

Size

Total Lines 102

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 102
rs 7.6888
c 0
b 0
f 0
cc 5
nc 10
nop 1

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 */
6
7
namespace flipbox\saml\core\controllers\cp\view\metadata;
8
9
use Craft;
10
use craft\elements\User;
11
use craft\helpers\UrlHelper;
12
use flipbox\keychain\KeyChain;
13
use flipbox\saml\core\AbstractPlugin;
14
use flipbox\saml\core\helpers\MappingHelper;
15
use flipbox\saml\core\models\SettingsInterface;
16
use flipbox\saml\core\records\ProviderInterface;
17
18
/**
19
 * Trait VariablesTrait
20
 * @package flipbox\saml\core\controllers\cp\view\metadata
21
 * @method AbstractPlugin getPlugin
22
 */
23
trait VariablesTrait
24
{
25
26
}
27