Browse Source

PHPCS fixes

Mark Story 8 years ago
parent
commit
499357cb41

+ 1 - 0
src/Collection/CollectionTrait.php

@@ -731,6 +731,7 @@ trait CollectionTrait
     public function _unwrap()
     {
         deprecationWarning('CollectionTrait::_unwrap() is deprecated. Use CollectionTrait::unwrap() instead.');
+
         return $this->unwrap();
     }
 

+ 2 - 2
tests/TestCase/Console/ConsoleOptionParserTest.php

@@ -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');
 
@@ -68,7 +68,7 @@ class ConsoleOptionParserTest extends TestCase
      */
     public function testEplilogDeprecated()
     {
-        $this->deprecated(function() {
+        $this->deprecated(function () {
             $parser = new ConsoleOptionParser('test', false);
             $result = $parser->epilog('A test');
 

+ 1 - 1
tests/TestCase/Console/ConsoleOutputTest.php

@@ -229,7 +229,7 @@ class ConsoleOutputTest extends TestCase
      */
     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')

+ 2 - 2
tests/TestCase/Console/ShellTest.php

@@ -168,7 +168,7 @@ class ShellTest extends TestCase
      */
     public function testIo()
     {
-        $this->deprecated(function() {
+        $this->deprecated(function () {
             $this->assertInstanceOf(ConsoleIo::class, $this->Shell->io());
 
             $io = $this->getMockBuilder(ConsoleIo::class)
@@ -470,7 +470,7 @@ class ShellTest extends TestCase
             ->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);
         });

+ 2 - 2
tests/TestCase/Error/DebuggerTest.php

@@ -146,7 +146,7 @@ class DebuggerTest extends TestCase
      */
     public function testOutputAs()
     {
-        $this->deprecated(function() {
+        $this->deprecated(function () {
             Debugger::outputAs('html');
             $this->assertEquals('html', Debugger::outputAs());
         });
@@ -173,7 +173,7 @@ class DebuggerTest extends TestCase
      */
     public function testOutputAsException()
     {
-        $this->deprecated(function() {
+        $this->deprecated(function () {
             Debugger::outputAs('Invalid junk');
         });
     }