Test Failed
Push — master ( 8f2167...5d2217 )
by Georgi
08:27
created

HasPackageManifest::getCachedManifestPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php 
2
3
namespace Epesi\Core\System\Modules\Concerns;
4
5
use Illuminate\Filesystem\Filesystem;
6
use Epesi\Core\System\Modules\PackageManifest;
7
8
trait HasPackageManifest
9
{
10
	protected static $packageManifest;
11
	
12
	final public static function packageManifest()
13
	{
14
		return self::$packageManifest = self::$packageManifest?: new PackageManifest(new Filesystem(), app()->basePath(), self::getCachedManifestPath());
15
	}
16
	
17
	final public static function getCachedManifestPath()
18
	{
19
		return app()->bootstrapPath() . '/cache/epesi.php';
20
	}
21
}