Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
waynedgrant committed Aug 31, 2015
1 parent 04581f6 commit cf1a7db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions AutoLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ class AutoLoader
{
static private $classNames = array();

/**
* Store the filename (sans extension) & full path of all ".php" files found
*/
public static function registerDirectory($dirName)
{
$di = new DirectoryIterator($dirName);
Expand All @@ -19,12 +16,10 @@ public static function registerDirectory($dirName)

if ($file->isDir() && !$file->isLink() && !$file->isDot())
{
// recurse into directories other than a few special ones
self::registerDirectory($file->getPathname());
}
elseif (substr($file->getFilename(), -4) === '.php')
{
// save the class name / path of a .php file found
$className = substr($file->getFilename(), 0, -4);
AutoLoader::registerClass($className, $file->getPathname());
}
Expand Down

0 comments on commit cf1a7db

Please sign in to comment.