@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | class RemoteInstance extends NC22Signatory implements INC22QueryRow, JsonSerializable { |
47 | 47 | use TArrayTools; |
48 | 48 | |
49 | - public const TYPE_UNKNOWN = 'Unknown'; // not trusted |
|
50 | - public const TYPE_PASSIVE = 'Passive'; // Minimum information about Federated Circles are broadcasted if a member belongs to the circle. |
|
51 | - public const TYPE_EXTERNAL = 'External'; // info about Federated Circles and their members are broadcasted if a member belongs to the circle. |
|
52 | - public const TYPE_TRUSTED = 'Trusted'; // everything about Federated Circles are broadcasted. |
|
53 | - public const TYPE_GLOBALSCALE = 'GlobalScale'; // every Circle is broadcasted, |
|
49 | + public const TYPE_UNKNOWN = 'Unknown'; // not trusted |
|
50 | + public const TYPE_PASSIVE = 'Passive'; // Minimum information about Federated Circles are broadcasted if a member belongs to the circle. |
|
51 | + public const TYPE_EXTERNAL = 'External'; // info about Federated Circles and their members are broadcasted if a member belongs to the circle. |
|
52 | + public const TYPE_TRUSTED = 'Trusted'; // everything about Federated Circles are broadcasted. |
|
53 | + public const TYPE_GLOBALSCALE = 'GlobalScale'; // every Circle is broadcasted, |
|
54 | 54 | |
55 | 55 | public static $LIST_TYPE = [ |
56 | 56 | self::TYPE_UNKNOWN, |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | ]; |
474 | 474 | |
475 | 475 | if ($this->getAuthSigned() !== '') { |
476 | - $data['auth-signed'] = $this->getAlgorithm() . ':' . $this->getAuthSigned(); |
|
476 | + $data['auth-signed'] = $this->getAlgorithm().':'.$this->getAuthSigned(); |
|
477 | 477 | } |
478 | 478 | |
479 | 479 | if (!empty($this->getAliases())) { |
@@ -492,17 +492,17 @@ discard block |
||
492 | 492 | * @throws RemoteNotFoundException |
493 | 493 | */ |
494 | 494 | public function importFromDatabase(array $data, string $prefix = ''): INC22QueryRow { |
495 | - if ($this->getInt($prefix . 'id', $data) === 0) { |
|
495 | + if ($this->getInt($prefix.'id', $data) === 0) { |
|
496 | 496 | throw new RemoteNotFoundException(); |
497 | 497 | } |
498 | 498 | |
499 | - $this->setDbId($this->getInt($prefix . 'id', $data)); |
|
500 | - $this->import($this->getArray($prefix . 'item', $data)); |
|
501 | - $this->setOrigData($this->getArray($prefix . 'item', $data)); |
|
502 | - $this->setType($this->get($prefix . 'type', $data)); |
|
503 | - $this->setInterface($this->getInt($prefix . 'interface', $data)); |
|
504 | - $this->setInstance($this->get($prefix . 'instance', $data)); |
|
505 | - $this->setId($this->get($prefix . 'href', $data)); |
|
499 | + $this->setDbId($this->getInt($prefix.'id', $data)); |
|
500 | + $this->import($this->getArray($prefix.'item', $data)); |
|
501 | + $this->setOrigData($this->getArray($prefix.'item', $data)); |
|
502 | + $this->setType($this->get($prefix.'type', $data)); |
|
503 | + $this->setInterface($this->getInt($prefix.'interface', $data)); |
|
504 | + $this->setInstance($this->get($prefix.'instance', $data)); |
|
505 | + $this->setId($this->get($prefix.'href', $data)); |
|
506 | 506 | |
507 | 507 | return $this; |
508 | 508 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | //use OCA\Files\App as FilesApp; |
83 | 83 | |
84 | 84 | |
85 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
85 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
86 | 86 | |
87 | 87 | |
88 | 88 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | // It seems that AccountManager use deprecated dispatcher, let's use a deprecated listener |
147 | 147 | $dispatcher = OC::$server->getEventDispatcher(); |
148 | 148 | $dispatcher->addListener( |
149 | - 'OC\AccountManager::userUpdated', function (GenericEvent $event) { |
|
149 | + 'OC\AccountManager::userUpdated', function(GenericEvent $event) { |
|
150 | 150 | /** @var IUser $user */ |
151 | 151 | $user = $event->getSubject(); |
152 | 152 | /** @var DeprecatedListener $deprecatedListener */ |