Skip to content

Commit

Permalink
Fix StyleCI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruby184 committed Dec 30, 2015
1 parent f7f0a91 commit cb9e841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/View/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ protected function extendSection($section, $content)
foreach ($this->parentMarksLast[$section] as $markLast) {
$marks[] = $mark + $markLast + $offset;
}

$offset += $len;
}

Expand Down Expand Up @@ -690,7 +690,7 @@ public function flushSections()

$this->parentMarks = [];

$this->parentMarksLast = [];
$this->parentMarksLast = [];
}

/**
Expand Down
12 changes: 6 additions & 6 deletions tests/View/ViewFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,23 +250,23 @@ public function testSectionExtending()
public function testSectionMultipleExtending()
{
$factory = $this->getFactory();

$factory->startSection('foo');
echo 'hello ';
$factory->appendParent();
echo ' nice to see you ';
$factory->appendParent();
echo ' again';
$factory->stopSection();

$factory->startSection('foo');
echo 'my ';
$factory->appendParent();
echo ' ';
$factory->appendParent();
echo ' ever';
$factory->stopSection();

$factory->startSection('foo');
echo 'best ';
$factory->appendParent();
Expand All @@ -279,7 +279,7 @@ public function testSectionMultipleExtending()
$factory->startSection('foo');
echo 'this is not appended';
$factory->stopSection();

$this->assertEquals('hello my best friend best friend ever nice to see you my best friend best friend ever again', $factory->yieldContent('foo'));
}

Expand Down Expand Up @@ -331,12 +331,12 @@ public function testSectionAppending()
public function testSectionAppendingCorrectlyHandlesParents()
{
$factory = $this->getFactory();

$factory->startSection('foo');
echo 'hello ';
$factory->appendParent();
$factory->appendSection();

$factory->startSection('foo');
echo ' nice to see you ';
$factory->appendParent();
Expand Down

0 comments on commit cb9e841

Please sign in to comment.