adding a couple whitespace corrections (trailing tabs, newlines, ..)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7654 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-09-24 11:52:29 +00:00
parent 3459fef98f
commit cc425a5e0a
7 changed files with 6 additions and 11 deletions

View file

@ -268,6 +268,7 @@ class Cache extends Object {
if ($duration < 1) {
return false;
}
$success = $_this->_Engine[$engine]->write($settings['prefix'] . $key, $value, $duration);
$settings = $_this->set();
return $success;

View file

@ -1135,7 +1135,7 @@ class App extends Object {
* @access private
*/
function __destruct() {
$_this = & App::getInstance();
$_this =& App::getInstance();
if ($_this->__cache) {
$core = Configure::corePaths('cake');

View file

@ -168,12 +168,12 @@ class CacheHelper extends AppHelper {
$index = array_search($element, $this->__match);
if ($index !== false) {
array_splice($oresult[0], $k, 1);
}
}
}
}
if (!empty($result['0'])) {
$count = 0;
$count = 0;
foreach ($result['0'] as $block) {
if (isset($oresult['0'][$count])) {
$this->__replace[] = $block;

View file

@ -86,9 +86,7 @@ class CacheTest extends CakeTestCase {
* @return void
*/
function testWritingWithConfig() {
Cache::config('sessions');
Cache::write('test_somthing', 'this is the test data', 'tests');
$expected = array(

View file

@ -98,11 +98,8 @@ class FileEngineTest extends CakeTestCase {
$data = 'this is a test of the emergency broadcasting system';
$result = Cache::write('test', $data, 1);
$this->assertTrue($result);
$this->assertTrue(file_exists(CACHE . 'cake_test'));
$result = Cache::read('test');
$expecting = $data;
$this->assertEqual($result, $expecting);

View file

@ -78,7 +78,6 @@ class TestManager {
$manager =& new TestManager();
$testCases =& $manager->_getTestFileList($manager->_getTestsPath());
if ($manager->appTest) {
$test =& new GroupTest('All App Tests');
} else if ($manager->pluginTest) {

View file

@ -36,10 +36,10 @@ class TestsAppsPostsController extends AppController {
'Post' => array(
'title' => 'Test article',
'body' => 'Body of article.'
)
)
);
$this->Post->save($data);
$this->set('posts', $this->Post->find('all'));
$this->render('index');
}