Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a05d345

Browse files
author
mmoreram
committed
Added all php file headers
* All headers follow FOS format, defined in FriendsOfSymfony/friendsofsymfony.github.io#14 (comment)
1 parent 5d64b1b commit a05d345

26 files changed

Lines changed: 19 additions & 37 deletions

CacheManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public function invalidateRoute($name, array $parameters = array())
8787
/**
8888
* Refresh a route
8989
*
90-
* @param string $route Route name
91-
* @param array $parameters Route parameters (optional)
90+
* @param string $route Route name
91+
* @param array $parameters Route parameters (optional)
9292
*
9393
* @return $this
9494
*/

Command/BaseInvalidateCommand.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
namespace FOS\HttpCacheBundle\Command;
1313

1414
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
15-
use Symfony\Component\Console\Input\InputInterface;
16-
use Symfony\Component\Console\Output\OutputInterface;
17-
use Symfony\Component\Console\Input\InputArgument;
1815

1916
use FOS\HttpCacheBundle\CacheManager;
2017

Command/InvalidatePathCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace FOS\HttpCacheBundle\Command;
1313

14-
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1514
use Symfony\Component\Console\Input\InputInterface;
1615
use Symfony\Component\Console\Output\OutputInterface;
1716
use Symfony\Component\Console\Input\InputArgument;

Command/InvalidateRegexCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace FOS\HttpCacheBundle\Command;
1313

14-
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1514
use Symfony\Component\Console\Input\InputInterface;
1615
use Symfony\Component\Console\Output\OutputInterface;
1716
use Symfony\Component\Console\Input\InputArgument;

Command/InvalidateTagCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace FOS\HttpCacheBundle\Command;
1313

14-
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1514
use Symfony\Component\Console\Input\InputInterface;
1615
use Symfony\Component\Console\Output\OutputInterface;
1716
use Symfony\Component\Console\Input\InputArgument;

Command/RefreshPathCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace FOS\HttpCacheBundle\Command;
1313

14-
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1514
use Symfony\Component\Console\Input\InputInterface;
1615
use Symfony\Component\Console\Output\OutputInterface;
1716
use Symfony\Component\Console\Input\InputArgument;

Configuration/InvalidatePath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ public function allowArray()
5959
{
6060
return true;
6161
}
62-
}
62+
}

Configuration/InvalidateRoute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ public function allowArray()
8080
{
8181
return true;
8282
}
83-
}
83+
}

Configuration/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ public function allowArray()
7474
{
7575
return true;
7676
}
77-
}
77+
}

DependencyInjection/Configuration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ private function addMatchSection(NodeBuilder $rules)
168168
->info('Request host name.')
169169
->end()
170170
->arrayNode('methods')
171-
->beforeNormalization()->ifString()->then(function($v) { return preg_split('/\s*,\s*/', $v); })->end()
171+
->beforeNormalization()->ifString()->then(function ($v) { return preg_split('/\s*,\s*/', $v); })->end()
172172
->useAttributeAsKey('name')
173173
->prototype('scalar')->end()
174174
->info('Request HTTP methods.')
175175
->end()
176176
->arrayNode('ips')
177-
->beforeNormalization()->ifString()->then(function($v) { return preg_split('/\s*,\s*/', $v); })->end()
177+
->beforeNormalization()->ifString()->then(function ($v) { return preg_split('/\s*,\s*/', $v); })->end()
178178
->useAttributeAsKey('name')
179179
->prototype('scalar')->end()
180180
->info('List of client IPs.')
@@ -220,7 +220,7 @@ private function addHeaderSection(NodeBuilder $rules)
220220
->info('Specify an X-Reverse-Proxy-TTL header with a time in seconds for a caching proxy under your control.')
221221
->end()
222222
->arrayNode('vary')
223-
->beforeNormalization()->ifString()->then(function($v) { return preg_split('/\s*,\s*/', $v); })->end()
223+
->beforeNormalization()->ifString()->then(function ($v) { return preg_split('/\s*,\s*/', $v); })->end()
224224
->prototype('scalar')->end()
225225
->info('Define a list of additional headers on which the response varies.')
226226
->end()
@@ -242,7 +242,7 @@ private function addProxyClientSection(ArrayNodeDefinition $rootNode)
242242
->arrayNode('varnish')
243243
->children()
244244
->arrayNode('servers')
245-
->beforeNormalization()->ifString()->then(function($v) { return preg_split('/\s*,\s*/', $v); })->end()
245+
->beforeNormalization()->ifString()->then(function ($v) { return preg_split('/\s*,\s*/', $v); })->end()
246246
->useAttributeAsKey('name')
247247
->isRequired()
248248
->requiresAtLeastOneElement()

0 commit comments

Comments
 (0)