fix if coding standard
fix typo
This commit is contained in:
parent
f26d43b3ea
commit
69f0d70a98
@ -316,8 +316,7 @@ public function <methodName>()
|
||||
*/
|
||||
public function setFieldVisibility($visibility)
|
||||
{
|
||||
if($visibility != 'private' && $visibility != 'protected')
|
||||
{
|
||||
if ($visibility != 'private' && $visibility != 'protected') {
|
||||
throw new \InvalidArgumentException('Invalid provided visibilty (only private and protected are allowed): ' . $visibility);
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ class EntityGeneratorTest extends \Doctrine\Tests\OrmTestCase
|
||||
$this->assertTrue($reflClass->hasProperty('id'), "Regenerating keeps property 'id'.");
|
||||
|
||||
$this->assertTrue($reflClass->hasProperty('test'), "Check for property test failed.");
|
||||
$this->assertTrue($reflClass->getProperty('test')->isProtected(), "Check for private property test failed.");
|
||||
$this->assertTrue($reflClass->getProperty('test')->isProtected(), "Check for protected property test failed.");
|
||||
$this->assertTrue($reflClass->hasMethod('getTest'), "Check for method 'getTest' failed.");
|
||||
$this->assertTrue($reflClass->getMethod('getTest')->isPublic(), "Check for public visibility of method 'getTest' failed.");
|
||||
$this->assertTrue($reflClass->hasMethod('setTest'), "Check for method 'getTest' failed.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user