refactor(phpstan): Various code improvements
This commit is contained in:
parent
80b44af772
commit
ac3b768b50
2 changed files with 9 additions and 9 deletions
|
@ -89,12 +89,12 @@ class VideoDownload
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
private function getProp($url, $format = null, $prop = 'dump-json', $password = null)
|
||||
private function getProp($url = null, $format = null, $prop = 'dump-json', $password = null)
|
||||
{
|
||||
$arguments = [
|
||||
'--'.$prop,
|
||||
$url,
|
||||
];
|
||||
$arguments = ['--'.$prop];
|
||||
if (isset($url)) {
|
||||
$arguments[] = $url;
|
||||
}
|
||||
if (isset($format)) {
|
||||
$arguments[] = '-f '.$format;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue