@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param $database |
21 | 21 | * @param $user |
22 | 22 | * @param $password |
23 | - * @param $host |
|
23 | + * @param string $host |
|
24 | 24 | * @param $port |
25 | 25 | * @param $socket |
26 | 26 | */ |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @param string $destinationFile |
42 | 42 | * |
43 | - * @return bool |
|
43 | + * @return boolean|string |
|
44 | 44 | */ |
45 | 45 | public function dump($destinationFile) |
46 | 46 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Spatie\Backup\BackupHandlers\Database\Databases; |
4 | 4 | |
5 | 5 | use Spatie\Backup\Console; |
6 | -use Config; |
|
7 | 6 | |
8 | 7 | class MySQLDatabase implements DatabaseInterface |
9 | 8 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * Set all files that should be included. |
18 | 18 | * |
19 | - * @param array $includedFiles |
|
19 | + * @param string[] $includedFiles |
|
20 | 20 | * |
21 | 21 | * @return $this |
22 | 22 | */ |
@@ -9,6 +9,9 @@ discard block |
||
9 | 9 | protected $disk; |
10 | 10 | protected $path; |
11 | 11 | |
12 | + /** |
|
13 | + * @param \Illuminate\Contracts\Filesystem\Filesystem $disk |
|
14 | + */ |
|
12 | 15 | public function __construct($disk, $path) |
13 | 16 | { |
14 | 17 | $this->disk = $disk; |
@@ -20,7 +23,7 @@ discard block |
||
20 | 23 | * Only files with an extension present in $onlyIncludeFilesWithExtension will be returned. |
21 | 24 | * |
22 | 25 | * @param DateTime $date |
23 | - * @param array $onlyIncludeFilesWithExtension |
|
26 | + * @param string[] $onlyIncludeFilesWithExtension |
|
24 | 27 | * |
25 | 28 | * @return array |
26 | 29 | */ |
@@ -22,7 +22,6 @@ discard block |
||
22 | 22 | * @param $password |
23 | 23 | * @param string $host |
24 | 24 | * @param int $port |
25 | - * @param string $socket |
|
26 | 25 | */ |
27 | 26 | public function __construct(Console $console, $database, $schema, $username, $password, $host, $port) |
28 | 27 | { |
@@ -38,9 +37,9 @@ discard block |
||
38 | 37 | /** |
39 | 38 | * Create a database dump. |
40 | 39 | * |
41 | - * @param $destinationFile |
|
40 | + * @param string $destinationFile |
|
42 | 41 | * |
43 | - * @return bool |
|
42 | + * @return boolean|string |
|
44 | 43 | */ |
45 | 44 | public function dump($destinationFile) |
46 | 45 | { |