Apply php-cs-fixer changes
This commit is contained in:
parent
cec96062e3
commit
436e686037
72 changed files with 91 additions and 196 deletions
|
@ -33,7 +33,7 @@ class Fractal extends SpatieFractal
|
|||
|
||||
// If the resource name is not set attempt to pull it off the transformer
|
||||
// itself and set it automatically.
|
||||
$class = is_string($this->transformer) ? new $this->transformer : $this->transformer;
|
||||
$class = is_string($this->transformer) ? new $this->transformer() : $this->transformer;
|
||||
if (is_null($this->resourceName) && $class instanceof Transformer) {
|
||||
$this->resourceName = $class->getResourceName();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue