1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00

Drop unnecessary doc blocks (#1339)

* Drop unnecessary doc blocks

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Matt Stauffer
2023-01-11 09:14:39 -05:00
committed by GitHub
parent c4faf27525
commit 4c2c4a1238
39 changed files with 46 additions and 1072 deletions

View File

@@ -10,9 +10,6 @@ class Filesystem
{
/**
* Determine if the given path is a directory.
*
* @param string $path
* @return bool
*/
public function isDir(string $path): bool
{
@@ -21,11 +18,6 @@ public function isDir(string $path): bool
/**
* Create a directory.
*
* @param string $path
* @param string|null $owner
* @param int $mode
* @return void
*/
public function mkdir(string $path, ?string $owner = null, int $mode = 0755): void
{
@@ -38,11 +30,6 @@ public function mkdir(string $path, ?string $owner = null, int $mode = 0755): vo
/**
* Ensure that the given directory exists.
*
* @param string $path
* @param string|null $owner
* @param int $mode
* @return void
*/
public function ensureDirExists(string $path, ?string $owner = null, int $mode = 0755): void
{
@@ -53,10 +40,6 @@ public function ensureDirExists(string $path, ?string $owner = null, int $mode =
/**
* Create a directory as the non-root user.
*
* @param string $path
* @param int $mode
* @return void
*/
public function mkdirAsUser(string $path, int $mode = 0755): void
{
@@ -65,10 +48,6 @@ public function mkdirAsUser(string $path, int $mode = 0755): void
/**
* Touch the given path.
*
* @param string $path
* @param string|null $owner
* @return string
*/
public function touch(string $path, ?string $owner = null): string
{
@@ -83,9 +62,6 @@ public function touch(string $path, ?string $owner = null): string
/**
* Touch the given path as the non-root user.
*
* @param string $path
* @return string
*/
public function touchAsUser(string $path): string
{
@@ -94,9 +70,6 @@ public function touchAsUser(string $path): string
/**
* Determine if the given file exists.
*
* @param string $path
* @return bool
*/
public function exists(string $path): bool
{
@@ -105,9 +78,6 @@ public function exists(string $path): bool
/**
* Read the contents of the given file.
*
* @param string $path
* @return string
*/
public function get(string $path): string
{
@@ -116,11 +86,6 @@ public function get(string $path): string
/**
* Write to the given file.
*
* @param string $path
* @param string $contents
* @param string|null $owner
* @return void
*/
public function put(string $path, string $contents, ?string $owner = null): void
{
@@ -133,10 +98,6 @@ public function put(string $path, string $contents, ?string $owner = null): void
/**
* Write to the given file as the non-root user.
*
* @param string $path
* @param string|null $contents
* @return void
*/
public function putAsUser(string $path, ?string $contents): void
{
@@ -145,11 +106,6 @@ public function putAsUser(string $path, ?string $contents): void
/**
* Append the contents to the given file.
*
* @param string $path
* @param string $contents
* @param string|null $owner
* @return void
*/
public function append(string $path, string $contents, ?string $owner = null): void
{
@@ -162,10 +118,6 @@ public function append(string $path, string $contents, ?string $owner = null): v
/**
* Append the contents to the given file as the non-root user.
*
* @param string $path
* @param string $contents
* @return void
*/
public function appendAsUser(string $path, string $contents): void
{
@@ -174,10 +126,6 @@ public function appendAsUser(string $path, string $contents): void
/**
* Copy the given file to a new location.
*
* @param string $from
* @param string $to
* @return void
*/
public function copy(string $from, string $to): void
{
@@ -186,10 +134,6 @@ public function copy(string $from, string $to): void
/**
* Copy the given file to a new location for the non-root user.
*
* @param string $from
* @param string $to
* @return void
*/
public function copyAsUser(string $from, string $to): void
{
@@ -200,10 +144,6 @@ public function copyAsUser(string $from, string $to): void
/**
* Create a symlink to the given target.
*
* @param string $target
* @param string $link
* @return void
*/
public function symlink(string $target, string $link): void
{
@@ -218,10 +158,6 @@ public function symlink(string $target, string $link): void
* Create a symlink to the given target for the non-root user.
*
* This uses the command line as PHP can't change symlink permissions.
*
* @param string $target
* @param string $link
* @return void
*/
public function symlinkAsUser(string $target, string $link): void
{
@@ -234,9 +170,6 @@ public function symlinkAsUser(string $target, string $link): void
/**
* Delete the file at the given path.
*
* @param string $path
* @return void
*/
public function unlink(string $path): void
{
@@ -247,9 +180,6 @@ public function unlink(string $path): void
/**
* Recursively delete a directory and its contents.
*
* @param string $path
* @return void
*/
public function rmDirAndContents(string $path): void
{
@@ -269,10 +199,6 @@ public function rmDirAndContents(string $path): void
/**
* Change the owner of the given path.
*
* @param string $path
* @param string $user
* @return void
*/
public function chown(string $path, string $user): void
{
@@ -281,10 +207,6 @@ public function chown(string $path, string $user): void
/**
* Change the group of the given path.
*
* @param string $path
* @param string $group
* @return void
*/
public function chgrp(string $path, string $group): void
{
@@ -293,9 +215,6 @@ public function chgrp(string $path, string $group): void
/**
* Resolve the given path.
*
* @param string $path
* @return string
*/
public function realpath(string $path): string
{
@@ -304,9 +223,6 @@ public function realpath(string $path): string
/**
* Determine if the given path is a symbolic link.
*
* @param string $path
* @return bool
*/
public function isLink(string $path): bool
{
@@ -315,9 +231,6 @@ public function isLink(string $path): bool
/**
* Resolve the given symbolic link.
*
* @param string $path
* @return string
*/
public function readLink(string $path): string
{
@@ -326,9 +239,6 @@ public function readLink(string $path): string
/**
* Remove all of the broken symbolic links at the given path.
*
* @param string $path
* @return void
*/
public function removeBrokenLinksAt(string $path): void
{
@@ -343,9 +253,6 @@ public function removeBrokenLinksAt(string $path): void
/**
* Determine if the given path is a broken symbolic link.
*
* @param string $path
* @return bool
*/
public function isBrokenLink(string $path): bool
{
@@ -354,9 +261,6 @@ public function isBrokenLink(string $path): bool
/**
* Scan the given directory path.
*
* @param string $path
* @return array
*/
public function scandir(string $path): array
{
@@ -368,9 +272,6 @@ public function scandir(string $path): array
/**
* Get custom stub file if exists.
*
* @param string $filename
* @return string
*/
public function getStub(string $filename): string
{