System   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateAssets() 0 18 3
1
<?php
2
namespace Kineo\Component;
3
4
use Silex\Application;
5
use Symfony\Component\HttpFoundation\Request;
6
7
class System
8
{
9
	public static function generateAssets()
10
	{
11
		switch(APP_ENV) {
12
			case 'DEVELOPMENT':
13
				$env = '.dev';
14
				break;
15
16
			case 'PRODUCTION':
17
				$env = '';
18
				break;
19
20
			default:
21
				$env = '';
22
				break;
23
		}
24
		
25
		return file_get_contents(__DIR__ . '/../../../assets/spa/index'.$env.'.html');
26
	}
27
}
28