[3.4] Remove useless docblocks

This commit is contained in:
Nicolas Grekas 2017-11-07 11:45:59 +01:00
parent 629895c3ef
commit 82ce33d5eb
10 changed files with 7 additions and 18 deletions

View File

@ -178,7 +178,7 @@ EOF
$loaderPaths = array(); $loaderPaths = array();
foreach ($loader->getNamespaces() as $namespace) { foreach ($loader->getNamespaces() as $namespace) {
$paths = array_map(function ($path) use ($namespace) { $paths = array_map(function ($path) {
if (null !== $this->projectDir && 0 === strpos($path, $this->projectDir)) { if (null !== $this->projectDir && 0 === strpos($path, $this->projectDir)) {
$path = ltrim(substr($path, strlen($this->projectDir)), DIRECTORY_SEPARATOR); $path = ltrim(substr($path, strlen($this->projectDir)), DIRECTORY_SEPARATOR);
} }

View File

@ -32,6 +32,8 @@ abstract class Controller implements ContainerAwareInterface
* @param string $name The parameter name * @param string $name The parameter name
* *
* @return mixed * @return mixed
*
* @final since version 3.4
*/ */
protected function getParameter($name) protected function getParameter($name)
{ {

View File

@ -97,9 +97,6 @@ class CachePruneCommandTest extends TestCase
} }
/** /**
* @param KernelInterface $kernel
* @param RewindableGenerator $generator
*
* @return CommandTester * @return CommandTester
*/ */
private function getCommandTester(KernelInterface $kernel, RewindableGenerator $generator) private function getCommandTester(KernelInterface $kernel, RewindableGenerator $generator)

View File

@ -303,11 +303,6 @@ EOTXT;
return $code; return $code;
} }
/**
* Generates code for the proxies.
*
* @return string
*/
private function generateProxyClasses() private function generateProxyClasses()
{ {
$definitions = $this->container->getDefinitions(); $definitions = $this->container->getDefinitions();

View File

@ -229,7 +229,7 @@ class XmlFileLoader extends FileLoader
} }
if ('bind' === $k) { if ('bind' === $k) {
if ($defaults['bind']) { if ($defaults['bind']) {
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'))); 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')));
} }
continue; continue;

View File

@ -825,7 +825,7 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
$fs = new Filesystem(); $fs = new Filesystem();
foreach ($content as $file => $code) { foreach ($content as $file => $code) {
$fs->dumpFile($dir.$file, $code, null); $fs->dumpFile($dir.$file, $code);
@chmod($dir.$file, 0666 & ~umask()); @chmod($dir.$file, 0666 & ~umask());
} }

View File

@ -207,8 +207,6 @@ class CsvEncoder implements EncoderInterface, DecoderInterface
} }
/** /**
* @param array $data
*
* @return string[] * @return string[]
*/ */
private function extractHeaders(array $data) private function extractHeaders(array $data)

View File

@ -24,9 +24,6 @@ class DateIntervalNormalizer implements NormalizerInterface, DenormalizerInterfa
{ {
const FORMAT_KEY = 'dateinterval_format'; const FORMAT_KEY = 'dateinterval_format';
/**
* @var string
*/
private $format; private $format;
/** /**

View File

@ -171,6 +171,6 @@ class Stopwatch
*/ */
public function reset() public function reset()
{ {
$this->sections = $this->activeSections = array('__root__' => new Section('__root__', $this->morePrecision)); $this->sections = $this->activeSections = array('__root__' => new Section(null, $this->morePrecision));
} }
} }

View File

@ -75,7 +75,7 @@ class DateCaster
public static function castTimeZone(\DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter) public static function castTimeZone(\DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter)
{ {
$location = $timeZone->getLocation(); $location = $timeZone->getLocation();
$formatted = (new \Datetime('now', $timeZone))->format($location ? 'e (P)' : 'P'); $formatted = (new \DateTime('now', $timeZone))->format($location ? 'e (P)' : 'P');
$title = $location && extension_loaded('intl') ? \Locale::getDisplayRegion('-'.$location['country_code'], \Locale::getDefault()) : ''; $title = $location && extension_loaded('intl') ? \Locale::getDisplayRegion('-'.$location['country_code'], \Locale::getDefault()) : '';
$z = array(Caster::PREFIX_VIRTUAL.'timezone' => new ConstStub($formatted, $title)); $z = array(Caster::PREFIX_VIRTUAL.'timezone' => new ConstStub($formatted, $title));