Fix PHPCS.

This commit is contained in:
mark_story 2016-11-21 20:51:12 -05:00
parent 71b7d6211b
commit e057b5572c
2 changed files with 7 additions and 4 deletions

View file

@ -39,6 +39,11 @@ class AclNode extends Model {
/** /**
* Constructor * 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) { public function __construct($id = false, $table = null, $ds = null) {
$config = Configure::read('Acl.database'); $config = Configure::read('Acl.database');

View file

@ -187,8 +187,7 @@ class ClassRegistryTest extends CakeTestCase {
* *
* @return void * @return void
*/ */
public function testAddModelWithAlias() public function testAddModelWithAlias() {
{
$tag = ClassRegistry::init(array('class' => 'RegisterArticleTag', 'alias' => 'NewTag')); $tag = ClassRegistry::init(array('class' => 'RegisterArticleTag', 'alias' => 'NewTag'));
$this->assertInstanceOf('RegisterArticleTag', $tag); $this->assertInstanceOf('RegisterArticleTag', $tag);
$this->assertSame('NewTag', $tag->alias); $this->assertSame('NewTag', $tag->alias);
@ -205,8 +204,7 @@ class ClassRegistryTest extends CakeTestCase {
* *
* @return void * @return void
*/ */
public function testAddModelWithAliasAco() public function testAddModelWithAliasAco() {
{
$aco = ClassRegistry::init(array('class' => 'Aco', 'alias' => 'CustomAco')); $aco = ClassRegistry::init(array('class' => 'Aco', 'alias' => 'CustomAco'));
$this->assertInstanceOf('Aco', $aco); $this->assertInstanceOf('Aco', $aco);
$this->assertSame('Aco', $aco->name); $this->assertSame('Aco', $aco->name);