Commit 426af317 by Alexander Mohorev

code style. WHILE

parent f8496233
...@@ -311,7 +311,7 @@ class PhpDocController extends Controller ...@@ -311,7 +311,7 @@ class PhpDocController extends Controller
// check if parent class has setter defined // check if parent class has setter defined
$c = $className; $c = $className;
$parentSetter = false; $parentSetter = false;
while($parent = get_parent_class($c)) { while ($parent = get_parent_class($c)) {
if (method_exists($parent, 'set' . ucfirst($propName))) { if (method_exists($parent, 'set' . ucfirst($propName))) {
$parentSetter = true; $parentSetter = true;
break; break;
...@@ -326,7 +326,7 @@ class PhpDocController extends Controller ...@@ -326,7 +326,7 @@ class PhpDocController extends Controller
// check if parent class has getter defined // check if parent class has getter defined
$c = $className; $c = $className;
$parentGetter = false; $parentGetter = false;
while($parent = get_parent_class($c)) { while ($parent = get_parent_class($c)) {
if (method_exists($parent, 'set' . ucfirst($propName))) { if (method_exists($parent, 'set' . ucfirst($propName))) {
$parentGetter = true; $parentGetter = true;
break; break;
......
...@@ -266,7 +266,7 @@ class Context extends Component ...@@ -266,7 +266,7 @@ class Context extends Component
if ($classA->name == $classB) { if ($classA->name == $classB) {
return true; return true;
} }
while($classA->parentClass !== null && isset($this->classes[$classA->parentClass])) { while ($classA->parentClass !== null && isset($this->classes[$classA->parentClass])) {
$classA = $this->classes[$classA->parentClass]; $classA = $this->classes[$classA->parentClass];
if ($classA->name == $classB) { if ($classA->name == $classB) {
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment