Permalink
Browse files

fix if coding standard

fix typo
  • Loading branch information...
1 parent f26d43b commit 69f0d70a98874695f6fbda353f0d7cf07ccc4917 @mrmkrs committed Jan 13, 2012
@@ -316,8 +316,7 @@ public function setGenerateAnnotations($bool)
*/
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 @@ public function testEntityUpdatingWorks()
$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.");

0 comments on commit 69f0d70

Please sign in to comment.