Skip to content

Commit df89373

Browse files
committed
Fix some docblocks.
1 parent 628271d commit df89373

File tree

7 files changed

+43
-20
lines changed

7 files changed

+43
-20
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Config\Definition\ConfigurationInterface;
1515
use Symfony\Component\Console\Exception\LogicException;
1616
use Symfony\Component\Console\Helper\Table;
17+
use Symfony\Component\Console\Output\OutputInterface;
1718
use Symfony\Component\Console\Style\StyleInterface;
1819
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
1920

@@ -26,6 +27,9 @@
2627
*/
2728
abstract class AbstractConfigCommand extends ContainerDebugCommand
2829
{
30+
/**
31+
* @param OutputInterface|StyleInterface $output
32+
*/
2933
protected function listBundles($output)
3034
{
3135
$title = 'Available registered bundles with their extension alias if available';

src/Symfony/Component/BrowserKit/Cookie.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ public static function fromString($cookie, $url = null)
190190
);
191191
}
192192

193+
/**
194+
* @param string $dateValue
195+
*
196+
* @return string|null
197+
*/
193198
private static function parseDate($dateValue)
194199
{
195200
// trim single quotes around date if present
@@ -207,6 +212,8 @@ private static function parseDate($dateValue)
207212
if (false !== $date = date_create($dateValue, new \DateTimeZone('GMT'))) {
208213
return $date->format('U');
209214
}
215+
216+
return null;
210217
}
211218

212219
/**

src/Symfony/Component/BrowserKit/CookieJar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ public function clear()
111111
/**
112112
* Updates the cookie jar from a response Set-Cookie headers.
113113
*
114-
* @param array $setCookies Set-Cookie headers from an HTTP response
115-
* @param string $uri The base URL
114+
* @param string[] $setCookies Set-Cookie headers from an HTTP response
115+
* @param string $uri The base URL
116116
*/
117117
public function updateFromSetCookie(array $setCookies, $uri = null)
118118
{

src/Symfony/Component/Filesystem/Filesystem.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,11 @@ private function getSchemeAndHierarchy($filename)
743743
return 2 === \count($components) ? [$components[0], $components[1]] : [null, $components[0]];
744744
}
745745

