Skip to content

Commit

Permalink
Is this better ?
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 30, 2024
1 parent 8e86aa4 commit 52579f1
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions scripts/BuildRequirementsCheckMatrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,15 @@ public function getBuilds()
*/
private function getValidBuilds()
{
$extensions = [
'default' => '',
'minimal' => 'none, tokenizer, xmlwriter, SimpleXML',
];
$extensions = ['minimal' => 'none, tokenizer, xmlwriter, SimpleXML'];

$builds = [];
foreach ($this->os as $os) {
foreach ($this->validPhp as $php) {
foreach ($this->cmd as $cmd) {
foreach ($this->validPhp as $php) {
foreach ($extensions as $name => $exts) {
foreach ($extensions as $name => $exts) {
foreach ($this->os as $os) {
$builds[] = [
'name' => "exts: $name, expect: success",
'name' => ":heavy_check_mark: exts: $name",
'os' => $os,
'cmd' => $cmd,
'php' => $php,
Expand All @@ -124,12 +121,12 @@ private function getInvalidPHPBuilds()
$extensions = ['default' => ''];

$builds = [];
foreach ($this->os as $os) {
foreach ($this->invalidPhp as $php) {
foreach ($this->cmd as $cmd) {
foreach ($this->invalidPhp as $php) {
foreach ($extensions as $exts) {
foreach ($extensions as $exts) {
foreach ($this->os as $os) {
$builds[] = [
'name' => 'fail on PHP too low',
'name' => ':x: PHP too low',
'os' => $os,
'cmd' => $cmd,
'php' => $php,
Expand Down Expand Up @@ -159,12 +156,12 @@ private function getMissingExtensionsBuilds()
];

$builds = [];
foreach ($this->os as $os) {
foreach ($this->validPhp as $php) {
foreach ($this->cmd as $cmd) {
foreach ($this->validPhp as $php) {
foreach ($extensions as $name => $exts) {
foreach ($extensions as $name => $exts) {
foreach ($this->os as $os) {
$builds[] = [
'name' => "fail on $name",
'name' => ":x: $name",
'os' => $os,
'cmd' => $cmd,
'php' => $php,
Expand Down

0 comments on commit 52579f1

Please sign in to comment.