@@ -78,15 +78,15 @@ discard block |
||
78 | 78 | |
79 | 79 | $name = $rowCG['display_name']; |
80 | 80 | while (strlen($name) < 3) { |
81 | - $name = '_' . $name; |
|
81 | + $name = '_'.$name; |
|
82 | 82 | } |
83 | 83 | |
84 | - $this->output->writeln('+ New Team <info>' . $name . '</info>, owned by <info>' . $ownerId . '</info>'); |
|
84 | + $this->output->writeln('+ New Team <info>'.$name.'</info>, owned by <info>'.$ownerId.'</info>'); |
|
85 | 85 | |
86 | 86 | // based on owner's userid, we create federateduser and a new circle |
87 | 87 | $owner = $this->cachedFed($ownerId); |
88 | 88 | if ($owner === null) { |
89 | - $this->output->writeln('<error>unknown user</error> ' . $ownerId); |
|
89 | + $this->output->writeln('<error>unknown user</error> '.$ownerId); |
|
90 | 90 | continue; |
91 | 91 | } |
92 | 92 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | try { |
96 | 96 | $circle = $this->circlesManager->createCircle($name); |
97 | 97 | } catch (\Exception $e) { |
98 | - $this->output->writeln('<error>' . get_class($e) . ' ' . $e->getMessage() . '</error> with data ' . json_encode($rowCG)); |
|
98 | + $this->output->writeln('<error>'.get_class($e).' '.$e->getMessage().'</error> with data '.json_encode($rowCG)); |
|
99 | 99 | $this->logger->log(2, 'error while creating circle', ['exception' => $e]); |
100 | 100 | $this->circlesManager->stopSession(); |
101 | 101 | continue; |
@@ -124,17 +124,17 @@ discard block |
||
124 | 124 | |
125 | 125 | $fedUser = $this->cachedFed($userId); |
126 | 126 | if ($fedUser === null) { |
127 | - $this->output->writeln('<error>unknown user</error> ' . $userId); |
|
127 | + $this->output->writeln('<error>unknown user</error> '.$userId); |
|
128 | 128 | continue; |
129 | 129 | } |
130 | - $this->output->writeln(' - new member <info>' . $userId . '</info>'); |
|
130 | + $this->output->writeln(' - new member <info>'.$userId.'</info>'); |
|
131 | 131 | |
132 | 132 | $member = $this->circlesManager->addMember($circle->getSingleId(), $fedUser); |
133 | 133 | if ($rowM['role'] === '1') { |
134 | 134 | $this->circlesManager->levelMember($member->getId(), Member::LEVEL_ADMIN); |
135 | 135 | } |
136 | 136 | } catch (\Exception $e) { |
137 | - $this->output->writeln('<error>' . get_class($e) . ' ' . $e->getMessage() . '</error>'); |
|
137 | + $this->output->writeln('<error>'.get_class($e).' '.$e->getMessage().'</error>'); |
|
138 | 138 | $this->logger->log(2, 'error while migrating custom group member', ['exception' => $e]); |
139 | 139 | } |
140 | 140 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | ->where($update->expr()->in('id', $update->createNamedParameter($shareIds, IQueryBuilder::PARAM_INT_ARRAY))); |
171 | 171 | |
172 | 172 | $count = $update->executeStatement(); |
173 | - $this->output->writeln('> ' . ((string)$count) . ' shares updated'); |
|
173 | + $this->output->writeln('> '.((string)$count).' shares updated'); |
|
174 | 174 | |
175 | 175 | $this->fixShareChildren($shareIds, $memberIds); |
176 | 176 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | try { |
187 | 187 | $this->fedList[$userId] = $this->circlesManager->getLocalFederatedUser($userId); |
188 | 188 | } catch (\Exception $e) { |
189 | - $this->logger->warning('unknown local user ' . $userId, ['exception' => $e]); |
|
189 | + $this->logger->warning('unknown local user '.$userId, ['exception' => $e]); |
|
190 | 190 | $this->fedList[$userId] = null; |
191 | 191 | } |
192 | 192 | } |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | $count += $update->executeStatement(); |
221 | 221 | } |
222 | 222 | |
223 | - $this->output->writeln('> ' . ((string)$count) . ' children shares updated'); |
|
223 | + $this->output->writeln('> '.((string)$count).' children shares updated'); |
|
224 | 224 | } |
225 | 225 | |
226 | 226 |