Permalink
Browse files

fixed CS for lambdas

  • Loading branch information...
1 parent d5d9315 commit b55a3f293e698e401a8b84b49bf4cdad6f973686 @fabpot fabpot committed Dec 28, 2013
Showing with 7 additions and 7 deletions.
  1. +1 −1 Finder.php
  2. +2 −2 Shell/Command.php
  3. +3 −3 Tests/FinderTest.php
  4. +1 −1 Tests/Iterator/MockFileListIterator.php
View
@@ -157,7 +157,7 @@ public function removeAdapters()
*/
public function getAdapters()
{
- return array_values(array_map(function(array $adapter) {
+ return array_values(array_map(function (array $adapter) {
return $adapter['adapter'];
}, $this->adapters));
}
View
@@ -272,10 +272,10 @@ public function execute()
public function join()
{
return implode(' ', array_filter(
- array_map(function($bit) {
+ array_map(function ($bit) {
return $bit instanceof Command ? $bit->join() : ($bit ?: null);
}, $this->bits),
- function($bit) { return null !== $bit; }
+ function ($bit) { return null !== $bit; }
));
}
View
@@ -583,7 +583,7 @@ public function testAdaptersOrdering()
$this->assertEquals(
array('c', 'e', 'a', 'd', 'b'),
- array_map(function(Adapter\AdapterInterface $adapter) {
+ array_map(function (Adapter\AdapterInterface $adapter) {
return $adapter->getName();
}, $finder->getAdapters())
);
@@ -609,7 +609,7 @@ public function testAdaptersChaining()
public function getAdaptersTestData()
{
return array_map(
- function ($adapter) { return array($adapter); },
+ function ($adapter) { return array($adapter); },
$this->getValidAdapters()
);
}
@@ -791,7 +791,7 @@ private function getValidAdapters()
new Adapter\GnuFindAdapter(),
new Adapter\PhpAdapter()
),
- function (Adapter\AdapterInterface $adapter) {
+ function (Adapter\AdapterInterface $adapter) {
return $adapter->isSupported();
}
);
@@ -15,7 +15,7 @@ class MockFileListIterator extends \ArrayIterator
{
public function __construct(array $filesArray = array())
{
- $files = array_map(function($file){ return new MockSplFileInfo($file); }, $filesArray);
+ $files = array_map(function ($file) { return new MockSplFileInfo($file); }, $filesArray);
parent::__construct($files);
}
}

0 comments on commit b55a3f2

Please sign in to comment.