Code Duplication    Length = 11-14 lines in 2 locations

src/LightSaml/Action/Assertion/Inbound/InResponseToValidatorAction.php 1 location

@@ 70-80 (lines=11) @@
67
     *
68
     * @return \LightSaml\State\Request\RequestState
69
     */
70
    protected function validateInResponseTo($inResponseTo, AssertionContext $context)
71
    {
72
        $requestState = $this->requestStore->get($inResponseTo);
73
        if (null == $requestState) {
74
            $message = sprintf("Unknown InResponseTo '%s'", $inResponseTo);
75
            $this->logger->emergency($message, LogHelper::getActionErrorContext($context, $this));
76
            throw new LightSamlContextException($context, $message);
77
        }
78
79
        return $requestState;
80
    }
81
}
82

src/LightSaml/Action/Profile/Inbound/Message/ResolvePartyEntityIdAction.php 1 location

@@ 115-128 (lines=14) @@
112
     *
113
     * @return \LightSaml\Model\Metadata\EntityDescriptor
114
     */
115
    protected function getPartyEntityDescriptor(
116
        ProfileContext $context,
117
        EntityDescriptorStoreInterface $entityDescriptorProvider,
118
        $entityId
119
    ) {
120
        $partyEntityDescriptor = $entityDescriptorProvider->get($entityId);
121
        if (null === $partyEntityDescriptor) {
122
            $message = sprintf("Unknown issuer '%s'", $entityId);
123
            $this->logger->emergency($message, LogHelper::getActionErrorContext($context, $this));
124
            throw new LightSamlContextException($context, $message);
125
        }
126
127
        return $partyEntityDescriptor;
128
    }
129
}
130