Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 6 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
83 | 3 | private function write() |
|
|
|||
84 | { |
||
85 | 3 | $cache = serialize($this->records); |
|
86 | 3 | flock($this->file, LOCK_EX); |
|
87 | 3 | rewind($this->file); |
|
88 | 3 | ftruncate($this->file, 0); |
|
89 | 3 | $bytes = fwrite($this->file, $cache); |
|
90 | 3 | flock($this->file, LOCK_UN); |
|
91 | |||
92 | 3 | return $bytes === strlen($cache); |
|
93 | } |
||
94 | |||
95 | } |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.