746+
/**
747+
* @param callable $func
748+
*
749+
* @return mixed
750+
*/
746751
private static function box($func)
747752
{
748753
self::$lastError = null;

src/Symfony/Component/Process/Process.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function run($callback = null/*, array $env = []*/)
217217
* This is identical to run() except that an exception is thrown if the process
218218
* exits with a non-zero exit code.
219219
*
220-
* @return self
220+
* @return $this
221221
*
222222
* @throws RuntimeException if PHP was compiled with --enable-sigchild and the enhanced sigchild compatibility mode is not enabled
223223
* @throws ProcessFailedException if the process didn't terminate successfully
@@ -942,7 +942,7 @@ public function getCommandLine()
942942
*
943943
* @param string|array $commandline The command to execute
944944
*
945-
* @return self The current Process instance
945+
* @return $this
946946
*/
947947
public function setCommandLine($commandline)
948948
{
@@ -978,7 +978,7 @@ public function getIdleTimeout()
978978
*
979979
* @param int|float|null $timeout The timeout in seconds
980980
*
981-
* @return self The current Process instance
981+
* @return $this
982982
*
983983
* @throws InvalidArgumentException if the timeout is negative
984984
*/
@@ -996,7 +996,7 @@ public function setTimeout($timeout)
996996
*
997997
* @param int|float|null $timeout The timeout in seconds
998998
*
999-
* @return self The current Process instance
999+
* @return $this
10001000
*
10011001
* @throws LogicException if the output is disabled
10021002
* @throws InvalidArgumentException if the timeout is negative
@@ -1017,7 +1017,7 @@ public function setIdleTimeout($timeout)
10171017
*
10181018
* @param bool $tty True to enabled and false to disable
10191019
*
1020-
* @return self The current Process instance
1020+
* @return $this
10211021
*
10221022
* @throws RuntimeException In case the TTY mode is not supported
10231023
*/
@@ -1058,7 +1058,7 @@ public function isTty()
10581058
*
10591059
* @param bool $bool
10601060
*
1061-
* @return self
1061+
* @return $this
10621062
*/
10631063
public function setPty($bool)
10641064
{
@@ -1098,7 +1098,7 @@ public function getWorkingDirectory()
10981098
*
10991099
* @param string $cwd The new working directory
11001100
*
1101-
* @return self The current Process instance
1101+
* @return $this
11021102
*/
11031103
public function setWorkingDirectory($cwd)
11041104
{
@@ -1130,7 +1130,7 @@ public function getEnv()
11301130
*
11311131
* @param array $env The new environment variables
11321132
*
1133-
* @return self The current Process instance
1133+
* @return $this
11341134
*/
11351135
public function setEnv(array $env)
11361136
{
@@ -1161,7 +1161,7 @@ public function getInput()
11611161
*
11621162
* @param string|int|float|bool|resource|\Traversable|null $input The content
11631163
*
1164-
* @return self The current Process instance
1164+
* @return $this
11651165
*
11661166
* @throws LogicException In case the process is running
11671167
*/
@@ -1195,7 +1195,7 @@ public function getOptions()
11951195
*
11961196
* @param array $options The new options
11971197
*
1198-
* @return self The current Process instance
1198+
* @return $this
11991199
*
12001200
* @deprecated since version 3.3, to be removed in 4.0.
12011201
*/
@@ -1229,7 +1229,7 @@ public function getEnhanceWindowsCompatibility()
12291229
*
12301230
* @param bool $enhance
12311231
*
1232-
* @return self The current Process instance
1232+
* @return $this
12331233
*
12341234
* @deprecated since version 3.3, to be removed in 4.0. Enhanced Windows compatibility will always be enabled.
12351235
*/
@@ -1265,7 +1265,7 @@ public function getEnhanceSigchildCompatibility()
12651265
*
12661266
* @param bool $enhance
12671267
*
1268-
* @return self The current Process instance
1268+
* @return $this
12691269
*
12701270
* @deprecated since version 3.3, to be removed in 4.0.
12711271
*/
@@ -1283,7 +1283,7 @@ public function setEnhanceSigchildCompatibility($enhance)
12831283
*
12841284
* @param bool $inheritEnv
12851285
*
1286-
* @return self The current Process instance
1286+
* @return $this
12871287
*/
12881288
public function inheritEnvironmentVariables($inheritEnv = true)
12891289
{

src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public function __construct(RequestStack $requestStack = null, UrlGeneratorInter
4141
/**
4242
* Registers a firewall's LogoutListener, allowing its URL to be generated.
4343
*
44-
* @param string $key The firewall key
45-
* @param string $logoutPath The path that starts the logout process
46-
* @param string $csrfTokenId The ID of the CSRF token
47-
* @param string $csrfParameter The CSRF token parameter name
48-
* @param CsrfTokenManagerInterface|null $csrfTokenManager A CsrfTokenManagerInterface instance
44+
* @param string $key The firewall key
45+
* @param string $logoutPath The path that starts the logout process
46+
* @param string|null $csrfTokenId The ID of the CSRF token
47+
* @param string|null $csrfParameter The CSRF token parameter name
48+
* @param string|null $context The listener context
4949
*/
5050
public function registerListener($key, $logoutPath, $csrfTokenId, $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = null/*, string $context = null*/)
5151
{

src/Symfony/Component/Workflow/Registry.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ public function get($subject, $workflowName = null)
6363
return $matched;
6464
}
6565

66+
/**
67+
* @param SupportStrategyInterface $supportStrategy
68+
* @param object $subject
69+
* @param string|null $workflowName
70+
*
71+
* @return bool
72+
*/
6673
private function supports(Workflow $workflow, $supportStrategy, $subject, $workflowName)
6774
{
6875
if (null !== $workflowName && $workflowName !== $workflow->getName()) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy