Payment introduced, minor rewrites
[shipsimu.git] / inc / classes.php
index 1c52372f65cc9b5d1bbf614ad9df9f2dec6d11fa..5a541c9d0605c1130f9096886c51ad3b832bc3e9 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  *
  * This program is free software: you can redistribute it and/or modify
@@ -30,32 +30,32 @@ $lowerClasses = array(
 );
 
 // Load all classes
-foreach ($lowerClasses as $class) {
+foreach ($lowerClasses as $className) {
        // Try to load the framework classes
        try {
-               ClassLoader::getInstance()->loadClasses(sprintf("inc/classes/%s/", $class));
+               ClassLoader::getInstance()->loadClasses(sprintf("inc/classes/%s/", $className));
        } catch (PathIsNoDirectoryException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        } catch (PathIsEmptyException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        } catch (PathReadProtectedException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        } catch (DirPointerNotOpenedException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        }
 }
 
 // Clean up the global namespace
 unset($lowerClasses[3]); // Applications shall not have any middleware
-unset($class);
+unset($className);
 
 ////// Until here the framework classes are loaded //////