Code Duplication    Length = 10-10 lines in 2 locations

src/ClientRemote.php 2 locations

@@ 175-184 (lines=10) @@
172
    /**
173
     * @inheritdoc
174
     */
175
    public function getMessages($userId = null)
176
    {
177
        if ($userId !== null) {
178
            $path = $this->buildPath(static::MESSAGES_USER_LIST_ENDPOINT, $userId);
179
        } else {
180
            $path = $this->buildPath(static::MESSAGES_LIST_ENDPOINT);
181
        }
182
183
        return $this->performRequest('GET', $path);
184
    }
185
186
    /**
187
     * @inheritdoc
@@ 339-348 (lines=10) @@
336
    /**
337
     * @inheritdoc
338
     */
339
    public function getBookmarks($userId = null)
340
    {
341
        if ($userId !== null) {
342
            $path = $this->buildPath(static::BOOKMARKS_USER_ENDPOINT, $userId);
343
        } else {
344
            $path = $this->buildPath(static::BOOKMARKS_ALL_ENDPOINT);
345
        }
346
347
        return $this->performRequest('GET', $path);
348
    }
349
350
    /**
351
     * @inheritdoc