Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Apr 27, 2015
1 parent 84c6ca9 commit a296d40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Logic/LogicFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static function create($appNamespace, $uri, $api,
*/
public static function getLogicFileArray($filename, $path, $topPath) {
// Get PageLogic path for current URI.
$filename = str_replace("-", "_", $filename);
$currentPageLogicPath = implode("/", [$path, $filename]) . ".php";
$commonPageLogicPathArray = [];

Expand Down Expand Up @@ -103,9 +104,10 @@ public static function getLogicClassNameArray($appNamespace, $logicPathArray) {
$srcPath = Path::get(Path::SRC);

foreach ($logicPathArray as $logicPath) {
// Begin creating a string contining the fully-qualified class name.
// Begin creating a string containing the fully-qualified class name.
$namespaceStr = substr($logicPath, strlen($srcPath) + 1);
$namespaceStr = strtok($namespaceStr, ".");
$namespaceStr = str_replace("-", "_", $namespaceStr);
// Explode the string into an array ..
$namespaceArray = explode("/", $namespaceStr);
// .. and add the App's namespace to the beginning of the array.
Expand All @@ -118,4 +120,4 @@ public static function getLogicClassNameArray($appNamespace, $logicPathArray) {
return $classNameArray;
}

}#
}#

0 comments on commit a296d40

Please sign in to comment.