@@ -33,7 +33,7 @@ |
||
33 | 33 | public function save(string $path):bool |
34 | 34 | { |
35 | 35 | foreach ($this as $name => $value) { |
36 | - if (\file_put_contents($path, $name .'|'. \serialize($value), FILE_APPEND) === false) { |
|
36 | + if (\file_put_contents($path, $name.'|'.\serialize($value), FILE_APPEND) === false) { |
|
37 | 37 | return false; |
38 | 38 | } |
39 | 39 | } |
@@ -40,11 +40,11 @@ |
||
40 | 40 | while (!feof($fp)) { |
41 | 41 | fseek($fp, $offset); |
42 | 42 | $content = fread($fp, $this->bufferSize); |
43 | - $content.=(feof($fp))? "\n":''; |
|
43 | + $content .= (feof($fp)) ? "\n" : ''; |
|
44 | 44 | $size = strpos($content, "\n"); |
45 | 45 | $offset += $size; |
46 | 46 | if ($content[$size - 1] === "\r") { |
47 | - $content = substr($content, 0, $size -1); |
|
47 | + $content = substr($content, 0, $size - 1); |
|
48 | 48 | } else { |
49 | 49 | $content = substr($content, 0, $size); |
50 | 50 | } |
@@ -40,9 +40,9 @@ |
||
40 | 40 | protected $matcher; |
41 | 41 | |
42 | 42 | |
43 | - public function __construct(array $methods, string $uri, array $attribute=[]) |
|
43 | + public function __construct(array $methods, string $uri, array $attribute = []) |
|
44 | 44 | { |
45 | - array_walk($methods, function ($value) { |
|
45 | + array_walk($methods, function($value) { |
|
46 | 46 | return strtoupper($value); |
47 | 47 | }); |
48 | 48 | $this->methods = $methods; |