Skip to content

Commit

Permalink
Fix CS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 2, 2016
1 parent 32462c2 commit 5d0b2fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Core/Configure.php
Expand Up @@ -143,7 +143,7 @@ public static function check($var)
* possible to store `null` values in Configure.
*
* Acts as a wrapper around Configure::read() and Configure::check().
* The configure key/value pair fetched via this method is expected to exist.
* The configure key/value pair fetched via this method is expected to exist.
* In case it does not an exception will be thrown.
*
* Usage:
Expand All @@ -157,7 +157,8 @@ public static function check($var)
* @throws \RuntimeException if the requested configuration is not set.
* @link http://book.cakephp.org/3.0/en/development/configuration.html#reading-configuration-data
*/
public static function readOrFail($var) {
public static function readOrFail($var)
{
if (static::check($var) === false) {
throw new RuntimeException(sprintf('Expected configuration key "%s" not found.', $var));
}
Expand Down

0 comments on commit 5d0b2fa

Please sign in to comment.