Permalink
Browse files

fixed CS (mainly method signatures)

  • Loading branch information...
1 parent 6329e84 commit 475b92bd71c263566ed5477a562bfede826a022a @fabpot fabpot committed Jul 9, 2012
Showing with 6 additions and 6 deletions.
  1. +5 −5 ClassCollectionLoader.php
  2. +1 −1 DebugUniversalClassLoader.php
@@ -18,7 +18,7 @@
*/
class ClassCollectionLoader
{
- static private $loaded;
+ private static $loaded;
/**
* Loads a list of classes and caches them in one big file.
@@ -32,7 +32,7 @@ class ClassCollectionLoader
*
* @throws \InvalidArgumentException When class can't be loaded
*/
- static public function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php')
+ public static function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php')
{
// each $name can only be loaded once per PHP process
if (isset(self::$loaded[$name])) {
@@ -123,7 +123,7 @@ static public function load($classes, $cacheDir, $name, $autoReload, $adaptive =
*
* @return string Namespaces with brackets
*/
- static public function fixNamespaceDeclarations($source)
+ public static function fixNamespaceDeclarations($source)
{
if (!function_exists('token_get_all')) {
return $source;
@@ -177,7 +177,7 @@ static public function fixNamespaceDeclarations($source)
*
* @throws \RuntimeException when a cache file cannot be written
*/
- static private function writeCacheFile($file, $content)
+ private static function writeCacheFile($file, $content)
{
$tmpFile = tempnam(dirname($file), basename($file));
if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) {
@@ -199,7 +199,7 @@ static private function writeCacheFile($file, $content)
*
* @return string The PHP string with the comments removed
*/
- static private function stripComments($source)
+ private static function stripComments($source)
{
if (!function_exists('token_get_all')) {
return $source;
@@ -21,7 +21,7 @@ class DebugUniversalClassLoader extends UniversalClassLoader
/**
* Replaces all regular UniversalClassLoader instances by a DebugUniversalClassLoader ones.
*/
- static public function enable()
+ public static function enable()
{
if (!is_array($functions = spl_autoload_functions())) {
return;

0 comments on commit 475b92b

Please sign in to comment.