Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 183-193 (lines=11) @@
180
     *
181
     * @throws UnknownProcedureException if the procedure is unknown
182
     */
183
    public function confirmRegistration($procedureName, $requestId = 1, $registrationId = 1)
184
    {
185
        if (!isset($this->registrations[$procedureName])) {
186
            throw new UnknownProcedureException($procedureName);
187
        }
188
189
        $futureResult = $this->registrations[$procedureName];
190
        $result = new RegisteredMessage($requestId, $registrationId);
191
192
        $futureResult->resolve($result);
193
    }
194
195
    /**
196
     * Triggers a call to a registered procedure and returns its result.
@@ 240-250 (lines=11) @@
237
     *
238
     * @throws UnknownProcedureException
239
     */
240
    public function confirmUnregistration($procedureName, $requestId = 1)
241
    {
242
        if (!isset($this->unregistrations[$procedureName])) {
243
            throw new UnknownProcedureException($procedureName);
244
        }
245
246
        $futureResult = $this->unregistrations[$procedureName];
247
        $result = new UnregisteredMessage($requestId);
248
249
        $futureResult->resolve($result);
250
    }
251
252
    /**
253
     * Call.