Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | public function write($data, $mode = 0) |
||
51 | { |
||
52 | if($mode & FILE_APPEND){ |
||
53 | $data = $this->read() . $data; |
||
54 | } |
||
55 | if(!$this->gaufrette->has($this->filePath)){ |
||
56 | $this->gaufrette->createFile($this->filePath); |
||
57 | } |
||
58 | return $this->gaufrette->write($this->filePath, $data, true); |
||
59 | } |
||
60 | } |
||
61 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.