Test Failed
Pull Request — master (#124)
by Andrii
11:47
created

Buildtime   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 2
b 0
f 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Composer\Config\Util;
6
7
/**
8
 * Buildtime marker class. Used as marker only.
9
 * Everything is not evaluated at compile time by default except Buildtime::* calls.
10
 * @see https://gist.github.com/samdark/86f2b9ff01a96892efbbf254eca8482d
11
 */
12
final class Buildtime
13
{
14
    /**
15
     * @param mixed $code will not be evaluated when processed with the plugin.
16
     */
17
    public static function run($code)
18
    {
19
        return $code;
20
    }
21
}
22