mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix PHPCS.
This commit is contained in:
parent
71b7d6211b
commit
e057b5572c
2 changed files with 7 additions and 4 deletions
|
@ -39,6 +39,11 @@ class AclNode extends Model {
|
|||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param bool|int|string|array $id Set this ID for this model on startup,
|
||||
* can also be an array of options, see above.
|
||||
* @param string $table Name of database table to use.
|
||||
* @param string $ds DataSource connection name.
|
||||
*/
|
||||
public function __construct($id = false, $table = null, $ds = null) {
|
||||
$config = Configure::read('Acl.database');
|
||||
|
|
|
@ -187,8 +187,7 @@ class ClassRegistryTest extends CakeTestCase {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testAddModelWithAlias()
|
||||
{
|
||||
public function testAddModelWithAlias() {
|
||||
$tag = ClassRegistry::init(array('class' => 'RegisterArticleTag', 'alias' => 'NewTag'));
|
||||
$this->assertInstanceOf('RegisterArticleTag', $tag);
|
||||
$this->assertSame('NewTag', $tag->alias);
|
||||
|
@ -205,8 +204,7 @@ class ClassRegistryTest extends CakeTestCase {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testAddModelWithAliasAco()
|
||||
{
|
||||
public function testAddModelWithAliasAco() {
|
||||
$aco = ClassRegistry::init(array('class' => 'Aco', 'alias' => 'CustomAco'));
|
||||
$this->assertInstanceOf('Aco', $aco);
|
||||
$this->assertSame('Aco', $aco->name);
|
||||
|
|
Loading…
Reference in a new issue