private function inlineEdit($block, $params, $valid = 're_open') {
$this->openInlineForm($block);
foreach ($params as $item => $val) {
- switch(gettype($val)) {
+ switch (gettype($val)) {
case 'boolean':
$this->click($item);
break;
if ($validate && $valid !== 'no_open') {
$this->openInlineForm($block);
foreach ($params as $item => $val) {
- switch(gettype($val)) {
+ switch (gettype($val)) {
case 'string':
if ($val && substr($val, 0, 5) == 'date:') {
$val = date('m/d/Y', strtotime(trim(substr($val, 5))));
}
// Verify there was a form error
else {
- switch($valid) {
+ switch ($valid) {
case 'errorJs':
$this->waitForElementPresent('css=label.error');
break;