From 60d1039a86cae50807eaa2c5008fee1d6eb548e8 Mon Sep 17 00:00:00 2001 From: Holger Veltrup Date: Mon, 8 Jul 2024 10:18:01 +0200 Subject: [PATCH] chore: update phive tools --- .phive/phars.xml | 10 +++++----- test/Composer/RuntimeFileTest.php | 15 ++++++++------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.phive/phars.xml b/.phive/phars.xml index 7a060a0..6ca4cd9 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,8 +1,8 @@ - - - - - + + + + + diff --git a/test/Composer/RuntimeFileTest.php b/test/Composer/RuntimeFileTest.php index 3235b45..83800cc 100644 --- a/test/Composer/RuntimeFileTest.php +++ b/test/Composer/RuntimeFileTest.php @@ -39,12 +39,13 @@ public function setUp(): void $this->runtimeFile = $this->testDir . '/vendor/atoolo_runtime.php'; $dir = dirname($this->runtimeFile); - if (is_dir($dir) === false) { - if (mkdir($dir, 0777, true) === false) { - throw new RuntimeException( - 'Failed to create directory: ' . $dir, - ); - } + if ( + (is_dir($dir) === false) + && mkdir($dir, 0777, true) === false + ) { + throw new RuntimeException( + 'Failed to create directory: ' . $dir, + ); } if (is_file($this->runtimeFile)) { @@ -85,7 +86,7 @@ public function testCreateRuntimeFile(): void { $projectDir = $this->testDir . '/testCreateRuntimeFile'; - mkdir($projectDir . '/vendor', 0777, true); + @mkdir($projectDir . '/vendor', 0777, true); $runtimeFileTemplate = $this->resourceDir . '/atoolo_runtime.template';