@@ -60,14 +60,14 @@ |
||
60 | 60 | // get the roles table, if we have one |
61 | 61 | $rolesTable = $this->getTable(); |
62 | 62 | if (!$rolesTable) { |
63 | - return; |
|
63 | + return; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | // remove any empty test environments |
67 | 67 | foreach ($rolesTable as $testEnv => $roles) { |
68 | - if (count(get_object_vars($roles)) == 0) { |
|
69 | - unset($rolesTable->$testEnv); |
|
70 | - } |
|
68 | + if (count(get_object_vars($roles)) == 0) { |
|
69 | + unset($rolesTable->$testEnv); |
|
70 | + } |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | // cleanup the tables |
@@ -57,7 +57,8 @@ |
||
57 | 57 | */ |
58 | 58 | class E4xx_InvalidArgument extends Exxx_Exception |
59 | 59 | { |
60 | - public function __construct($argumentName, $reason = '', $params = array()) { |
|
60 | + public function __construct($argumentName, $reason = '', $params = array()) |
|
61 | + { |
|
61 | 62 | $msg = "Missing argument '$argumentName'"; |
62 | 63 | if (strlen($reason) > 0) { |
63 | 64 | $msg .= "; reason is '{$reason}'"; |
@@ -57,7 +57,8 @@ |
||
57 | 57 | */ |
58 | 58 | class E4xx_MissingArgument extends Exxx_Exception |
59 | 59 | { |
60 | - public function __construct($method, $reason = '', $params = array()) { |
|
60 | + public function __construct($method, $reason = '', $params = array()) |
|
61 | + { |
|
61 | 62 | $msg = "Missing argument in '$method'"; |
62 | 63 | if (strlen($reason) > 0) { |
63 | 64 | $msg .= "; reason is '{$reason}'"; |
@@ -57,7 +57,8 @@ |
||
57 | 57 | */ |
58 | 58 | class E4xx_ObsoleteProse extends Exxx_Exception |
59 | 59 | { |
60 | - public function __construct($oldProse, $newProse) { |
|
60 | + public function __construct($oldProse, $newProse) |
|
61 | + { |
|
61 | 62 | $msg = "Support for '$oldProse' has been removed; please use $newProse instead"; |
62 | 63 | parent::__construct(400, $msg, $msg); |
63 | 64 | } |
@@ -57,7 +57,8 @@ |
||
57 | 57 | */ |
58 | 58 | class E4xx_StoryShouldFail extends Exxx_Exception |
59 | 59 | { |
60 | - public function __construct() { |
|
60 | + public function __construct() |
|
61 | + { |
|
61 | 62 | $msg = "Story should fail"; |
62 | 63 | parent::__construct(400, $msg, $msg); |
63 | 64 | } |
@@ -55,7 +55,8 @@ |
||
55 | 55 | */ |
56 | 56 | class E5xx_ActionFailed extends E5xx_ProseException |
57 | 57 | { |
58 | - public function __construct($actionName, $reason = '', $params = array()) { |
|
58 | + public function __construct($actionName, $reason = '', $params = array()) |
|
59 | + { |
|
59 | 60 | $msg = "Action '$actionName' failed"; |
60 | 61 | if (strlen($reason) > 0) { |
61 | 62 | $msg .= "; reason is '{$reason}'"; |
@@ -55,7 +55,8 @@ |
||
55 | 55 | */ |
56 | 56 | class E5xx_ExpectFailed extends E5xx_ProseException |
57 | 57 | { |
58 | - public function __construct($actionName, $expected, $found) { |
|
58 | + public function __construct($actionName, $expected, $found) |
|
59 | + { |
|
59 | 60 | $msg = "Action '$actionName' failed; expected '$expected', found '$found'"; |
60 | 61 | parent::__construct(500, $msg, $msg); |
61 | 62 | } |
@@ -57,7 +57,8 @@ |
||
57 | 57 | */ |
58 | 58 | class E5xx_NotImplemented extends E5xx_ProseException |
59 | 59 | { |
60 | - public function __construct($methodName) { |
|
60 | + public function __construct($methodName) |
|
61 | + { |
|
61 | 62 | $msg = "Method '{$methodName}' has not been implemented yet"; |
62 | 63 | parent::__construct(500, $msg, $msg); |
63 | 64 | } |
@@ -55,7 +55,8 @@ |
||
55 | 55 | */ |
56 | 56 | class E5xx_UnknownDomElementType extends E5xx_ProseException |
57 | 57 | { |
58 | - public function __construct($elementType) { |
|
58 | + public function __construct($elementType) |
|
59 | + { |
|
59 | 60 | $msg = "Unknown DOM element type '{$elementType}'"; |
60 | 61 | parent::__construct(500, $msg, $msg); |
61 | 62 | } |