Skip to content

Commit

Permalink
Xdmod11.0 PHP 7.4 (#110)
Browse files Browse the repository at this point in the history
* Additional PHP8 Changes

* Updating composer for PHP 7.4

* reverting whitespace changes

* Removing whitespace and deleted file

* appeasing the style gods

---------

Co-authored-by: Ryan Rathsam <[email protected]>
  • Loading branch information
ryanrath and spark0r authored Jun 12, 2024
1 parent 04a7393 commit 860a50f
Show file tree
Hide file tree
Showing 3 changed files with 1,785 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/AppKernel/Arr/IncaParser_Performance.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function parse(SimpleXmlElement $body,
InstanceData &$parsedData)
{
$this->_results = $parsedData;

// Is the data in long or short format? If the ID tag exists as a child of
// the performance tag then it is in long format, if there is an ID
// attribute in the performance then it is short format.
Expand Down Expand Up @@ -174,11 +174,11 @@ public function statistics($benchmarkName = NULL, $measurement = NULL)
}
return current($this->_benchmarkInfo);
} // if ( NULL === $benchmarkName && NULL === $measurement )

$msg = "Benchmark does not exist: '$benchmarkName'. Valid values are ('" .
implode("', '", $this->benchmarkNames()) . "')";
if ( ! array_key_exists($benchmarkName, $this->_benchmarkInfo) )
{
$msg = "Benchmark does not exist: '$benchmarkName'. Valid values are ('" .
implode("', '", $this->benchmarkNames()) . "')";

throw new AppKernelException($msg, AppKernelException::ParseError);
}

Expand Down
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"require": {
"php": "^7.4"
},
"require-dev": {
"phpunit/phpunit": "^9.0"
},
"config": {
"optimize-autoloader": true,
"apcu-autoloader": true,
"secure-http": false,
"allow-plugins": {
"composer/installers": true
}
},
"psr-4": {
"DataWarehouse\\": "classes/DataWarehouse/",
"AppKernel\\": "classes/AppKernel/"
}
}
Loading

0 comments on commit 860a50f

Please sign in to comment.