FileSystem::isWritable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace T4web\Cron\Log;
4
5
class FileSystem
6
{
7
    /**
8
     * @param string $filename
9
     * @return bool
10
     */
11
    public function isWritable($filename)
12
    {
13
        return is_writable($filename);
14
    }
15
16
    /**
17
     * @param string $filename
18
     * @param string $message
19
     * @return int
20
     */
21
    public function put($filename, $message)
22
    {
23
        return file_put_contents($filename, $message, FILE_APPEND);
24
    }
25
}
26