Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'cs/#7079-develop-cs-fixes' into develop
Browse files Browse the repository at this point in the history
Close #7079
  • Loading branch information
Ocramius committed Dec 28, 2014
2 parents 16ff002 + d716333 commit 735e0fc
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions .php_cs
@@ -1,5 +1,6 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notPath('Zend/Db/Sql/Select.php')
->notPath('Zend/View/Stream.php')
->notPath('ZendTest/Code/Generator/TestAsset')
->notPath('ZendTest/Code/Reflection/FunctionReflectionTest.php')
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/View/Resolver/PrefixPathStackResolver.php
Expand Up @@ -9,7 +9,6 @@

namespace Zend\View\Resolver;

use Zend\View\Exception;
use Zend\View\Renderer\RendererInterface as Renderer;

final class PrefixPathStackResolver implements ResolverInterface
Expand Down Expand Up @@ -54,6 +53,6 @@ public function resolve($name, Renderer $renderer = null)
}
}

return null;
return;
}
}
6 changes: 3 additions & 3 deletions tests/ZendTest/Http/Header/SetCookieTest.php
Expand Up @@ -362,15 +362,15 @@ public function testRfcCompatibility()
$cookie = new SetCookie($name, $value);

// default
$this->assertEquals( $cookie->toString(), sprintf($formatUnquoted, $cookie->getFieldName(), $name, $value));
$this->assertEquals($cookie->toString(), sprintf($formatUnquoted, $cookie->getFieldName(), $name, $value));

// rfc with quote
$cookie->setQuoteFieldValue(true);
$this->assertEquals( $cookie->toString(), sprintf($formatQuoted, $cookie->getFieldName(), $name, $value));
$this->assertEquals($cookie->toString(), sprintf($formatQuoted, $cookie->getFieldName(), $name, $value));

// rfc without quote
$cookie->setQuoteFieldValue(false);
$this->assertEquals( $cookie->toString(), sprintf($formatUnquoted, $cookie->getFieldName(), $name, $value));
$this->assertEquals($cookie->toString(), sprintf($formatUnquoted, $cookie->getFieldName(), $name, $value));
}

public function testSetJsonValue()
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Mail/Storage/ImapTest.php
Expand Up @@ -264,7 +264,7 @@ public function testFetchMessageBody()
$mail = new Storage\Imap($this->_params);

$content = $mail->getMessage(3)->getContent();
list($content,) = explode("\n", $content, 2);
list($content) = explode("\n", $content, 2);
$this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Mail/Storage/MaildirMessageOldTest.php
Expand Up @@ -128,7 +128,7 @@ public function testFetchMessageBody()
$mail = new MaildirOldMessage(array('dirname' => $this->_maildir));

$content = $mail->getMessage(3)->getContent();
list($content,) = explode("\n", $content, 2);
list($content) = explode("\n", $content, 2);
$this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Mail/Storage/MaildirTest.php
Expand Up @@ -192,7 +192,7 @@ public function testFetchMessageBody()
$mail = new Storage\Maildir(array('dirname' => $this->_maildir));

$content = $mail->getMessage(3)->getContent();
list($content,) = explode("\n", $content, 2);
list($content) = explode("\n", $content, 2);
$this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Mail/Storage/MboxMessageOldTest.php
Expand Up @@ -97,7 +97,7 @@ public function testFetchMessageBody()
$mail = new MboxOldMessage(array('filename' => $this->_mboxFile));

$content = $mail->getMessage(3)->getContent();
list($content,) = explode("\n", $content, 2);
list($content) = explode("\n", $content, 2);
$this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Mail/Storage/MboxTest.php
Expand Up @@ -168,7 +168,7 @@ public function testFetchMessageBody()
$mail = new Storage\Mbox(array('filename' => $this->_mboxFile));

$content = $mail->getMessage(3)->getContent();
list($content,) = explode("\n", $content, 2);
list($content) = explode("\n", $content, 2);
$this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Mail/Storage/Pop3Test.php
Expand Up @@ -230,7 +230,7 @@ public function testFetchMessageBody()
$mail = new Storage\Pop3($this->_params);

$content = $mail->getMessage(3)->getContent();
list($content,) = explode("\n", $content, 2);
list($content) = explode("\n", $content, 2);
$this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
}

Expand Down

0 comments on commit 735e0fc

Please sign in to comment.