replace tabs with spaces
This commit is contained in:
parent
b10251302e
commit
2a7ed82695
53 changed files with 6198 additions and 6198 deletions
|
|
@ -1,49 +1,49 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\core;
|
||||
|
||||
|
||||
/**
|
||||
* Configuration.
|
||||
*
|
||||
* This class does not hold any configuration value but helps to
|
||||
* determine values that can be hold by AppConfig or CoreConfig.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
final class Config
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get a default value.
|
||||
*
|
||||
* @param string $index Index of value to get
|
||||
*/
|
||||
public static function getDefault($index)
|
||||
{
|
||||
if(array_key_exists($index, \nre\configs\AppConfig::$defaults)) {
|
||||
return \nre\configs\AppConfig::$defaults[$index];
|
||||
}
|
||||
if(array_key_exists($index, \nre\configs\CoreConfig::$defaults)) {
|
||||
return \nre\configs\CoreConfig::$defaults[$index];
|
||||
}
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
namespace nre\core;
|
||||
|
||||
|
||||
/**
|
||||
* Configuration.
|
||||
*
|
||||
* This class does not hold any configuration value but helps to
|
||||
* determine values that can be hold by AppConfig or CoreConfig.
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
*/
|
||||
final class Config
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get a default value.
|
||||
*
|
||||
* @param string $index Index of value to get
|
||||
*/
|
||||
public static function getDefault($index)
|
||||
{
|
||||
if(array_key_exists($index, \nre\configs\AppConfig::$defaults)) {
|
||||
return \nre\configs\AppConfig::$defaults[$index];
|
||||
}
|
||||
if(array_key_exists($index, \nre\configs\CoreConfig::$defaults)) {
|
||||
return \nre\configs\CoreConfig::$defaults[$index];
|
||||
}
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue