Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 171-181 (lines=11) @@
168
     *
169
     * @throws UnknownProcedureException if the procedure is unknown.
170
     */
171
    public function confirmRegistration($procedureName, $requestId = 1, $registrationId = 1)
172
    {
173
        if (!isset($this->registrations[$procedureName])) {
174
            throw new UnknownProcedureException($procedureName);
175
        }
176
177
        $futureResult = $this->registrations[$procedureName];
178
        $result = new RegisteredMessage($requestId, $registrationId);
179
180
        $futureResult->resolve($result);
181
    }
182
183
    /**
184
     * Triggers a call to a registered procedure and returns its result.
@@ 229-239 (lines=11) @@
226
     *
227
     * @throws UnknownProcedureException
228
     */
229
    public function confirmUnregistration($procedureName, $requestId = 1)
230
    {
231
        if (!isset($this->unregistrations[$procedureName])) {
232
            throw new UnknownProcedureException($procedureName);
233
        }
234
235
        $futureResult = $this->unregistrations[$procedureName];
236
        $result = new UnregisteredMessage($requestId);
237
238
        $futureResult->resolve($result);
239
    }
240
241
    /**
242
     * Call.