mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-16 03:28:56 +08:00
Fix codestyle in build and tests (#20586)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -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}
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
||||
Reference in New Issue
Block a user