Skip to content

Commit

Permalink
Scrutinizer Auto-Fixes (#311)
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
scrutinizer-auto-fixer authored and aimeos committed Jan 8, 2020
1 parent 8a9c64c commit abf9c29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/Aimeos/Shop/Controller/JsonadmController.php
Expand Up @@ -41,7 +41,7 @@ public function deleteAction( ServerRequestInterface $request )
$this->authorize( 'admin', [JsonadmController::class, ['admin', 'api']] );
}

return $this->createAdmin()->delete( $request, (new Psr17Factory)->createResponse() );
return $this->createAdmin()->delete( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -57,7 +57,7 @@ public function getAction( ServerRequestInterface $request )
$this->authorize( 'admin', [JsonadmController::class, ['admin', 'api', 'editor']] );
}

return $this->createAdmin()->get( $request, (new Psr17Factory)->createResponse() );
return $this->createAdmin()->get( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -73,7 +73,7 @@ public function patchAction( ServerRequestInterface $request )
$this->authorize( 'admin', [JsonadmController::class, ['admin', 'api']] );
}

return $this->createAdmin()->patch( $request, (new Psr17Factory)->createResponse() );
return $this->createAdmin()->patch( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -89,7 +89,7 @@ public function postAction( ServerRequestInterface $request )
$this->authorize( 'admin', [JsonadmController::class, ['admin', 'api']] );
}

return $this->createAdmin()->post( $request, (new Psr17Factory)->createResponse() );
return $this->createAdmin()->post( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -105,7 +105,7 @@ public function putAction( ServerRequestInterface $request )
$this->authorize( 'admin', [JsonadmController::class, ['admin', 'api']] );
}

return $this->createAdmin()->put( $request, (new Psr17Factory)->createResponse() );
return $this->createAdmin()->put( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -121,7 +121,7 @@ public function optionsAction( ServerRequestInterface $request )
$this->authorize( 'admin', [JsonadmController::class, ['admin', 'api', 'editor']] );
}

return $this->createAdmin()->options( $request, (new Psr17Factory)->createResponse() );
return $this->createAdmin()->options( $request, ( new Psr17Factory )->createResponse() );
}


Expand Down
12 changes: 6 additions & 6 deletions src/Aimeos/Shop/Controller/JsonapiController.php
Expand Up @@ -33,7 +33,7 @@ class JsonapiController extends Controller
*/
public function deleteAction( ServerRequestInterface $request )
{
return $this->createClient()->delete( $request, (new Psr17Factory)->createResponse() );
return $this->createClient()->delete( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -45,7 +45,7 @@ public function deleteAction( ServerRequestInterface $request )
*/
public function getAction( ServerRequestInterface $request )
{
return $this->createClient()->get( $request, (new Psr17Factory)->createResponse() );
return $this->createClient()->get( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -57,7 +57,7 @@ public function getAction( ServerRequestInterface $request )
*/
public function patchAction( ServerRequestInterface $request )
{
return $this->createClient()->patch( $request, (new Psr17Factory)->createResponse() );
return $this->createClient()->patch( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -69,7 +69,7 @@ public function patchAction( ServerRequestInterface $request )
*/
public function postAction( ServerRequestInterface $request )
{
return $this->createClient()->post( $request, (new Psr17Factory)->createResponse() );
return $this->createClient()->post( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -81,7 +81,7 @@ public function postAction( ServerRequestInterface $request )
*/
public function putAction( ServerRequestInterface $request )
{
return $this->createClient()->put( $request, (new Psr17Factory)->createResponse() );
return $this->createClient()->put( $request, ( new Psr17Factory )->createResponse() );
}


Expand All @@ -93,7 +93,7 @@ public function putAction( ServerRequestInterface $request )
*/
public function optionsAction( ServerRequestInterface $request )
{
return $this->createClient()->options( $request, (new Psr17Factory)->createResponse() );
return $this->createClient()->options( $request, ( new Psr17Factory )->createResponse() );
}


Expand Down

0 comments on commit abf9c29

Please sign in to comment.