Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix spaces around operators.

  • Loading branch information...
commit bed9ba22cc97716d20520f9b14720a70df9e98c2 1 parent a0f323e
@planardothum planardothum authored
View
12 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'=>'<span class="divider">/</span>', 'firstClass'=>false, 'lastClass'=>'active')
+ array('class' => 'breadcrumb', 'separator' => '<span class="divider">/</span>', 'firstClass' => false, 'lastClass' => 'active')
);
$this->assertTags(
$result,
@@ -1870,13 +1869,13 @@ public function testCrumbListBootstrapStyle() {
array('ul' => array('class' => 'breadcrumb')),
'<li',
array('a' => array('href' => '/')), 'Home', '/a',
- array('span'=>array('class'=>'divider')),'preg:/\//','/span',
+ array('span' =>array('class' => 'divider')), 'preg:/\//', '/span',
'/li',
'<li',
array('a' => 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,
View
2  lib/Cake/View/Helper/HtmlHelper.php
@@ -694,7 +694,7 @@ public function getCrumbs($separator = '&raquo;', $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'];
Please sign in to comment.
Something went wrong with that request. Please try again.