Skip to content

Commit 82ce33d

Browse files
[3.4] Remove useless docblocks
1 parent 629895c commit 82ce33d

File tree

10 files changed

+7
-18
lines changed

10 files changed

+7
-18
lines changed

src/Symfony/Bridge/Twig/Command/DebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private function getLoaderPaths()
178178

179179
$loaderPaths = array();
180180
foreach ($loader->getNamespaces() as $namespace) {
181-
$paths = array_map(function ($path) use ($namespace) {
181+
$paths = array_map(function ($path) {
182182
if (null !== $this->projectDir && 0 === strpos($path, $this->projectDir)) {
183183
$path = ltrim(substr($path, strlen($this->projectDir)), DIRECTORY_SEPARATOR);
184184
}

src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ abstract class Controller implements ContainerAwareInterface
3232
* @param string $name The parameter name
3333
*
3434
* @return mixed
35+
*
36+
* @final since version 3.4
3537
*/
3638
protected function getParameter($name)
3739
{

src/Symfony/Bundle/FrameworkBundle/Tests/Command/CachePruneCommandTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ private function getPruneableInterfaceMock()
9797
}
9898

9999
/**
100-
* @param KernelInterface $kernel
101-
* @param RewindableGenerator $generator
102-
*
103100
* @return CommandTester
104101
*/
105102
private function getCommandTester(KernelInterface $kernel, RewindableGenerator $generator)

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,6 @@ private function addServiceLocalTempVariables($cId, Definition $definition, arra
303303
return $code;
304304
}
305305

306-
/**
307-
* Generates code for the proxies.
308-
*
309-
* @return string
310-
*/
311306
private function generateProxyClasses()
312307
{
313308
$definitions = $this->container->getDefinitions();

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private function parseDefinition(\DOMElement $service, $file, array $defaults)
229229
}
230230
if ('bind' === $k) {
231231
if ($defaults['bind']) {
232-
throw new InvalidArgumentException(sprintf('Bound values on service "%s" cannot be inherited from "defaults" when a "parent" is set. Move your child definitions to a separate file.', $k, $service->getAttribute('id')));
232+
throw new InvalidArgumentException(sprintf('Bound values on service "%s" cannot be inherited from "defaults" when a "parent" is set. Move your child definitions to a separate file.', $service->getAttribute('id')));
233233
}
234234

235235
continue;

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
825825
$fs = new Filesystem();
826826

827827
foreach ($content as $file => $code) {
828-
$fs->dumpFile($dir.$file, $code, null);
828+
$fs->dumpFile($dir.$file, $code);
829829
@chmod($dir.$file, 0666 & ~umask());
830830
}
831831

src/Symfony/Component/Serializer/Encoder/CsvEncoder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ private function getCsvOptions(array $context)
207207
}
208208

209209
/**
210-
* @param array $data
211-
*
212210
* @return string[]
213211
*/
214212
private function extractHeaders(array $data)

src/Symfony/Component/Serializer/Normalizer/DateIntervalNormalizer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ class DateIntervalNormalizer implements NormalizerInterface, DenormalizerInterfa
2424
{
2525
const FORMAT_KEY = 'dateinterval_format';
2626

27-
/**
28-
* @var string
29-
*/
3027
private $format;
3128

3229
/**

src/Symfony/Component/Stopwatch/Stopwatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,6 @@ public function getSectionEvents($id)
171171
*/
172172
public function reset()
173173
{
174-
$this->sections = $this->activeSections = array('__root__' => new Section('__root__', $this->morePrecision));
174+
$this->sections = $this->activeSections = array('__root__' => new Section(null, $this->morePrecision));
175175
}
176176
}

src/Symfony/Component/VarDumper/Caster/DateCaster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private static function formatInterval(\DateInterval $i)
7575
public static function castTimeZone(\DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter)
7676
{
7777
$location = $timeZone->getLocation();
78-
$formatted = (new \Datetime('now', $timeZone))->format($location ? 'e (P)' : 'P');
78+
$formatted = (new \DateTime('now', $timeZone))->format($location ? 'e (P)' : 'P');
7979
$title = $location && extension_loaded('intl') ? \Locale::getDisplayRegion('-'.$location['country_code'], \Locale::getDefault()) : '';
8080

8181
$z = array(Caster::PREFIX_VIRTUAL.'timezone' => new ConstStub($formatted, $title));

0 commit comments

Comments
 (0)