File   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A saveToFile() 0 4 1
1
<?php
2
3
namespace Sugarcrm\UpgradeSpec\Helper;
4
5
class File
6
{
7
    /**
8
     * @param $filename
9
     * @param $spec
10
     *
11
     * @return int
12
     */
13
    public function saveToFile($filename, $spec)
14
    {
15
        return file_put_contents($filename, $spec);
16
    }
17
}
18