@@ -8,34 +8,34 @@ |
||
8 | 8 | { |
9 | 9 | |
10 | 10 | |
11 | - /** @param string $before */ |
|
12 | - private static string $before = "<Redis Cache Store Exception>"; |
|
11 | + /** @param string $before */ |
|
12 | + private static string $before = "<Redis Cache Store Exception>"; |
|
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * @return void |
|
17 | - */ |
|
18 | - public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
|
19 | - { |
|
15 | + /** |
|
16 | + * @return void |
|
17 | + */ |
|
18 | + public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
|
19 | + { |
|
20 | 20 | return new self(self::getBefore() . ": " .$message, $code, $previous, $details); |
21 | - } |
|
21 | + } |
|
22 | 22 | |
23 | 23 | |
24 | - /** |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public static function getBefore() |
|
28 | - { |
|
24 | + /** |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public static function getBefore() |
|
28 | + { |
|
29 | 29 | return self::$before; |
30 | - } |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * @return void |
|
34 | - */ |
|
35 | - public static function setBefore(string $text) |
|
36 | - { |
|
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
35 | + public static function setBefore(string $text) |
|
36 | + { |
|
37 | 37 | self::$before = $text; |
38 | - } |
|
38 | + } |
|
39 | 39 | |
40 | 40 | } |
41 | 41 |
@@ -34,8 +34,8 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * @return void |
|
38 | - */ |
|
37 | + * @return void |
|
38 | + */ |
|
39 | 39 | public static function copyEnv() |
40 | 40 | { |
41 | 41 | $rootDir = self::getRootPath(); |
@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | { |
11 | 11 | |
12 | 12 | /** |
13 | - * @param string $dir |
|
14 | - * @return void |
|
15 | - */ |
|
13 | + * @param string $dir |
|
14 | + * @return void |
|
15 | + */ |
|
16 | 16 | public function createDirectory(string $dir) |
17 | 17 | { |
18 | 18 | if ((!file_exists($dir) || !is_dir($dir)) && !mkdir($dir, 0777, true)) { |
@@ -21,10 +21,10 @@ discard block |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * @param string $filename |
|
25 | - * @param string $data |
|
26 | - * @return void |
|
27 | - */ |
|
24 | + * @param string $filename |
|
25 | + * @param string $data |
|
26 | + * @return void |
|
27 | + */ |
|
28 | 28 | public function writeFile(string $filename, string $data) |
29 | 29 | { |
30 | 30 | if (!@file_put_contents($filename, $data, LOCK_EX)) { |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param string $filename |
|
37 | - * @return string |
|
38 | - */ |
|
36 | + * @param string $filename |
|
37 | + * @return string |
|
38 | + */ |
|
39 | 39 | public function readFile(string $filename) |
40 | 40 | { |
41 | 41 | if (!$this->fileExists($filename)) { |
@@ -45,18 +45,18 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @param string $filename |
|
49 | - * @return bool |
|
50 | - */ |
|
48 | + * @param string $filename |
|
49 | + * @return bool |
|
50 | + */ |
|
51 | 51 | public function fileExists(string $filename) |
52 | 52 | { |
53 | 53 | return file_exists($filename); |
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * @param string $filename |
|
58 | - * @return void |
|
59 | - */ |
|
57 | + * @param string $filename |
|
58 | + * @return void |
|
59 | + */ |
|
60 | 60 | public function removeFile(string $filename) |
61 | 61 | { |
62 | 62 | if (file_exists($filename)) { |
@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @param string $dir |
|
69 | - * @return void |
|
70 | - */ |
|
68 | + * @param string $dir |
|
69 | + * @return void |
|
70 | + */ |
|
71 | 71 | public function clearDirectory(string $dir) |
72 | 72 | { |
73 | 73 | $iterator = new RecursiveIteratorIterator( |
@@ -81,9 +81,9 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @param mixed $data |
|
85 | - * @param bool $serealize |
|
86 | - */ |
|
84 | + * @param mixed $data |
|
85 | + * @param bool $serealize |
|
86 | + */ |
|
87 | 87 | public function serialize(mixed $data, bool $serealize = true) |
88 | 88 | { |
89 | 89 | if($serealize) { |