Fix codestyle in build and tests (#20586)

This commit is contained in:
Maksim Spirkov
2025-10-10 23:04:09 +03:00
committed by GitHub
parent 8005113753
commit 909396074e
361 changed files with 1422 additions and 790 deletions

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
@@ -62,12 +63,12 @@ class ArrayCacheTest extends CacheTestCase
$firstCacheKey = $cache->buildKey([
"First example of invalid UTF-8 sequence: \xF5",
"Valid UTF-8 string",
'Valid UTF-8 string',
]);
$secondCacheKey = $cache->buildKey([
"Second example of invalid UTF-8 sequence: \xF6",
"Valid UTF-8 string",
'Valid UTF-8 string',
]);
$this->assertNotEquals($firstCacheKey, $secondCacheKey);

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
@@ -48,7 +49,6 @@ abstract class CacheTestCase extends TestCase
*/
public static $microtime;
/**
* @return CacheInterface
*/
@@ -288,11 +288,15 @@ abstract class CacheTestCase extends TestCase
$dependency = new TagDependency(['tags' => 'test']);
$expected = 'SilverFire';
$loginClosure = function ($cache) use (&$login) { return 'SilverFire'; };
$loginClosure = function ($cache) use (&$login) {
return 'SilverFire';
};
$this->assertEquals($expected, $cache->getOrSet('some-login', $loginClosure, null, $dependency));
// Call again with another login to make sure that value is cached
$loginClosure = function ($cache) use (&$login) { return 'SamDark'; };
$loginClosure = function ($cache) use (&$login) {
return 'SamDark';
};
$this->assertEquals($expected, $cache->getOrSet('some-login', $loginClosure, null, $dependency));
$dependency->invalidate($cache, 'test');

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
@@ -19,7 +20,6 @@ class DbQueryDependencyTest extends DatabaseTestCase
*/
protected $driverName = 'sqlite';
/**
* {@inheritdoc}
*/

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
@@ -37,7 +38,6 @@ class MssqlCacheTest extends CacheTestCase
'expire' => 'INT',
'data' => 'VARBINARY(MAX)',
])->execute();
}
/**

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC

View File

@@ -1,4 +1,5 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC