@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Delete the folder and all files/folders within it |
43 | 43 | * |
44 | - * @param $path |
|
44 | + * @param string $path |
|
45 | 45 | * |
46 | 46 | * @return bool |
47 | 47 | */ |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Delete the folder and all files/folders within it |
43 | 43 | * |
44 | - * @param $path |
|
44 | + * @param string $path |
|
45 | 45 | * |
46 | 46 | * @return bool |
47 | 47 | */ |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Delete the folder and all files/folders within it |
43 | 43 | * |
44 | - * @param $path |
|
44 | + * @param string $path |
|
45 | 45 | * |
46 | 46 | * @return bool |
47 | 47 | */ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * process |
44 | 44 | * @param array|null $env The environment variables or null to inherit |
45 | 45 | * @param string|null $input The input |
46 | - * @param int|float|null $timeout The timeout in seconds or null to disable |
|
46 | + * @param integer $timeout The timeout in seconds or null to disable |
|
47 | 47 | * @param array $options An array of options for proc_open |
48 | 48 | * |
49 | 49 | * @return Process |
@@ -10,7 +10,7 @@ |
||
10 | 10 | const UNKNOWN = 'unknown'; |
11 | 11 | |
12 | 12 | /** |
13 | - * @return array |
|
13 | + * @return string[] |
|
14 | 14 | */ |
15 | 15 | public static function getCompressionTypes() |
16 | 16 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
23 | - * @return mixed |
|
23 | + * @return string |
|
24 | 24 | */ |
25 | 25 | public function getDirectory() |
26 | 26 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function findFiles(FileNodeCollectionInterface $files) |
31 | 31 | { |
32 | - return $files->filter(function (FileNode $file) { |
|
32 | + return $files->filter(function(FileNode $file) { |
|
33 | 33 | $metadata = $file->getMetadata(); |
34 | 34 | if ($metadata) { |
35 | 35 | return ($this->filter->matches($file->getMetadata())); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | $this->log(LogLevel::INFO, "Merging files in collection $files into: {$target}"); |
69 | 69 | |
70 | - $filePaths = $files->map(function (LocalFile $item) { |
|
70 | + $filePaths = $files->map(function(LocalFile $item) { |
|
71 | 71 | return $item->getPath(); |
72 | 72 | }); |
73 | 73 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | if (!$keepOld) { |
107 | 107 | $this->log(LogLevel::DEBUG, "Deleting old files in collection $files"); |
108 | - $files->map(function (LocalFile $item) { |
|
108 | + $files->map(function(LocalFile $item) { |
|
109 | 109 | if ($item->exists()) { |
110 | 110 | $item->delete(); |
111 | 111 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | return null; |
24 | 24 | } |
25 | 25 | |
26 | - $commonPath = $this->reduce(function ($commonPath, FileNodeInterface $file) { |
|
26 | + $commonPath = $this->reduce(function($commonPath, FileNodeInterface $file) { |
|
27 | 27 | if (is_null($commonPath)) { |
28 | 28 | return $file->getPath(); |
29 | 29 | } |