for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LightSAML-Core package.
*
* (c) Milos Tomic <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace LightSaml\Context\Profile;
use LightSaml\Context\AbstractContext;
use LightSaml\Error\LightSamlContextException;
abstract class AbstractProfileContext extends AbstractContext
{
/**
* @return ProfileContext
public function getProfileContext()
$result = $this;
while ($result && false == $result instanceof ProfileContext) {
===
When comparing two booleans, it is generally considered safer to use the strict comparison operator.
$result = $result->getParent();
}
if ($result) {
$result
null
false
return $result;
throw new LightSamlContextException($this, 'Missing ProfileContext');
When comparing two booleans, it is generally considered safer to use the strict comparison operator.