N°8796 - Add PHP code style validation in iTop and extensions - format whole code base

This commit is contained in:
odain
2025-11-07 15:39:53 +01:00
parent 12f23113f5
commit 890a2568c8
2110 changed files with 53099 additions and 63885 deletions

View File

@@ -13,14 +13,15 @@ namespace Combodo\iTop\Test\UnitTest;
*/
class runClassInSeparateProcessTest extends ItopDataTestCase
{
static public function setUpBeforeClass(): void
public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass(); // TODO: Change the autogenerated stub
file_put_contents(
dirname(__FILE__).'/pid.txt',
getmypid().';'.static::class.';'.__METHOD__."\n",
FILE_APPEND);
FILE_APPEND
);
}
protected function LogPid()
@@ -28,16 +29,17 @@ class runClassInSeparateProcessTest extends ItopDataTestCase
file_put_contents(
dirname(__FILE__).'/pid.txt',
getmypid().';'.static::class.';'.$this->getName()."\n",
FILE_APPEND);
FILE_APPEND
);
}
function testA()
public function testA()
{
$this->LogPid();
static::assertTrue(true);
}
function testB()
public function testB()
{
$this->LogPid();
static::assertTrue(true);
@@ -46,13 +48,13 @@ class runClassInSeparateProcessTest extends ItopDataTestCase
/**
* @dataProvider CProvider
*/
function testC($i)
public function testC($i)
{
$this->LogPid();
static::assertTrue(true);
}
function CProvider()
public function CProvider()
{
return [
[1],