Code Duplication    Length = 9-9 lines in 2 locations

src/Skobkin/Bundle/PointToolsBundle/Command/UpdateSubscriptionsCommand.php 1 location

@@ 200-208 (lines=9) @@
197
                throw $e;
198
            }
199
200
            if (!$serviceUser) {
201
                $this->logger->warning('Service user not found or marked as removed. Falling back to API.');
202
203
                try {
204
                    $serviceUser = $this->api->getUserById($this->appUserId);
205
                } catch (UserNotFoundException $e) {
206
                    throw new \RuntimeException('Service user not found in the database and could not be retrieved from API.');
207
                }
208
            }
209
210
            $this->logger->info('Getting service subscribers');
211

src/Skobkin/Bundle/PointToolsBundle/Command/UpdateUsersPrivacyCommand.php 1 location

@@ 166-174 (lines=9) @@
163
            throw $e;
164
        }
165
166
        if (!$serviceUser) {
167
            $this->logger->warning('Service user not found or marked as removed. Falling back to API.');
168
169
            try {
170
                $serviceUser = $this->api->getUserById($this->appUserId);
171
            } catch (UserNotFoundException $e) {
172
                throw new \RuntimeException('Service user not found in the database and could not be retrieved from API.');
173
            }
174
        }
175
176
        $this->logger->info('Getting service subscribers');
177