mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-16 04:03:50 +03:00
PHPstan updates (#1047)
* Not found property rule * Make these “better” * Day 1 * Day 2 * Day 3 * Dat 4 * Remove disabled check * Day 4 continued * Run pint * Final changes hopefully * Pint fixes * Fix again * Reset these * Update app/Filament/Admin/Pages/Health.php Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> * Update app/Traits/CheckMigrationsTrait.php Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> --------- Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
This commit is contained in:
@@ -53,6 +53,8 @@ class DaemonFileRepository extends DaemonRepository
|
||||
/**
|
||||
* Return a directory listing for a given path.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function getDirectory(string $path): array
|
||||
@@ -80,6 +82,8 @@ class DaemonFileRepository extends DaemonRepository
|
||||
/**
|
||||
* Renames or moves a file on the remote machine.
|
||||
*
|
||||
* @param array<array{from: string, to: string}> $files
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function renameFiles(?string $root, array $files): Response
|
||||
@@ -107,6 +111,8 @@ class DaemonFileRepository extends DaemonRepository
|
||||
/**
|
||||
* Delete a file or folder for the server.
|
||||
*
|
||||
* @param string[] $files
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function deleteFiles(?string $root, array $files): Response
|
||||
@@ -122,6 +128,9 @@ class DaemonFileRepository extends DaemonRepository
|
||||
/**
|
||||
* Compress the given files or folders in the given root.
|
||||
*
|
||||
* @param string[] $files
|
||||
* @return array<string, mixed>
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function compressFiles(?string $root, array $files): array
|
||||
@@ -160,6 +169,8 @@ class DaemonFileRepository extends DaemonRepository
|
||||
/**
|
||||
* Chmods the given files.
|
||||
*
|
||||
* @param array<array{file: string, mode: string}> $files
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function chmodFiles(?string $root, array $files): Response
|
||||
@@ -175,6 +186,8 @@ class DaemonFileRepository extends DaemonRepository
|
||||
/**
|
||||
* Pulls a file from the given URL and saves it to the disk.
|
||||
*
|
||||
* @param array<mixed> $params
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function pull(string $url, ?string $directory, array $params = []): Response
|
||||
@@ -193,6 +206,8 @@ class DaemonFileRepository extends DaemonRepository
|
||||
/**
|
||||
* Searches all files in the directory (and its subdirectories) for the given search term.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*
|
||||
* @throws ConnectionException
|
||||
*/
|
||||
public function search(string $searchTerm, ?string $directory): array
|
||||
|
||||
Reference in New Issue
Block a user