Code Duplication    Length = 11-11 lines in 2 locations

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

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