Skip to content

Commit

Permalink
Implemented AV-603: Issue #48
Browse files Browse the repository at this point in the history
- Remove concatenation in require_once statements
  • Loading branch information
Rostislav Redko committed Aug 20, 2015
1 parent 4b42928 commit 5c6ec37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/code/community/OnePica/AvaTax/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public function getDocumentationUrl()
*/
public function loadClass($className)
{
require_once $this->getLibPath() . DS . 'classes' . DS . $className . '.class.php';
$classFile = $this->getLibPath() . DS . 'classes' . DS . $className . '.class.php';
require_once $classFile;
return $this;
}

Expand All @@ -69,7 +70,8 @@ public function loadClass($className)
*/
public function loadFunctions()
{
require_once $this->getLibPath() . DS . 'functions.php';
$functionsFile = $this->getLibPath() . DS . 'functions.php';
require_once $functionsFile;
return $this;
}

Expand Down

0 comments on commit 5c6ec37

Please sign in to comment.