ソースを参照

Fix PHPCS errors.

mark_story 11 年 前
コミット
eace3a3031

+ 2 - 2
src/Collection/CollectionTrait.php

@@ -514,12 +514,12 @@ trait CollectionTrait
      *
      * @return \Iterator
      */
-    protected function _unwrap() {
+    protected function _unwrap()
+    {
         $iterator = $this;
         while (get_class($iterator) === 'Cake\Collection\Collection') {
             $iterator = $iterator->getInnerIterator();
         }
         return $iterator;
     }
-
 }

+ 1 - 2
src/Collection/Iterator/SortIterator.php

@@ -14,8 +14,8 @@
  */
 namespace Cake\Collection\Iterator;
 
-use Cake\Collection\CollectionInterface;
 use Cake\Collection\Collection;
+use Cake\Collection\CollectionInterface;
 
 /**
  * An iterator that will return the passed items in order. The order is given by
@@ -76,5 +76,4 @@ class SortIterator extends Collection
         }
         parent::__construct($results);
     }
-
 }

+ 0 - 1
tests/TestCase/Collection/Iterator/SortIteratorTest.php

@@ -191,5 +191,4 @@ class SortIteratorTest extends TestCase
         ];
         $this->assertEquals($expected, $sorted->toList());
     }
-
 }