Automated cleanup
This commit is contained in:
parent
8d7033c9b1
commit
3e45109024
5 changed files with 3 additions and 14 deletions
|
|
@ -101,10 +101,10 @@
|
|||
"hooks": {
|
||||
"pre-commit": [
|
||||
"echo committing as $(git config user.name)",
|
||||
"vendor/bin/php-cs-fixer fix ."
|
||||
"docker run --rm -i -v $(pwd):/app cytopia/php-cs-fixer:latest fix /app"
|
||||
],
|
||||
"pre-push": [
|
||||
"vendor/bin/php-cs-fixer fix .",
|
||||
"docker run --rm -i -v $(pwd):/app cytopia/php-cs-fixer:latest fix /app",
|
||||
"vendor/bin/phpstan analyse"
|
||||
],
|
||||
"post-merge": "composer install --ignore-platform-reqs"
|
||||
|
|
|
|||
|
|
@ -46,22 +46,18 @@ 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}");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ class Redis
|
|||
{
|
||||
if (!$this->redis->isConnected()) {
|
||||
@$this->redis->pconnect($this->host, $this->port, $this->timeout);
|
||||
if($this->password){
|
||||
if ($this->password) {
|
||||
$this->redis->auth($this->password);
|
||||
}
|
||||
$this->initialiseExtensions();
|
||||
|
|
|
|||
|
|
@ -55,23 +55,18 @@ 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,10 +19,8 @@ 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