Generator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toFile() 0 10 2
1
<?php
2
3
namespace Gettext\Generators;
4
5
use Gettext\Translations;
6
7
abstract class Generator implements GeneratorInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public static function toFile(Translations $translations, $file, array $options = [])
13
    {
14
        $content = static::toString($translations, $options);
15
16
        if (file_put_contents($file, $content) === false) {
17
            return false;
18
        }
19
20
        return true;
21
    }
22
}
23