Skip to content

Commit

Permalink
Merge pull request #537 from FriendsOfSymfony/fix-cs
Browse files Browse the repository at this point in the history
fix cs to newest rules
  • Loading branch information
dbu authored Sep 1, 2022
2 parents 9071b9d + 7706f51 commit 42f4783
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 50 deletions.
24 changes: 12 additions & 12 deletions src/CacheInvalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ public function getEventDispatcher()
* @param string $path Path or URL
* @param array $headers HTTP headers (optional)
*
* @throws UnsupportedProxyOperationException
*
* @return $this
*
* @throws UnsupportedProxyOperationException
*/
public function invalidatePath($path, array $headers = [])
{
Expand All @@ -176,9 +176,9 @@ public function invalidatePath($path, array $headers = [])
*
* @see RefreshCapable::refresh()
*
* @throws UnsupportedProxyOperationException
*
* @return $this
*
* @throws UnsupportedProxyOperationException
*/
public function refreshPath($path, array $headers = [])
{
Expand All @@ -201,9 +201,9 @@ public function refreshPath($path, array $headers = [])
*
* @param array $headers HTTP headers that path must match to be banned
*
* @throws UnsupportedProxyOperationException If HTTP cache does not support BAN requests
*
* @return $this
*
* @throws UnsupportedProxyOperationException If HTTP cache does not support BAN requests
*/
public function invalidate(array $headers)
{
Expand All @@ -223,9 +223,9 @@ public function invalidate(array $headers)
*
* @param array $tags Tags that should be removed/expired from the cache
*
* @throws UnsupportedProxyOperationException If HTTP cache does not support Tags invalidation
*
* @return $this
*
* @throws UnsupportedProxyOperationException If HTTP cache does not support Tags invalidation
*/
public function invalidateTags(array $tags)
{
Expand Down Expand Up @@ -255,9 +255,9 @@ public function invalidateTags(array $tags)
* @param array|string $hosts Regular expression of a host name or list of
* exact host names to limit banning
*
* @throws UnsupportedProxyOperationException If HTTP cache does not support BAN requests
*
* @return $this
*
* @throws UnsupportedProxyOperationException If HTTP cache does not support BAN requests
*/
public function invalidateRegex($path, $contentType = null, $hosts = null)
{
Expand All @@ -273,9 +273,9 @@ public function invalidateRegex($path, $contentType = null, $hosts = null)
/**
* Clear the cache completely.
*
* @throws UnsupportedProxyOperationException if HTTP cache does not support clearing the cache completely
*
* @return $this
*
* @throws UnsupportedProxyOperationException if HTTP cache does not support clearing the cache completely
*/
public function clearCache()
{
Expand Down
4 changes: 2 additions & 2 deletions src/ProxyClient/MultiplexerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public function banPath($path, $contentType = null, $hosts = null)
/**
* Forwards to all clients.
*
* @throws ExceptionCollection If any errors occurred during flush
*
* @return int The number of cache invalidations performed per caching server
*
* @throws ExceptionCollection If any errors occurred during flush
*/
public function flush()
{
Expand Down
4 changes: 2 additions & 2 deletions src/ResponseTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ public function hasTags()
*
* @param string[] $tags List of tags to add
*
* @throws InvalidTagException
*
* @return $this
*
* @throws InvalidTagException
*/
public function addTags(array $tags)
{
Expand Down
12 changes: 6 additions & 6 deletions src/Test/Legacy/WebServerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public function addRiskyTest(\PHPUnit_Framework_Test $test, \Exception $e, $time
/**
* Get web server hostname.
*
* @throws \Exception
*
* @return string
*
* @throws \Exception
*/
protected function getHostName()
{
Expand All @@ -98,9 +98,9 @@ protected function getHostName()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
protected function getPort()
{
Expand All @@ -110,9 +110,9 @@ protected function getPort()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
protected function getDocRoot()
{
Expand Down
12 changes: 6 additions & 6 deletions src/Test/Legacy/WebServerListener6.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public function addWarning(Test $test, Warning $e, $time)
/**
* Get web server hostname.
*
* @throws \Exception
*
* @return string
*
* @throws \Exception
*/
protected function getHostName()
{
Expand All @@ -106,9 +106,9 @@ protected function getHostName()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
protected function getPort()
{
Expand All @@ -118,9 +118,9 @@ protected function getPort()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
protected function getDocRoot()
{
Expand Down
8 changes: 4 additions & 4 deletions src/Test/NginxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ protected function tearDown(): void
/**
* The default implementation looks at the constant NGINX_FILE.
*
* @throws \Exception
*
* @return string the path to the NGINX server configuration file to use with this test
*
* @throws \Exception
*/
protected function getConfigFile()
{
Expand Down Expand Up @@ -114,9 +114,9 @@ protected function getCacheDir()
/**
* Get the hostname where your application can be reached.
*
* @throws \Exception
*
* @return string
*
* @throws \Exception
*/
protected function getHostName()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Test/SymfonyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ protected function getCachingProxyPort()
/**
* Get the hostname where your application can be reached.
*
* @throws \Exception
*
* @return string
*
* @throws \Exception
*/
protected function getHostName()
{
Expand Down
8 changes: 4 additions & 4 deletions src/Test/VarnishTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ protected function tearDown(): void
/**
* The default implementation looks at the constant VARNISH_FILE.
*
* @throws \Exception
*
* @return string the path to the varnish server configuration file to use with this test
*
* @throws \Exception
*/
protected function getConfigFile()
{
Expand Down Expand Up @@ -200,9 +200,9 @@ protected function getProxyClient()
/**
* Get the hostname where your application can be reached.
*
* @throws \Exception
*
* @return string
*
* @throws \Exception
*/
protected function getHostName()
{
Expand Down
12 changes: 6 additions & 6 deletions src/Test/WebServerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public function addWarning(Test $test, Warning $e, float $time): void
/**
* Get web server hostname.
*
* @throws \Exception
*
* @return string
*
* @throws \Exception
*/
protected function getHostName()
{
Expand All @@ -114,9 +114,9 @@ protected function getHostName()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
protected function getPort()
{
Expand All @@ -126,9 +126,9 @@ protected function getPort()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
protected function getDocRoot()
{
Expand Down
12 changes: 6 additions & 6 deletions src/Test/WebServerListenerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public function startTestSuite($suite)
/**
* Get web server hostname.
*
* @throws \Exception
*
* @return string
*
* @throws \Exception
*/
public function getHostName()
{
Expand All @@ -65,9 +65,9 @@ public function getHostName()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
public function getPort()
{
Expand All @@ -81,9 +81,9 @@ public function getPort()
/**
* Get web server port.
*
* @throws \Exception
*
* @return int
*
* @throws \Exception
*/
public function getDocRoot()
{
Expand Down

0 comments on commit 42f4783

Please sign in to comment.