Whitespace cleaning
This commit is contained in:
parent
562e6328f8
commit
819cff3936
3 changed files with 11 additions and 0 deletions
|
|
@ -46,18 +46,22 @@ class Filter
|
|||
$this->setLimit($value);
|
||||
|
||||
break;
|
||||
|
||||
case 'offset':
|
||||
$this->setOffset($value);
|
||||
|
||||
break;
|
||||
|
||||
case 'wheres':
|
||||
$this->setWheres($value);
|
||||
|
||||
break;
|
||||
|
||||
case 'order':
|
||||
$this->parseOrder($value);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new FilterDecodeException("Failed to decode Filter, unknown key: {$key}");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,18 +55,23 @@ class TransformExtension extends AbstractExtension
|
|||
case 'camel':
|
||||
case 'camelcase':
|
||||
return new Format\CamelCase();
|
||||
|
||||
case 'screaming':
|
||||
case 'screamingsnake':
|
||||
case 'screamingsnakecase':
|
||||
return new Format\ScreamingSnakeCase();
|
||||
|
||||
case 'snake':
|
||||
case 'snakecase':
|
||||
return new Format\SnakeCase();
|
||||
|
||||
case 'spinal':
|
||||
case 'spinalcase':
|
||||
return new Format\SpinalCase();
|
||||
|
||||
case 'studly':
|
||||
return new Format\StudlyCaps();
|
||||
|
||||
default:
|
||||
throw new TransformExtensionException("Unknown transformer: \"{$name}\".");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,10 @@ class WorkerWorkItem implements \Serializable
|
|||
$this->data[$field] = $arguments[0];
|
||||
|
||||
return $this;
|
||||
|
||||
case 'get':
|
||||
return $this->data[$field];
|
||||
|
||||
default:
|
||||
throw new WorkerException("Method {$name} doesn't exist");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue