Skip to content

Commit 1f31d7a

Browse files
committed
Styling changes
1 parent d45e792 commit 1f31d7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doctrine/Phpcr/Route.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ public function setAddTrailingSlash($addTrailingSlash)
9797
*/
9898
public function setParent($parent)
9999
{
100-
if(!is_object($parent))
100+
if (!is_object($parent)) {
101101
throw new InvalidArgumentException("Parent must be an object ".gettype ($parent)." given.");
102+
}
102103

103104
$this->parent = $parent;
104105

@@ -142,8 +143,9 @@ public function getName()
142143
*/
143144
public function setPosition($parent, $name)
144145
{
145-
if(!is_object($parent))
146+
if (!is_object($parent)) {
146147
throw new InvalidArgumentException("Parent must be an object ".gettype ($parent)." given.");
148+
}
147149

148150
$this->parent = $parent;
149151
$this->name = $name;

0 commit comments

Comments
 (0)