Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ehough committed Apr 25, 2015
2 parents 11a2c6c + a213135 commit fbc661e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 51 deletions.
2 changes: 1 addition & 1 deletion build/config/common.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version.major=4
version.minor=1
version.micro=5
version.micro=6
52 changes: 24 additions & 28 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 2 additions & 22 deletions src/add-ons/core/classes/tubepress/lib/impl/array/ArrayReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
*/
class tubepress_lib_impl_array_ArrayReader implements tubepress_lib_api_array_ArrayReaderInterface
{
/**
* @var bool
*/
private $_php53orHigher;

public function __construct()
{
$this->_php53orHigher = version_compare(PHP_VERSION, '5.3.0') >= 0;
}

/**
* @api
* @since 4.1.0
Expand Down Expand Up @@ -174,19 +164,9 @@ private function _getValueFromPath(array $array, $aPath)

foreach ($pathKeys as $pathKey) {

if ($this->_php53orHigher) {

if (!isset($intermediate[$pathKey])) {

return null;
}

} else {

if (!is_array($intermediate) || !array_key_exists($pathKey, $intermediate)) {
if (!is_array($intermediate) || !array_key_exists($pathKey, $intermediate)) {

return null;
}
return null;
}

$intermediate = $intermediate[$pathKey];
Expand Down

0 comments on commit fbc661e

Please sign in to comment.