Permalink
Browse files

CS fixes

  • Loading branch information...
1 parent ef637c8 commit 521bbe6556aa8db81e54ac500d9cd75978adbf67 @Seldaek Seldaek committed Aug 18, 2012
@@ -343,7 +343,7 @@ protected function getAutoloadRealFile($usePSR0, $useClassMap, $useIncludePath,
// - https://bugs.php.net/bug.php?id=59298
if ($filesCode) {
- $filesCode = "\n".$filesCode;
+ $filesCode = "\n\n".rtrim($filesCode);
}
$file = <<<HEADER
@@ -406,8 +406,7 @@ public static function getLoader()
}
$file .= <<<METHOD_FOOTER
- \$loader->register();
-$filesCode
+ \$loader->register();{$filesCode}
return \$loader;
}
@@ -1,7 +1,7 @@
<?php
namespace {
- trait TFoo {
-
+ trait TFoo
+ {
}
class CFoo
@@ -11,16 +11,16 @@ class CFoo
}
namespace Foo {
- trait TBar {
-
+ trait TBar
+ {
}
- interface IBar {
-
+ interface IBar
+ {
}
- trait TFooBar {
-
+ trait TFooBar
+ {
}
class CBar implements IBar
@@ -143,4 +143,4 @@ private function cleanOutput($output)
return $processed;
}
-}
+}
@@ -13,7 +13,6 @@
namespace Composer\Test\Json;
use Seld\JsonLint\ParsingException;
-use Composer\Json\JsonValidationException;
use Composer\Json\JsonFile;
class JsonFileTest extends \PHPUnit_Framework_TestCase
@@ -17,7 +17,6 @@
use Composer\Repository;
use Composer\Repository\RepositoryManager;
use Composer\Installer;
-use Composer\Downloader;
use Composer\IO\IOInterface;
class FactoryMock extends Factory

0 comments on commit 521bbe6

Please sign in to comment.