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.
@@ 258-268 (lines=11) @@
255
     * @param string    $procedureName
256
     * @param \stdClass $result
257
     */
258
    public function respondToCall($procedureName, $result)
259
    {
260
        if (!isset($this->calls[$procedureName])) {
261
            throw new \RuntimeException("No call to topic '$procedureName' initiated.");
262
        }
263
264
        /* @var $futureResult Deferred */
265
        $futureResult = $this->calls[$procedureName];
266
267
        $futureResult->resolve($result);
268
    }
269
270
271
    /**