Permalink
Browse files

Merge branch '2.4'

* 2.4:
  fixed CS
  fixed a typo
  fixed CS for lambdas
  [Yaml] fixed some license headers
  Fixes message value for objects
  Check for hour, minute & second validity
  avoid tables to have apparently long blank line breaks and be too far appart for long nested array params
  fixed various typos
  [Filesystem] Fixed mirror for symlinks
  [Validator] Removed duplicated test for IBAN in data provider
  • Loading branch information...
2 parents ded8fd1 + ed48c70 commit da13e76b337421acdb739f5bb5af06c120212971 @fabpot fabpot committed Dec 28, 2013
Showing with 10 additions and 10 deletions.
  1. +1 −1 Finder.php
  2. +2 −2 Shell/Command.php
  3. +1 −1 Shell/Shell.php
  4. +5 −5 Tests/FinderTest.php
  5. +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
@@ -270,10 +270,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
@@ -51,7 +51,7 @@ public function getType()
public function testCommand($command)
{
if (self::TYPE_WINDOWS === $this->type) {
- // todo: find a way to test if windows command exists
+ // todo: find a way to test if Windows command exists
return false;
}
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()
);
}
@@ -723,7 +723,7 @@ public function getTestPathData()
public function testAccessDeniedException(Adapter\AdapterInterface $adapter)
{
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
- $this->markTestSkipped('chmod is not supported on windows');
+ $this->markTestSkipped('chmod is not supported on Windows');
}
$finder = $this->buildFinder($adapter);
@@ -749,7 +749,7 @@ public function testAccessDeniedException(Adapter\AdapterInterface $adapter)
public function testIgnoredAccessDeniedException(Adapter\AdapterInterface $adapter)
{
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
- $this->markTestSkipped('chmod is not supported on windows');
+ $this->markTestSkipped('chmod is not supported on Windows');
}
$finder = $this->buildFinder($adapter);
@@ -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 da13e76

Please sign in to comment.