From bed9ba22cc97716d20520f9b14720a70df9e98c2 Mon Sep 17 00:00:00 2001 From: planardothum Date: Thu, 15 Nov 2012 20:15:49 -0500 Subject: [PATCH] Fix spaces around operators. --- lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php | 12 +++++------- lib/Cake/View/Helper/HtmlHelper.php | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php index 7170d01ae9f..6a9919f6c19 100644 --- a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php @@ -1857,12 +1857,11 @@ public function testCrumbListFirstLink() { * @return void */ public function testCrumbListBootstrapStyle() { - $this->Html->addCrumb('Home', '/', array('class'=>'home')); $this->Html->addCrumb('Library', '/lib'); $this->Html->addCrumb('Data'); $result = $this->Html->getCrumbList( - array('class' => 'breadcrumb', 'separator'=>'/', 'firstClass'=>false, 'lastClass'=>'active') + array('class' => 'breadcrumb', 'separator' => '/', 'firstClass' => false, 'lastClass' => 'active') ); $this->assertTags( $result, @@ -1870,13 +1869,13 @@ public function testCrumbListBootstrapStyle() { array('ul' => array('class' => 'breadcrumb')), ' array('href' => '/')), 'Home', '/a', - array('span'=>array('class'=>'divider')),'preg:/\//','/span', + array('span' =>array('class' => 'divider')), 'preg:/\//', '/span', '/li', ' array('href' => '/lib')), 'Library', '/a', - array('span'=>array('class'=>'divider')),'preg:/\//','/span', + array('span' => array('class' => 'divider')), 'preg:/\//', '/span', '/li', - array('li' => array('class' => 'active')),'Data','/li', + array('li' => array('class' => 'active')), 'Data', '/li', '/ul' ), true ); @@ -1888,13 +1887,12 @@ public function testCrumbListBootstrapStyle() { * @return void */ public function testCrumbListZurbStyle() { - $this->Html->addCrumb('Home', '#'); $this->Html->addCrumb('Features', '#'); $this->Html->addCrumb('Gene Splicing', '#'); $this->Html->addCrumb('Home', '#'); $result = $this->Html->getCrumbList( - array( 'class'=>'breadcrumbs', 'firstClass'=>false, 'lastClass'=>'current') + array( 'class' => 'breadcrumbs', 'firstClass' => false, 'lastClass' => 'current') ); $this->assertTags( $result, diff --git a/lib/Cake/View/Helper/HtmlHelper.php b/lib/Cake/View/Helper/HtmlHelper.php index 583368fd823..e0789810335 100644 --- a/lib/Cake/View/Helper/HtmlHelper.php +++ b/lib/Cake/View/Helper/HtmlHelper.php @@ -694,7 +694,7 @@ public function getCrumbs($separator = '»', $startText = false) { * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#creating-breadcrumb-trails-with-htmlhelper */ public function getCrumbList($options = array(), $startText = false) { - $defaults = array('firstClass'=>'first', 'lastClass'=>'last', 'separator' => ''); + $defaults = array('firstClass' => 'first', 'lastClass' => 'last', 'separator' => ''); $options = array_merge($defaults, (array)$options); $firstClass = $options['firstClass']; $lastClass = $options['lastClass'];