@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @return FederatedLink |
| 78 | 78 | */ |
| 79 | 79 | public function setId($id) { |
| 80 | - $this->id = (int) $id; |
|
| 80 | + $this->id = (int)$id; |
|
| 81 | 81 | |
| 82 | 82 | return $this; |
| 83 | 83 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * @return $this |
| 97 | 97 | */ |
| 98 | 98 | public function setToken($token) { |
| 99 | - $this->token = (string) $token; |
|
| 99 | + $this->token = (string)$token; |
|
| 100 | 100 | |
| 101 | 101 | return $this; |
| 102 | 102 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * @return FederatedLink |
| 126 | 126 | */ |
| 127 | 127 | public function setAddress($address) { |
| 128 | - $this->address = (string) $address; |
|
| 128 | + $this->address = (string)$address; |
|
| 129 | 129 | |
| 130 | 130 | return $this; |
| 131 | 131 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | * @return FederatedLink |
| 145 | 145 | */ |
| 146 | 146 | public function setLocalAddress($address) { |
| 147 | - $this->localAddress = (string) $address; |
|
| 147 | + $this->localAddress = (string)$address; |
|
| 148 | 148 | |
| 149 | 149 | return $this; |
| 150 | 150 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | * @return FederatedLink |
| 183 | 183 | */ |
| 184 | 184 | public function setUniqueId($uniqueId) { |
| 185 | - $this->uniqueId = (string) $uniqueId; |
|
| 185 | + $this->uniqueId = (string)$uniqueId; |
|
| 186 | 186 | |
| 187 | 187 | return $this; |
| 188 | 188 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @return FederatedLink |
| 202 | 202 | */ |
| 203 | 203 | public function setRemoteCircleName($circleName) { |
| 204 | - $this->remoteCircleName = (string) $circleName; |
|
| 204 | + $this->remoteCircleName = (string)$circleName; |
|
| 205 | 205 | |
| 206 | 206 | return $this; |
| 207 | 207 | } |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * @return FederatedLink |
| 221 | 221 | */ |
| 222 | 222 | public function setCircleName($circleName) { |
| 223 | - $this->localCircleName = (string) $circleName; |
|
| 223 | + $this->localCircleName = (string)$circleName; |
|
| 224 | 224 | |
| 225 | 225 | return $this; |
| 226 | 226 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * @return FederatedLink |
| 240 | 240 | */ |
| 241 | 241 | public function setStatus($status) { |
| 242 | - $this->status = (int) $status; |
|
| 242 | + $this->status = (int)$status; |
|
| 243 | 243 | |
| 244 | 244 | return $this; |
| 245 | 245 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * @return $this |
| 94 | 94 | */ |
| 95 | 95 | public function setUniqueId($uniqueId) { |
| 96 | - $this->uniqueId = (string) $uniqueId; |
|
| 96 | + $this->uniqueId = (string)$uniqueId; |
|
| 97 | 97 | |
| 98 | 98 | return $this; |
| 99 | 99 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $qb->where( |
| 84 | 84 | $expr->andX( |
| 85 | - $expr->eq('f.circle_id', $qb->createNamedParameter((int) $circleId)), |
|
| 85 | + $expr->eq('f.circle_id', $qb->createNamedParameter((int)$circleId)), |
|
| 86 | 86 | $expr->eq('f.status', $qb->createNamedParameter(9)) |
| 87 | 87 | ) |
| 88 | 88 | ); |
@@ -111,8 +111,8 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | $qb->where( |
| 113 | 113 | $expr->andX( |
| 114 | - $expr->eq('f.circle_id', $qb->createNamedParameter((int) $circleId)), |
|
| 115 | - $expr->eq('f.unique_id', $qb->createNamedParameter((string) $uniqueId)) |
|
| 114 | + $expr->eq('f.circle_id', $qb->createNamedParameter((int)$circleId)), |
|
| 115 | + $expr->eq('f.unique_id', $qb->createNamedParameter((string)$uniqueId)) |
|
| 116 | 116 | ) |
| 117 | 117 | ); |
| 118 | 118 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | FederatedService $federatedService, |
| 75 | 75 | MiscService $miscService |
| 76 | 76 | ) { |
| 77 | - $this->userId = (string) $userId; |
|
| 77 | + $this->userId = (string)$userId; |
|
| 78 | 78 | $this->configService = $configService; |
| 79 | 79 | $this->circlesRequest = $circlesRequest; |
| 80 | 80 | $this->broadcastService = $broadcastService; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $frame->setAuthor($this->userId); |
| 108 | 108 | $frame->setHeader('author', $this->userId); |
| 109 | 109 | $frame->setHeader('circleName', $circle->getName()); |
| 110 | - $frame->setHeader('broadcast', (string) $broadcast); |
|
| 110 | + $frame->setHeader('broadcast', (string)$broadcast); |
|
| 111 | 111 | $frame->generateUniqueId(); |
| 112 | 112 | $frame->setCircleName($circle->getName()); |
| 113 | 113 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | return null; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - return $this->circlesRequest->getFrame((int) $circleId, (string) $uniqueId); |
|
| 135 | + return $this->circlesRequest->getFrame((int)$circleId, (string)$uniqueId); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | CirclesRequest $circlesRequest, |
| 64 | 64 | MiscService $miscService |
| 65 | 65 | ) { |
| 66 | - $this->userId = (string) $userId; |
|
| 66 | + $this->userId = (string)$userId; |
|
| 67 | 67 | $this->configService = $configService; |
| 68 | 68 | $this->circlesRequest = $circlesRequest; |
| 69 | 69 | $this->miscService = $miscService; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | return; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - $broadcaster = \OC::$server->query((string) $broadcast); |
|
| 89 | + $broadcaster = \OC::$server->query((string)$broadcast); |
|
| 90 | 90 | if (!($broadcaster instanceof IBroadcaster)) { |
| 91 | 91 | throw new BroadcasterIsNotCompatible(); |
| 92 | 92 | } |