Code Duplication    Length = 11-11 lines in 2 locations

src/Tidal/WampWatch/Stub/ClientSessionStub.php 2 locations

@@ 223-233 (lines=11) @@
220
     * @param string $procedureName
221
     * @param int    $requestId
222
     */
223
    public function confirmUnregistration($procedureName, $requestId = 1)
224
    {
225
        if (!isset($this->unregistrations[$procedureName])) {
226
            throw new \RuntimeException("No registration to procedure '$procedureName' initiated.");
227
        }
228
229
        $futureResult = $this->unregistrations[$procedureName];
230
        $result = new UnregisteredMessage($requestId);
231
232
        $futureResult->resolve($result);
233
    }
234
235
    /**
236
     * Call.
@@ 262-272 (lines=11) @@
259
     * @param string    $procedureName
260
     * @param \stdClass $result
261
     */
262
    public function respondToCall($procedureName, $result)
263
    {
264
        if (!isset($this->calls[$procedureName])) {
265
            throw new \RuntimeException("No call to topic '$procedureName' initiated.");
266
        }
267
268
        /* @var $futureResult Deferred */
269
        $futureResult = $this->calls[$procedureName];
270
271
        $futureResult->resolve($result);
272
    }
273
274
275
    /**