@@ -85,6 +85,9 @@ discard block |
||
85 | 85 | return $path === '.'; |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param string $path |
|
90 | + */ |
|
88 | 91 | private function cleanKey($path) { |
89 | 92 | if ($this->isRoot($path)) { |
90 | 93 | return '/'; |
@@ -108,7 +111,7 @@ discard block |
||
108 | 111 | } |
109 | 112 | |
110 | 113 | /** |
111 | - * @param $key |
|
114 | + * @param string $key |
|
112 | 115 | * @return Result|boolean |
113 | 116 | */ |
114 | 117 | private function headObject($key) { |
@@ -234,6 +237,9 @@ discard block |
||
234 | 237 | } |
235 | 238 | } |
236 | 239 | |
240 | + /** |
|
241 | + * @param string $path |
|
242 | + */ |
|
237 | 243 | private function batchDelete($path = null) { |
238 | 244 | $params = array( |
239 | 245 | 'Bucket' => $this->bucket |
@@ -579,6 +585,9 @@ discard block |
||
579 | 585 | return $this->id; |
580 | 586 | } |
581 | 587 | |
588 | + /** |
|
589 | + * @param string $path |
|
590 | + */ |
|
582 | 591 | public function writeBack($tmpFile, $path) { |
583 | 592 | try { |
584 | 593 | $source = fopen($tmpFile, 'r'); |
@@ -126,6 +126,9 @@ |
||
126 | 126 | return 's' . str_pad($lastNumber + 1, 2, '0', STR_PAD_LEFT); |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param string $value |
|
131 | + */ |
|
129 | 132 | private function getServersConfig($value) { |
130 | 133 | $regex = '/' . $value . '$/S'; |
131 | 134 |