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

Skip to content

Commit aa338c8

Browse files
Import return annotations from vendors
1 parent 10fc13e commit aa338c8

File tree

77 files changed

+555
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+555
-38
lines changed

src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public function __construct(ContainerInterface $container)
3939

4040
/**
4141
* {@inheritdoc}
42+
*
43+
* @return void
4244
*/
4345
public function dispatchEvent($eventName, EventArgs $eventArgs = null)
4446
{
@@ -59,6 +61,8 @@ public function dispatchEvent($eventName, EventArgs $eventArgs = null)
5961

6062
/**
6163
* {@inheritdoc}
64+
*
65+
* @return object[][]
6266
*/
6367
public function getListeners($event = null)
6468
{
@@ -81,6 +85,8 @@ public function getListeners($event = null)
8185

8286
/**
8387
* {@inheritdoc}
88+
*
89+
* @return bool
8490
*/
8591
public function hasListeners($event)
8692
{
@@ -89,6 +95,8 @@ public function hasListeners($event)
8995

9096
/**
9197
* {@inheritdoc}
98+
*
99+
* @return void
92100
*/
93101
public function addEventListener($events, $listener)
94102
{
@@ -109,6 +117,8 @@ public function addEventListener($events, $listener)
109117

110118
/**
111119
* {@inheritdoc}
120+
*
121+
* @return void
112122
*/
113123
public function removeEventListener($events, $listener)
114124
{

src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function __construct(LoggerInterface $logger = null, Stopwatch $stopwatch
3434

3535
/**
3636
* {@inheritdoc}
37+
*
38+
* @return void
3739
*/
3840
public function startQuery($sql, array $params = null, array $types = null)
3941
{
@@ -48,6 +50,8 @@ public function startQuery($sql, array $params = null, array $types = null)
4850

4951
/**
5052
* {@inheritdoc}
53+
*
54+
* @return void
5155
*/
5256
public function stopQuery()
5357
{

src/Symfony/Bridge/Doctrine/ManagerRegistry.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ abstract class ManagerRegistry extends AbstractManagerRegistry
2929

3030
/**
3131
* {@inheritdoc}
32+
*
33+
* @return object
3234
*/
3335
protected function getService($name)
3436
{
@@ -37,6 +39,8 @@ protected function getService($name)
3739

3840
/**
3941
* {@inheritdoc}
42+
*
43+
* @return void
4044
*/
4145
protected function resetService($name)
4246
{

src/Symfony/Bridge/Doctrine/Test/TestRepositoryFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ final class TestRepositoryFactory implements RepositoryFactory
2828

2929
/**
3030
* {@inheritdoc}
31+
*
32+
* @return ObjectRepository
3133
*/
3234
public function getRepository(EntityManagerInterface $entityManager, $entityName)
3335
{

src/Symfony/Bridge/Doctrine/Tests/Fixtures/Type/StringWrapperType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
3434

3535
/**
3636
* {@inheritdoc}
37+
*
38+
* @return string
3739
*/
3840
public function getName()
3941
{

src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/Fixtures/DoctrineFooType.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class DoctrineFooType extends Type
2727

2828
/**
2929
* {@inheritdoc}
30+
*
31+
* @return string
3032
*/
3133
public function getName()
3234
{
@@ -35,6 +37,8 @@ public function getName()
3537

3638
/**
3739
* {@inheritdoc}
40+
*
41+
* @return string
3842
*/
3943
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
4044
{
@@ -76,6 +80,8 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
7680

7781
/**
7882
* {@inheritdoc}
83+
*
84+
* @return bool
7985
*/
8086
public function requiresSQLCommentHint(AbstractPlatform $platform)
8187
{

src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ protected function sendHeader($header, $content)
7272

7373
/**
7474
* Override default behavior since we check it in onKernelResponse.
75+
*
76+
* @return bool
7577
*/
7678
protected function headersAccepted()
7779
{

src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php

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

1212
namespace Symfony\Bridge\Monolog\Handler;
1313

14+
use Monolog\Formatter\FormatterInterface;
1415
use Monolog\Formatter\LineFormatter;
1516
use Monolog\Handler\AbstractProcessingHandler;
1617
use Monolog\Logger;
@@ -73,6 +74,8 @@ public function __construct(OutputInterface $output = null, bool $bubble = true,
7374

7475
/**
7576
* {@inheritdoc}
77+
*
78+
* @return bool
7679
*/
7780
public function isHandling(array $record)
7881
{
@@ -81,6 +84,8 @@ public function isHandling(array $record)
8184

8285
/**
8386
* {@inheritdoc}
87+
*
88+
* @return bool
8489
*/
8590
public function handle(array $record)
8691
{
@@ -142,6 +147,8 @@ public static function getSubscribedEvents()
142147

143148
/**
144149
* {@inheritdoc}
150+
*
151+
* @return void
145152
*/
146153
protected function write(array $record)
147154
{
@@ -151,6 +158,8 @@ protected function write(array $record)
151158

152159
/**
153160
* {@inheritdoc}
161+
*
162+
* @return FormatterInterface
154163
*/
155164
protected function getDefaultFormatter()
156165
{

src/Symfony/Bridge/Monolog/Handler/FingersCrossed/HttpCodeActivationStrategy.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function __construct(RequestStack $requestStack, array $exclusions, $acti
4545
$this->exclusions = $exclusions;
4646
}
4747

48+
/**
49+
* @return bool
50+
*/
4851
public function isHandlerActivated(array $record)
4952
{
5053
$isActivated = parent::isHandlerActivated($record);

src/Symfony/Bridge/Monolog/Handler/FingersCrossed/NotFoundActivationStrategy.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function __construct(RequestStack $requestStack, array $excludedUrls, $ac
3434
$this->blacklist = '{('.implode('|', $excludedUrls).')}i';
3535
}
3636

37+
/**
38+
* @return bool
39+
*/
3740
public function isHandlerActivated(array $record)
3841
{
3942
$isActivated = parent::isHandlerActivated($record);

src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ protected function sendHeader($header, $content)
7474

7575
/**
7676
* Override default behavior since we check the user agent in onKernelResponse.
77+
*
78+
* @return bool
7779
*/
7880
protected function headersAccepted()
7981
{

src/Symfony/Bridge/Monolog/Handler/ServerLogHandler.php

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

1212
namespace Symfony\Bridge\Monolog\Handler;
1313

14+
use Monolog\Formatter\FormatterInterface;
1415
use Monolog\Handler\AbstractHandler;
1516
use Monolog\Logger;
1617
use Symfony\Bridge\Monolog\Formatter\VarDumperFormatter;
@@ -38,6 +39,8 @@ public function __construct(string $host, int $level = Logger::DEBUG, bool $bubb
3839

3940
/**
4041
* {@inheritdoc}
42+
*
43+
* @return bool
4144
*/
4245
public function handle(array $record)
4346
{
@@ -77,6 +80,8 @@ public function handle(array $record)
7780

7881
/**
7982
* {@inheritdoc}
83+
*
84+
* @return FormatterInterface
8085
*/
8186
protected function getDefaultFormatter()
8287
{

src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public function setFluentSafe(bool $fluentSafe)
2929

3030
/**
3131
* {@inheritdoc}
32+
*
33+
* @return void
3234
*/
3335
public function generate(\ReflectionClass $originalClass, ClassGenerator $classGenerator)
3436
{

src/Symfony/Bridge/Twig/Extension/AssetExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function __construct(Packages $packages)
3131

3232
/**
3333
* {@inheritdoc}
34+
*
35+
* @return TwigFunction[]
3436
*/
3537
public function getFunctions()
3638
{

src/Symfony/Bridge/Twig/Extension/CodeExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function __construct($fileLinkFormat, string $projectDir, string $charset
4040

4141
/**
4242
* {@inheritdoc}
43+
*
44+
* @return TwigFilter[]
4345
*/
4446
public function getFilters()
4547
{

src/Symfony/Bridge/Twig/Extension/DumpExtension.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Twig\Environment;
1818
use Twig\Extension\AbstractExtension;
1919
use Twig\Template;
20+
use Twig\TokenParser\TokenParserInterface;
2021
use Twig\TwigFunction;
2122

2223
/**
@@ -35,13 +36,19 @@ public function __construct(ClonerInterface $cloner, HtmlDumper $dumper = null)
3536
$this->dumper = $dumper;
3637
}
3738

39+
/**
40+
* @return TwigFunction[]
41+
*/
3842
public function getFunctions()
3943
{
4044
return [
4145
new TwigFunction('dump', [$this, 'dump'], ['is_safe' => ['html'], 'needs_context' => true, 'needs_environment' => true]),
4246
];
4347
}
4448

49+
/**
50+
* @return TokenParserInterface[]
51+
*/
4552
public function getTokenParsers()
4653
{
4754
return [new DumpTokenParser()];

src/Symfony/Bridge/Twig/Extension/ExpressionExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class ExpressionExtension extends AbstractExtension
2424
{
2525
/**
2626
* {@inheritdoc}
27+
*
28+
* @return TwigFunction[]
2729
*/
2830
public function getFunctions()
2931
{

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\Form\ChoiceList\View\ChoiceView;
1616
use Symfony\Component\Form\FormView;
1717
use Twig\Extension\AbstractExtension;
18+
use Twig\TokenParser\TokenParserInterface;
1819
use Twig\TwigFilter;
1920
use Twig\TwigFunction;
2021
use Twig\TwigTest;
@@ -29,6 +30,8 @@ class FormExtension extends AbstractExtension
2930
{
3031
/**
3132
* {@inheritdoc}
33+
*
34+
* @return TokenParserInterface[]
3235
*/
3336
public function getTokenParsers()
3437
{
@@ -40,6 +43,8 @@ public function getTokenParsers()
4043

4144
/**
4245
* {@inheritdoc}
46+
*
47+
* @return TwigFunction[]
4348
*/
4449
public function getFunctions()
4550
{
@@ -60,6 +65,8 @@ public function getFunctions()
6065

6166
/**
6267
* {@inheritdoc}
68+
*
69+
* @return TwigFilter[]
6370
*/
6471
public function getFilters()
6572
{
@@ -71,6 +78,8 @@ public function getFilters()
7178

7279
/**
7380
* {@inheritdoc}
81+
*
82+
* @return TwigTest[]
7483
*/
7584
public function getTests()
7685
{

src/Symfony/Bridge/Twig/Extension/HttpFoundationExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public function __construct($urlHelper)
5757

5858
/**
5959
* {@inheritdoc}
60+
*
61+
* @return TwigFunction[]
6062
*/
6163
public function getFunctions()
6264
{

src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
*/
2323
class HttpKernelExtension extends AbstractExtension
2424
{
25+
/**
26+
* @return TwigFunction[]
27+
*/
2528
public function getFunctions()
2629
{
2730
return [

src/Symfony/Bridge/Twig/Extension/LogoutUrlExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function __construct(LogoutUrlGenerator $generator)
3131

3232
/**
3333
* {@inheritdoc}
34+
*
35+
* @return TwigFunction[]
3436
*/
3537
public function getFunctions()
3638
{

src/Symfony/Bridge/Twig/Extension/RoutingExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function __construct(UrlGeneratorInterface $generator)
3434

3535
/**
3636
* {@inheritdoc}
37+
*
38+
* @return TwigFunction[]
3739
*/
3840
public function getFunctions()
3941
{

src/Symfony/Bridge/Twig/Extension/SecurityExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function isGranted($role, $object = null, $field = null)
5050

5151
/**
5252
* {@inheritdoc}
53+
*
54+
* @return TwigFunction[]
5355
*/
5456
public function getFunctions()
5557
{

0 commit comments

Comments
 (0)