Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 217-227 (lines=11) @@
214
     * @param string $procedureName
215
     * @param int    $requestId
216
     */
217
    public function confirmUnregistration($procedureName, $requestId = 1)
218
    {
219
        if (!isset($this->unregistrations[$procedureName])) {
220
            throw new \RuntimeException("No registration to procedure '$procedureName' initiated.");
221
        }
222
223
        $futureResult = $this->unregistrations[$procedureName];
224
        $result = new UnregisteredMessage($requestId);
225
226
        $futureResult->resolve($result);
227
    }
228
229
    /**
230
     * 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
    /**