fixed more indentations
This commit is contained in:
parent
acf8990de1
commit
f031591753
9 changed files with 148 additions and 148 deletions
|
@ -7,49 +7,49 @@ use OCP\AppFramework\Db\Entity;
|
|||
|
||||
class DiffTaskResult extends Entity implements JsonSerializable {
|
||||
|
||||
protected $taskId;
|
||||
protected $timestamp;
|
||||
protected $type;
|
||||
protected $taskId;
|
||||
protected $timestamp;
|
||||
protected $type;
|
||||
|
||||
protected $beforeFileExists;
|
||||
protected $beforePath;
|
||||
protected $beforeSize;
|
||||
protected $beforeFileExists;
|
||||
protected $beforePath;
|
||||
protected $beforeSize;
|
||||
|
||||
protected $currentFileExists;
|
||||
protected $currentFileId;
|
||||
protected $currentFileExists;
|
||||
protected $currentFileId;
|
||||
|
||||
protected $currentPath;
|
||||
protected $currentSize;
|
||||
protected $currentSize;
|
||||
protected $reverted;
|
||||
|
||||
public function __construct() {
|
||||
$this->addType('id','integer');
|
||||
$this->addType('taskId','integer');
|
||||
$this->addType('beforeFileExists','boolean');
|
||||
$this->addType('beforeSize','integer');
|
||||
$this->addType('currentFileExists','boolean');
|
||||
public function __construct() {
|
||||
$this->addType('id','integer');
|
||||
$this->addType('taskId','integer');
|
||||
$this->addType('beforeFileExists','boolean');
|
||||
$this->addType('beforeSize','integer');
|
||||
$this->addType('currentFileExists','boolean');
|
||||
$this->addType('currentFileId','integer');
|
||||
$this->addType('currentSize','integer');
|
||||
$this->addType('currentSize','integer');
|
||||
$this->addType('reverted','boolean');
|
||||
}
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'taskId' => $this->taskId,
|
||||
'type' => $this->type,
|
||||
'before' => [
|
||||
'fileExists' => $this->beforeFileExists,
|
||||
'path' => $this->beforePath,
|
||||
'size' => $this->beforeSize,
|
||||
],
|
||||
'current' => [
|
||||
'fileExists' => $this->currentFileExists,
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'taskId' => $this->taskId,
|
||||
'type' => $this->type,
|
||||
'before' => [
|
||||
'fileExists' => $this->beforeFileExists,
|
||||
'path' => $this->beforePath,
|
||||
'size' => $this->beforeSize,
|
||||
],
|
||||
'current' => [
|
||||
'fileExists' => $this->currentFileExists,
|
||||
'fileId' => $this->currentFileId,
|
||||
'path' => $this->currentPath,
|
||||
'size' => $this->currentSize,
|
||||
'path' => $this->currentPath,
|
||||
'size' => $this->currentSize,
|
||||
],
|
||||
'reverted' => $this->reverted,
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue