Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 219-229 (lines=11) @@
216
     * @param string $procedureName
217
     * @param int    $requestId
218
     */
219
    public function confirmUnregistration($procedureName, $requestId = 1)
220
    {
221
        if (!isset($this->unregistrations[$procedureName])) {
222
            throw new \RuntimeException("No registration to procedure '$procedureName' initiated.");
223
        }
224
225
        $futureResult = $this->unregistrations[$procedureName];
226
        $result = new UnregisteredMessage($requestId);
227
228
        $futureResult->resolve($result);
229
    }
230
231
    /**
232
     * Call.
@@ 256-266 (lines=11) @@
253
     * @param string    $procedureName
254
     * @param \stdClass $result
255
     */
256
    public function respondToCall($procedureName, $result)
257
    {
258
        if (!isset($this->calls[$procedureName])) {
259
            throw new \RuntimeException("No call to topic '$procedureName' initiated.");
260
        }
261
262
        /* @var $futureResult Deferred */
263
        $futureResult = $this->calls[$procedureName];
264
265
        $futureResult->resolve($result);
266
    }
267
268
    /**
269
     * @param int $sessionId