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

Commitcfee93a

Browse files
committed
Fixes after review
1 parentbf99bfd commitcfee93a

File tree

5 files changed

+20
-26
lines changed

5 files changed

+20
-26
lines changed

‎src/Symfony/Bridge/Monolog/Handler/MailerHandler.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ private function doWrite(array|LogRecord $record): void
7777
*
7878
* @param string $content formatted email body to be sent
7979
* @param array $records the array of log records that formed this content
80+
*
81+
* @return void
8082
*/
81-
protectedfunctionsend(string$content,array$records):void
83+
protectedfunctionsend(string$content,array$records)
8284
{
8385
$this->mailer->send($this->buildMessage($content,$records));
8486
}

‎src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ public function reset(): void
5252
unset($this->commandData);
5353
}
5454

55-
publicfunctionaddCommandData(ConsoleEvent$event):void
55+
/**
56+
* @return void
57+
*/
58+
publicfunctionaddCommandData(ConsoleEvent$event)
5659
{
5760
$this->commandData = [
5861
'name' =>$event->getCommand()->getName(),

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,18 @@ public function addNotice(): void
5050

5151
/**
5252
* @param string $message
53-
*
54-
* @return DeprecationNotice
5553
*/
56-
privatefunctiondeprecationNotice($message)
54+
privatefunctiondeprecationNotice($message):DeprecationNotice
5755
{
5856
return$this->deprecationNotices[$message] ??$this->deprecationNotices[$message] =newDeprecationNotice();
5957
}
6058

61-
publicfunctioncount()
59+
publicfunctioncount():int
6260
{
6361
return$this->count;
6462
}
6563

66-
/**
67-
* @return array
68-
*/
69-
publicfunctionnotices()
64+
publicfunctionnotices():array
7065
{
7166
return$this->deprecationNotices;
7267
}

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@ public function addProceduralOccurrence(): void
3737
++$this->count;
3838
}
3939

40-
/**
41-
* @return array
42-
*/
43-
publicfunctiongetCountsByCaller()
40+
publicfunctiongetCountsByCaller():array
4441
{
4542
return$this->countsByCaller;
4643
}
4744

48-
publicfunctioncount()
45+
publicfunctioncount():int
4946
{
5047
return$this->count;
5148
}

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,40 +78,37 @@ public function lateCollect(): void
7878
$templateFinder($this->profile);
7979
}
8080

81-
publicfunctiongetTime()
81+
publicfunctiongetTime():int
8282
{
8383
return$this->getProfile()->getDuration() *1000;
8484
}
8585

86-
publicfunctiongetTemplateCount()
86+
publicfunctiongetTemplateCount():int
8787
{
8888
return$this->getComputedData('template_count');
8989
}
9090

91-
publicfunctiongetTemplatePaths()
91+
publicfunctiongetTemplatePaths():array
9292
{
9393
return$this->data['template_paths'];
9494
}
9595

96-
publicfunctiongetTemplates()
96+
publicfunctiongetTemplates():array
9797
{
9898
return$this->getComputedData('templates');
9999
}
100100

101-
publicfunctiongetBlockCount()
101+
publicfunctiongetBlockCount():int
102102
{
103103
return$this->getComputedData('block_count');
104104
}
105105

106-
publicfunctiongetMacroCount()
106+
publicfunctiongetMacroCount():int
107107
{
108108
return$this->getComputedData('macro_count');
109109
}
110110

111-
/**
112-
* @return Markup
113-
*/
114-
publicfunctiongetHtmlCallGraph()
111+
publicfunctiongetHtmlCallGraph():Markup
115112
{
116113
$dumper =newHtmlDumper();
117114
$dump =$dumper->dump($this->getProfile());
@@ -132,7 +129,7 @@ public function getHtmlCallGraph()
132129
returnnewMarkup($dump,'UTF-8');
133130
}
134131

135-
publicfunctiongetProfile()
132+
publicfunctiongetProfile():Profile
136133
{
137134
return$this->profile ??=unserialize($this->data['profile'], ['allowed_classes' => ['Twig_Profiler_Profile', Profile::class]]);
138135
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp