@@ -174,6 +174,12 @@ |
||
| 174 | 174 | return '/' . str_replace('%2F', '/', $doubleEncoded); |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | + /** |
|
| 178 | + * @param string $longDate |
|
| 179 | + * @param string $creq |
|
| 180 | + * |
|
| 181 | + * @return string |
|
| 182 | + */ |
|
| 177 | 183 | private function createStringToSign($longDate, $credentialScope, $creq) |
| 178 | 184 | { |
| 179 | 185 | $hash = hash('sha256', $creq); |
@@ -121,6 +121,9 @@ discard block |
||
| 121 | 121 | $this->prevInput = $entry; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param double $start |
|
| 126 | + */ |
|
| 124 | 127 | private function stepOutput($start, $entry) |
| 125 | 128 | { |
| 126 | 129 | static $keys = ['result', 'error']; |
@@ -130,6 +133,9 @@ discard block |
||
| 130 | 133 | $this->prevOutput = $entry; |
| 131 | 134 | } |
| 132 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $title |
|
| 138 | + */ |
|
| 133 | 139 | private function compareStep(array $a, array $b, $title, array $keys) |
| 134 | 140 | { |
| 135 | 141 | $changes = []; |
@@ -280,6 +286,9 @@ discard block |
||
| 280 | 286 | } |
| 281 | 287 | } |
| 282 | 288 | |
| 289 | + /** |
|
| 290 | + * @param string $value |
|
| 291 | + */ |
|
| 283 | 292 | private function write($value) |
| 284 | 293 | { |
| 285 | 294 | if ($this->config['scrub_auth']) { |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | * |
| 227 | 227 | * @param string $path |
| 228 | 228 | * |
| 229 | - * @return resource |
|
| 229 | + * @return boolean |
|
| 230 | 230 | */ |
| 231 | 231 | public function createWriteStream($path) |
| 232 | 232 | { |
@@ -307,7 +307,7 @@ |
||
| 307 | 307 | * |
| 308 | 308 | * @param string $directoryPath |
| 309 | 309 | * |
| 310 | - * @return bool |
|
| 310 | + * @return boolean|null |
|
| 311 | 311 | */ |
| 312 | 312 | public function hasDirectory($directoryPath) |
| 313 | 313 | { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | |
| 17 | 17 | use CKSource\CKFinder\Acl\AclInterface; |
| 18 | 18 | use CKSource\CKFinder\Acl\Permission; |
| 19 | -use CKSource\CKFinder\Backend\Adapter\AwsS3; |
|
| 20 | 19 | use CKSource\CKFinder\Backend\Adapter\EmulateRenameDirectoryInterface; |
| 21 | 20 | use CKSource\CKFinder\CKFinder; |
| 22 | 21 | use CKSource\CKFinder\Config; |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * |
| 94 | 94 | * @param string $key |
| 95 | 95 | * |
| 96 | - * @return bool true if successful |
|
| 96 | + * @return false|null true if successful |
|
| 97 | 97 | */ |
| 98 | 98 | public function delete($key) |
| 99 | 99 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use CKSource\CKFinder\Acl\Permission; |
| 18 | 18 | use CKSource\CKFinder\Config; |
| 19 | 19 | use CKSource\CKFinder\Event\CKFinderEvent; |
| 20 | -use CKSource\CKFinder\Event\DownloadFileEvent; |
|
| 21 | 20 | use CKSource\CKFinder\Event\ProxyDownloadEvent; |
| 22 | 21 | use CKSource\CKFinder\Exception\AccessDeniedException; |
| 23 | 22 | use CKSource\CKFinder\Exception\FileNotFoundException; |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use CKSource\CKFinder\Event\BeforeCommandEvent; |
| 19 | 19 | use CKSource\CKFinder\Event\CKFinderEvent; |
| 20 | 20 | use CKSource\CKFinder\Exception\InvalidCommandException; |
| 21 | -use CKSource\CKFinder\Exception\InvalidRequestException; |
|
| 22 | 21 | use CKSource\CKFinder\Exception\MethodNotAllowedException; |
| 23 | 22 | use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface; |
| 24 | 23 | use Symfony\Component\HttpFoundation\Request; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | /** |
| 60 | 60 | * @param string $fileName |
| 61 | 61 | * @param CKFinder $app |
| 62 | - * @param null $newFileName |
|
| 62 | + * @param string $newFileName |
|
| 63 | 63 | */ |
| 64 | 64 | public function __construct($fileName, CKFinder $app, $newFileName = null) |
| 65 | 65 | { |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | /** |
| 185 | 185 | * Returns file contents. |
| 186 | 186 | * |
| 187 | - * @return resource contents stream |
|
| 187 | + * @return string|false contents stream |
|
| 188 | 188 | */ |
| 189 | 189 | public function getContents() |
| 190 | 190 | { |