Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix if coding standard

fix typo
  • Loading branch information...
commit 69f0d70a98874695f6fbda353f0d7cf07ccc4917 1 parent f26d43b
mrmkrs authored
3  lib/Doctrine/ORM/Tools/EntityGenerator.php
@@ -316,8 +316,7 @@ public function setGenerateAnnotations($bool)
316 316 */
317 317 public function setFieldVisibility($visibility)
318 318 {
319   - if($visibility != 'private' && $visibility != 'protected')
320   - {
  319 + if ($visibility != 'private' && $visibility != 'protected') {
321 320 throw new \InvalidArgumentException('Invalid provided visibilty (only private and protected are allowed): ' . $visibility);
322 321 }
323 322
2  tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php
@@ -134,7 +134,7 @@ public function testEntityUpdatingWorks()
134 134 $this->assertTrue($reflClass->hasProperty('id'), "Regenerating keeps property 'id'.");
135 135
136 136 $this->assertTrue($reflClass->hasProperty('test'), "Check for property test failed.");
137   - $this->assertTrue($reflClass->getProperty('test')->isProtected(), "Check for private property test failed.");
  137 + $this->assertTrue($reflClass->getProperty('test')->isProtected(), "Check for protected property test failed.");
138 138 $this->assertTrue($reflClass->hasMethod('getTest'), "Check for method 'getTest' failed.");
139 139 $this->assertTrue($reflClass->getMethod('getTest')->isPublic(), "Check for public visibility of method 'getTest' failed.");
140 140 $this->assertTrue($reflClass->hasMethod('setTest'), "Check for method 'getTest' failed.");

0 comments on commit 69f0d70

Please sign in to comment.
Something went wrong with that request. Please try again.