Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit904ce68

Browse files
committed
Add missing PHPdoc return types
1 parent5a52dd8 commit904ce68

File tree

120 files changed

+807
-0
lines changed

Some content is hidden

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

120 files changed

+807
-0
lines changed

‎src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ public function getConnections()
107107
return$this->data['connections'];
108108
}
109109

110+
/**
111+
* @return int
112+
*/
110113
publicfunctiongetQueryCount()
111114
{
112115
returnarray_sum(array_map('count',$this->data['queries']));

‎src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public function create(ContainerBuilder $container, string $id, array $config)
4343
;
4444
}
4545

46+
/**
47+
* @return string
48+
*/
4649
publicfunctiongetKey()
4750
{
4851
return$this->key;

‎src/Symfony/Bridge/PhpUnit/ClassExistsMock.php‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,39 @@ public static function withMockedEnums(array $enums)
4141
self::$classes +=$enums;
4242
}
4343

44+
/**
45+
* @return bool
46+
*/
4447
publicstaticfunctionclass_exists($name,$autoload =true)
4548
{
4649
$name =ltrim($name,'\\');
4750

4851
returnisset(self::$classes[$name]) ? (bool)self::$classes[$name] :\class_exists($name,$autoload);
4952
}
5053

54+
/**
55+
* @return bool
56+
*/
5157
publicstaticfunctioninterface_exists($name,$autoload =true)
5258
{
5359
$name =ltrim($name,'\\');
5460

5561
returnisset(self::$classes[$name]) ? (bool)self::$classes[$name] :\interface_exists($name,$autoload);
5662
}
5763

64+
/**
65+
* @return bool
66+
*/
5867
publicstaticfunctiontrait_exists($name,$autoload =true)
5968
{
6069
$name =ltrim($name,'\\');
6170

6271
returnisset(self::$classes[$name]) ? (bool)self::$classes[$name] :\trait_exists($name,$autoload);
6372
}
6473

74+
/**
75+
* @return bool
76+
*/
6577
publicstaticfunctionenum_exists($name,$autoload =true)
6678
{
6779
$name =ltrim($name,'\\');

‎src/Symfony/Bridge/PhpUnit/ClockMock.php‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ class ClockMock
1919
{
2020
privatestatic$now;
2121

22+
/**
23+
* @return bool|null
24+
*/
2225
publicstaticfunctionwithClockMock($enable =null)
2326
{
2427
if (null ===$enable) {
@@ -30,6 +33,9 @@ public static function withClockMock($enable = null)
3033
returnnull;
3134
}
3235

36+
/**
37+
* @return int
38+
*/
3339
publicstaticfunctiontime()
3440
{
3541
if (null ===self::$now) {
@@ -39,6 +45,9 @@ public static function time()
3945
return (int)self::$now;
4046
}
4147

48+
/**
49+
* @return int
50+
*/
4251
publicstaticfunctionsleep($s)
4352
{
4453
if (null ===self::$now) {
@@ -72,6 +81,9 @@ public static function microtime($asFloat = false)
7281
returnsprintf('%0.6f00 %d',self::$now - (int)self::$now, (int)self::$now);
7382
}
7483

84+
/**
85+
* @return string
86+
*/
7587
publicstaticfunctiondate($format,$timestamp =null)
7688
{
7789
if (null ===$timestamp) {
@@ -81,6 +93,9 @@ public static function date($format, $timestamp = null)
8193
return\date($format,$timestamp);
8294
}
8395

96+
/**
97+
* @return string
98+
*/
8499
publicstaticfunctiongmdate($format,$timestamp =null)
85100
{
86101
if (null ===$timestamp) {
@@ -90,6 +105,9 @@ public static function gmdate($format, $timestamp = null)
90105
return\gmdate($format,$timestamp);
91106
}
92107

108+
/**
109+
* @return array|int|float
110+
*/
93111
publicstaticfunctionhrtime($asNumber =false)
94112
{
95113
$ns = (self::$now - (int)self::$now) *1000000000;

‎src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Configuration.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ public function isGeneratingBaseline()
268268
return$this->generateBaseline;
269269
}
270270

271+
/**
272+
* @return string
273+
*/
271274
publicfunctiongetBaselineFile()
272275
{
273276
return$this->baselineFile;
@@ -314,11 +317,17 @@ public function verboseOutput($group)
314317
return$this->verboseOutput[$group];
315318
}
316319

320+
/**
321+
* @return bool
322+
*/
317323
publicfunctionshouldWriteToLogFile()
318324
{
319325
returnnull !==$this->logFile;
320326
}
321327

328+
/**
329+
* @return string|null
330+
*/
322331
publicfunctiongetLogFile()
323332
{
324333
return$this->logFile;

‎src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/DeprecationGroup.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public function count()
6363
return$this->count;
6464
}
6565

66+
/**
67+
* @return array
68+
*/
6669
publicfunctionnotices()
6770
{
6871
return$this->deprecationNotices;

‎src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/DeprecationNotice.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function addProceduralOccurrence()
3737
++$this->count;
3838
}
3939

40+
/**
41+
* @return array
42+
*/
4043
publicfunctiongetCountsByCaller()
4144
{
4245
return$this->countsByCaller;

‎src/Symfony/Bridge/PhpUnit/DnsMock.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public static function withMockedHosts(array $hosts)
4242
self::$hosts =$hosts;
4343
}
4444

45+
/**
46+
* @return bool
47+
*/
4548
publicstaticfunctioncheckdnsrr($hostname,$type ='MX')
4649
{
4750
if (!self::$hosts) {
@@ -63,6 +66,9 @@ public static function checkdnsrr($hostname, $type = 'MX')
6366
returnfalse;
6467
}
6568

69+
/**
70+
* @return bool
71+
*/
6672
publicstaticfunctiongetmxrr($hostname, &$mxhosts, &$weight =null)
6773
{
6874
if (!self::$hosts) {

‎src/Symfony/Bridge/Twig/Command/LintCommand.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ private function getFilesInfo(array $filenames): array
140140
return$filesInfo;
141141
}
142142

143+
/**
144+
* @return iterable
145+
*/
143146
protectedfunctionfindFiles(string$filename)
144147
{
145148
if (is_file($filename)) {

‎src/Symfony/Bridge/Twig/DataCollector/TwigDataCollector.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ public function getMacroCount()
108108
return$this->getComputedData('macro_count');
109109
}
110110

111+
/**
112+
* @return Markup
113+
*/
111114
publicfunctiongetHtmlCallGraph()
112115
{
113116
$dumper =newHtmlDumper();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp