From 2495b3cd4c669d18a1723bda26081c8a4399575b Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 28 Nov 2010 21:11:18 -0500 Subject: [PATCH] Trimming whitespace and adding a file header. --- cake/libs/config/ini_file.php | 12 +++++------ .../tests/cases/libs/config/ini_file.test.php | 21 +++++++++++++++++-- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/cake/libs/config/ini_file.php b/cake/libs/config/ini_file.php index 4b150a11918..722dbcb0808 100644 --- a/cake/libs/config/ini_file.php +++ b/cake/libs/config/ini_file.php @@ -19,7 +19,7 @@ */ /** - * Ini file configuration parser. Since IniFile uses parse_ini_file underneath, + * Ini file configuration parser. Since IniFile uses parse_ini_file underneath, * you should be aware that this class shares the same behavior, especially with * regards to boolean and null values. * @@ -36,7 +36,7 @@ class IniFile implements ArrayAccess { protected $_values = array(); /** - * Build and construct a new ini file parser, the parser will be a representation of the ini + * Build and construct a new ini file parser, the parser will be a representation of the ini * file as an object. * * @param string $filename Full path to the file to parse. @@ -63,7 +63,7 @@ public function asArray() { /** * Part of ArrayAccess implementation. * - * @param string $name + * @param string $name */ public function offsetExists($name) { return isset($this->_values[$name]); @@ -72,7 +72,7 @@ public function offsetExists($name) { /** * Part of ArrayAccess implementation. * - * @param string $name + * @param string $name */ public function offsetGet($name) { if (!isset($this->_values[$name])) { @@ -84,7 +84,7 @@ public function offsetGet($name) { /** * Part of ArrayAccess implementation. * - * @param string $name + * @param string $name */ public function offsetSet($name, $value) { throw new LogicException('You cannot modify an IniFile parse result.'); @@ -93,7 +93,7 @@ public function offsetSet($name, $value) { /** * Part of ArrayAccess implementation. * - * @param string $name + * @param string $name */ public function offsetUnset($name) { unset($this->_values[$name]); diff --git a/cake/tests/cases/libs/config/ini_file.test.php b/cake/tests/cases/libs/config/ini_file.test.php index 73ad715c0bc..566c1113b97 100644 --- a/cake/tests/cases/libs/config/ini_file.test.php +++ b/cake/tests/cases/libs/config/ini_file.test.php @@ -1,5 +1,22 @@ + * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) + * + * Licensed under The MIT License + * Redistributions of files must retain the above copyright notice + * + * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) + * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @package cake + * @subpackage cake.tests.cases + * @since CakePHP(tm) v 2.0 + * @license MIT License (http://www.opensource.org/licenses/mit-license.php) + */ App::import('Core', 'config/IniFile'); class IniFileTest extends CakeTestCase { @@ -54,7 +71,7 @@ function testReadingOnlyOneSection() { function testAsArray() { $config = new IniFile($this->file); $content = $config->asArray(); - + $this->assertTrue(isset($content['admin']['groups'])); $this->assertTrue(isset($content['paul']['groups'])); }