PhpLoader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 5
rs 10
ccs 2
cts 2
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A parseFile() 0 2 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Nexendrie\Translation\Loaders;
5
6
/**
7
 * PhpLoader
8
 * Loads texts from php files
9
 *
10
 * @author Jakub Konečný
11
 */
12 1
final class PhpLoader extends FileLoader {
13
  protected $extension = "php";
14
  
15
  protected function parseFile(string $filename): array {
16 1
    return require $filename;
17
  }
18
}
19
?>