Skip to content

Commit

Permalink
Remove spurious carriage returns and trailing spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrk committed Aug 20, 2011
1 parent 62744fb commit db51f6e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions bin/createSingleFile.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/php
<?php
// This script can be used to automatically glue all the .php files of Predis
// into a single monolithic script file that can be used without an autoloader,
// This script can be used to automatically glue all the .php files of Predis
// into a single monolithic script file that can be used without an autoloader,
// just like the other previous versions of the library.
//
// Much of its complexity is due to the fact that we cannot simply join PHP
// files, but namespaces and classes definitions must follow a precise order
// when dealing with subclassing and inheritance.
// Much of its complexity is due to the fact that we cannot simply join PHP
// files, but namespaces and classes definitions must follow a precise order
// when dealing with subclassing and inheritance.
//
// The current implementation is pretty naïve, but it should do for now.
//
Expand Down Expand Up @@ -176,7 +176,6 @@ public static function extractName($fqn) {
}
$ns = substr($fqn, 0, $nsSepLast);
return $ns !== '' ? $ns : null;

}

public function addClass(PhpClass $class) {
Expand Down Expand Up @@ -371,7 +370,7 @@ private function extractHierarchy() {

public function guessFQN($classes) {
$useDirectives = $this->getNamespace()->getUseDirectives();
return array_map(array($useDirectives, 'getFQN'), $classes);
return array_map(array($useDirectives, 'getFQN'), $classes);
}

public function getImplementedInterfaces($all = false) {
Expand Down

0 comments on commit db51f6e

Please sign in to comment.