d2c512d94b
Originally observed that "successful" was misspelled "succesfull" on the build view page. While correcting that, a number of other spelling errors were also corrected.
38 lines
852 B
PHP
38 lines
852 B
PHP
<?php
|
|
/**
|
|
* PHPCI - Continuous Integration for PHP
|
|
*
|
|
* @copyright Copyright 2014, Block 8 Limited.
|
|
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
|
* @link https://www.phptesting.org/
|
|
*/
|
|
|
|
namespace PHPCI\Helper;
|
|
|
|
use b8\Config;
|
|
|
|
/**
|
|
* Login Is Disabled Helper - Checks if login is disabled in the view
|
|
* @author Stephen Ball <phpci@stephen.rebelinblue.com>
|
|
* @package PHPCI
|
|
* @subpackage Web
|
|
*/
|
|
class LoginIsDisabled
|
|
{
|
|
/**
|
|
* Checks if
|
|
* @param $method
|
|
* @param array $params
|
|
* @return mixed|null
|
|
*/
|
|
public function __call($method, $params = array())
|
|
{
|
|
unset($method, $params);
|
|
|
|
$config = Config::getInstance();
|
|
$state = (bool) $config->get('phpci.authentication_settings.state', false);
|
|
|
|
return (false !== $state);
|
|
}
|
|
}
|