Update code style
This commit is contained in:
parent
538647b210
commit
64836862cc
|
@ -43,9 +43,9 @@ class DiskPartition extends Model {
|
|||
/** @var int (Read-only) : partition free space (in bytes) */
|
||||
protected $free_bytes;
|
||||
|
||||
/**
|
||||
* @var string (Read-only) : fsck result
|
||||
* @see symbols\Storage\DiskPartition\FsckResult
|
||||
/**
|
||||
* @var string (Read-only) : fsck result
|
||||
* @see symbols\Storage\DiskPartition\FsckResult
|
||||
*/
|
||||
protected $fsck_result;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ use alphayax\freebox\utils\Model;
|
|||
* @package alphayax\freebox\api\v3\models\VPN\Client
|
||||
*/
|
||||
class IpInfo extends Model {
|
||||
|
||||
|
||||
/** @var bool (Read-only) : is the configuration valid */
|
||||
protected $config_valid;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class FileSystemOperation extends ServiceAuth {
|
|||
* @param string $conflictMode
|
||||
* @return models\FileSystem\FsTask
|
||||
*/
|
||||
public function move( array $sourceFiles = [], $destination, $conflictMode = 'recent'){
|
||||
public function move( array $sourceFiles, $destination, $conflictMode = 'recent'){
|
||||
/// Convert all paths in base64
|
||||
$destination_b64 = base64_encode( $destination);
|
||||
$source_b64 = [];
|
||||
|
@ -55,7 +55,7 @@ class FileSystemOperation extends ServiceAuth {
|
|||
* @param string $conflictMode
|
||||
* @return models\FileSystem\FsTask
|
||||
*/
|
||||
public function copy( array $sourceFiles = [], $destination, $conflictMode = 'recent'){
|
||||
public function copy( array $sourceFiles, $destination, $conflictMode = 'recent'){
|
||||
/// Convert all paths in base64
|
||||
$destination_b64 = base64_encode( $destination);
|
||||
$source_b64 = [];
|
||||
|
@ -103,11 +103,11 @@ class FileSystemOperation extends ServiceAuth {
|
|||
* @param bool $isToAppend : Append to the destination
|
||||
* @return models\FileSystem\FsTask
|
||||
*/
|
||||
public function cat( array $fileParts = [], $destination, $isMultiVolumes = false, $isToDelete = false, $isToOverwrite = false, $isToAppend = false){
|
||||
public function cat( array $fileParts, $destination, $isMultiVolumes = false, $isToDelete = false, $isToOverwrite = false, $isToAppend = false){
|
||||
/// Convert all paths in base64
|
||||
$destination_b64 = base64_encode( $destination);
|
||||
$fileParts_b64 = [];
|
||||
foreach($fileParts as $FilePart){
|
||||
foreach( $fileParts as $FilePart){
|
||||
$fileParts_b64[] = base64_encode( $FilePart);
|
||||
}
|
||||
|
||||
|
@ -130,11 +130,11 @@ class FileSystemOperation extends ServiceAuth {
|
|||
* @param string $destination : The destination file
|
||||
* @return models\FileSystem\FsTask
|
||||
*/
|
||||
public function archive( array $fileParts = [], $destination){
|
||||
public function archive( array $fileParts, $destination){
|
||||
/// Convert all paths in base64
|
||||
$destination_b64 = base64_encode( $destination);
|
||||
$fileParts_b64 = [];
|
||||
foreach($fileParts as $FilePart){
|
||||
foreach( $fileParts as $FilePart){
|
||||
$fileParts_b64[] = base64_encode( $FilePart);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue