1
0
mirror of synced 2025-01-30 20:11:49 +03:00

fix if coding standard

fix typo
This commit is contained in:
Marcel 2012-01-13 14:14:28 +01:00
parent f26d43b3ea
commit 69f0d70a98
2 changed files with 2 additions and 3 deletions

View File

@ -316,8 +316,7 @@ public function <methodName>()
*/ */
public function setFieldVisibility($visibility) 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); throw new \InvalidArgumentException('Invalid provided visibilty (only private and protected are allowed): ' . $visibility);
} }

View File

@ -134,7 +134,7 @@ class EntityGeneratorTest extends \Doctrine\Tests\OrmTestCase
$this->assertTrue($reflClass->hasProperty('id'), "Regenerating keeps property 'id'."); $this->assertTrue($reflClass->hasProperty('id'), "Regenerating keeps property 'id'.");
$this->assertTrue($reflClass->hasProperty('test'), "Check for property test failed."); $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->hasMethod('getTest'), "Check for method 'getTest' failed.");
$this->assertTrue($reflClass->getMethod('getTest')->isPublic(), "Check for public visibility of 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."); $this->assertTrue($reflClass->hasMethod('setTest'), "Check for method 'getTest' failed.");