Skip to content

Commit a7c93ee

Browse files
committed
Introduce static analysis + Fixes
1 parent 8b49e88 commit a7c93ee

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
"phpunit/phpunit": "5.7 || 6.0 || 7.0 || 7.5 || 8.4",
2626
"mockery/mockery": "^1.1.0",
2727
"friendsofphp/php-cs-fixer": "^2.16.0",
28-
"overtrue/phplint": "^1.1"
28+
"overtrue/phplint": "^1.1",
29+
"nunomaduro/larastan": "^0.4.3",
30+
"phpstan/phpstan-shim": "^0.11.19",
31+
"orchestra/testbench": "^4.3"
2932
},
3033
"autoload": {
3134
"psr-4": {

src/Config/AbstractConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract public function clearTimestampString();
4747
/**
4848
* Returns the schedule config array.
4949
*
50-
* @return array<enable,cron>
50+
* @return array{enable: bool, cron: string}
5151
*/
5252
abstract public function scheduleConfig();
5353

src/Config/FileConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function clearTimestampString()
6161
/**
6262
* Returns the shedule config array.
6363
*
64-
* @return array<enable,cron>
64+
* @return array{enable: bool, cron: string}
6565
*/
6666
public function scheduleConfig()
6767
{

src/Handler/SingleUploadHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class SingleUploadHandler extends AbstractHandler
1717
* Returns the chunks ave instance for saving.
1818
*
1919
* @param ChunkStorage $chunkStorage the chunk storage
20-
* @param AbstractConfig $config the config manager
2120
*
2221
* @return SingleSave
2322
*/

src/Receiver/FileReceiver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ public function receive()
9797
return false;
9898
}
9999

100-
return $this->handler->startSaving($this->chunkStorage, $this->config);
100+
return $this->handler->startSaving($this->chunkStorage);
101101
}
102102
}

src/Save/AbstractSave.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public function getUploadedFile()
105105
/**
106106
* Passes all the function into the file.
107107
*
108-
* @param $name string
109-
* @param $arguments array
108+
* @param string $name
109+
* @param array $arguments
110110
*
111111
* @return mixed
112112
*

src/Storage/ChunkStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function storage()
3232
/**
3333
* The disk that holds the chunk files.
3434
*
35-
* @var FilesystemAdapter
35+
* @var \Illuminate\Filesystem\FilesystemAdapter
3636
*/
3737
protected $disk;
3838

@@ -172,7 +172,7 @@ public function config()
172172
}
173173

174174
/**
175-
* @return FilesystemAdapter
175+
* @return \Illuminate\Filesystem\FilesystemAdapter
176176
*/
177177
public function disk()
178178
{

0 commit comments

Comments
 (0)