Skip to content

Commit

Permalink
PHPCS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 25, 2017
1 parent b368474 commit 499357c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/Collection/CollectionTrait.php
Expand Up @@ -731,6 +731,7 @@ public function unwrap()
public function _unwrap()
{
deprecationWarning('CollectionTrait::_unwrap() is deprecated. Use CollectionTrait::unwrap() instead.');

return $this->unwrap();
}

Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Console/ConsoleOptionParserTest.php
Expand Up @@ -34,7 +34,7 @@ class ConsoleOptionParserTest extends TestCase
*/
public function testDescriptionDeprecated()
{
$this->deprecated(function() {
$this->deprecated(function () {
$parser = new ConsoleOptionParser('test', false);
$result = $parser->description('A test');

Expand Down Expand Up @@ -68,7 +68,7 @@ public function testDescription()
*/
public function testEplilogDeprecated()
{
$this->deprecated(function() {
$this->deprecated(function () {
$parser = new ConsoleOptionParser('test', false);
$result = $parser->epilog('A test');

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Console/ConsoleOutputTest.php
Expand Up @@ -229,7 +229,7 @@ public function testFormattingMultipleSameTags()
*/
public function testOutputAsPlain()
{
$this->deprecated(function() {
$this->deprecated(function () {
$this->output->outputAs(ConsoleOutput::PLAIN);
$this->assertSame(ConsoleOutput::PLAIN, $this->output->outputAs());
$this->output->expects($this->once())->method('_write')
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Console/ShellTest.php
Expand Up @@ -168,7 +168,7 @@ public function testConstruct()
*/
public function testIo()
{
$this->deprecated(function() {
$this->deprecated(function () {
$this->assertInstanceOf(ConsoleIo::class, $this->Shell->io());

$io = $this->getMockBuilder(ConsoleIo::class)
Expand Down Expand Up @@ -470,7 +470,7 @@ public function testError()
->method('err')
->with('Searched all...');

$this->deprecated(function() {
$this->deprecated(function () {
$this->Shell->error('Foo Not Found', 'Searched all...');
$this->assertSame($this->Shell->stopped, 1);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Error/DebuggerTest.php
Expand Up @@ -146,7 +146,7 @@ public function testExcerpt()
*/
public function testOutputAs()
{
$this->deprecated(function() {
$this->deprecated(function () {
Debugger::outputAs('html');
$this->assertEquals('html', Debugger::outputAs());
});
Expand All @@ -173,7 +173,7 @@ public function testSetOutputFormat()
*/
public function testOutputAsException()
{
$this->deprecated(function() {
$this->deprecated(function () {
Debugger::outputAs('Invalid junk');
});
}
Expand Down

0 comments on commit 499357c

Please sign in to comment.