Whitespace cleaning

This commit is contained in:
Greyscale 2021-02-13 22:42:21 +01:00
parent 562e6328f8
commit 819cff3936
3 changed files with 11 additions and 0 deletions

View file

@ -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}");
}

View file

@ -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}\".");
}

View file

@ -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");
}