Code Duplication    Length = 19-21 lines in 2 locations

lib/Db/OtoConfirmation.php 1 location

@@ 8-28 (lines=21) @@
5
6
use OCP\AppFramework\Db\Entity;
7
8
class OtoConfirmation extends Entity implements JsonSerializable {
9
10
	public $otoConfirmationId;
11
    public $otoLayerId;
12
	public $name;
13
	public $eventId;
14
	public $sourceId;
15
	public $destId;
16
	
17
18
    public function jsonSerialize() {
19
        return [
20
            'otoConfirmationId' => $this->otoConfirmationId,
21
            'otoLayerId' => $this->otoLayerId,
22
			'name' => $this->name,
23
			'eventId' =>  $this->eventId,
24
			'sourceId' => $this->sourceId,
25
			'destId' => $this->destId
26
        ];
27
    }
28
}

lib/Db/OtoLayer.php 1 location

@@ 8-26 (lines=19) @@
5
6
use OCP\AppFramework\Db\Entity;
7
8
class OtoLayer extends Entity implements JsonSerializable {
9
10
	public $otoLayerId;
11
    public $sourceId;
12
	public $destId;
13
	public $userId;
14
	public $password;
15
	
16
17
    public function jsonSerialize() {
18
        return [
19
            'otoLayerId' => $this->otoLayerId,
20
            'sourceId' => $this->sourceId,
21
			'destId' => $this->destId,
22
			'userId'=>  $this->userId,
23
			'password'=> $this->password
24
        ];
25
    }
26
}