Update code style

This commit is contained in:
alphayax 2016-06-25 14:39:11 +02:00
parent 538647b210
commit 64836862cc
3 changed files with 10 additions and 10 deletions

View File

@ -43,9 +43,9 @@ class DiskPartition extends Model {
/** @var int (Read-only) : partition free space (in bytes) */ /** @var int (Read-only) : partition free space (in bytes) */
protected $free_bytes; protected $free_bytes;
/** /**
* @var string (Read-only) : fsck result * @var string (Read-only) : fsck result
* @see symbols\Storage\DiskPartition\FsckResult * @see symbols\Storage\DiskPartition\FsckResult
*/ */
protected $fsck_result; protected $fsck_result;

View File

@ -7,7 +7,7 @@ use alphayax\freebox\utils\Model;
* @package alphayax\freebox\api\v3\models\VPN\Client * @package alphayax\freebox\api\v3\models\VPN\Client
*/ */
class IpInfo extends Model { class IpInfo extends Model {
/** @var bool (Read-only) : is the configuration valid */ /** @var bool (Read-only) : is the configuration valid */
protected $config_valid; protected $config_valid;

View File

@ -30,7 +30,7 @@ class FileSystemOperation extends ServiceAuth {
* @param string $conflictMode * @param string $conflictMode
* @return models\FileSystem\FsTask * @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 /// Convert all paths in base64
$destination_b64 = base64_encode( $destination); $destination_b64 = base64_encode( $destination);
$source_b64 = []; $source_b64 = [];
@ -55,7 +55,7 @@ class FileSystemOperation extends ServiceAuth {
* @param string $conflictMode * @param string $conflictMode
* @return models\FileSystem\FsTask * @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 /// Convert all paths in base64
$destination_b64 = base64_encode( $destination); $destination_b64 = base64_encode( $destination);
$source_b64 = []; $source_b64 = [];
@ -103,11 +103,11 @@ class FileSystemOperation extends ServiceAuth {
* @param bool $isToAppend : Append to the destination * @param bool $isToAppend : Append to the destination
* @return models\FileSystem\FsTask * @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 /// Convert all paths in base64
$destination_b64 = base64_encode( $destination); $destination_b64 = base64_encode( $destination);
$fileParts_b64 = []; $fileParts_b64 = [];
foreach($fileParts as $FilePart){ foreach( $fileParts as $FilePart){
$fileParts_b64[] = base64_encode( $FilePart); $fileParts_b64[] = base64_encode( $FilePart);
} }
@ -130,11 +130,11 @@ class FileSystemOperation extends ServiceAuth {
* @param string $destination : The destination file * @param string $destination : The destination file
* @return models\FileSystem\FsTask * @return models\FileSystem\FsTask
*/ */
public function archive( array $fileParts = [], $destination){ public function archive( array $fileParts, $destination){
/// Convert all paths in base64 /// Convert all paths in base64
$destination_b64 = base64_encode( $destination); $destination_b64 = base64_encode( $destination);
$fileParts_b64 = []; $fileParts_b64 = [];
foreach($fileParts as $FilePart){ foreach( $fileParts as $FilePart){
$fileParts_b64[] = base64_encode( $FilePart); $fileParts_b64[] = base64_encode( $FilePart);
} }