File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
app/code/Magento/PageCache Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -62,20 +62,20 @@ public function getUris()
62
62
foreach ($ configuredHosts as $ host ) {
63
63
$ servers [] = UriFactory::factory ('' )
64
64
->setHost ($ host ['host ' ])
65
- ->setPort (isset ($ host ['port ' ]) ? $ host ['port ' ] : self ::DEFAULT_PORT )
66
- ;
65
+ ->setPort (isset ($ host ['port ' ]) ? $ host ['port ' ] : self ::DEFAULT_PORT );
67
66
}
68
67
} elseif ($ this ->request ->getHttpHost ()) {
69
- $ servers [] = UriFactory::factory ('' )->setHost ($ this ->request ->getHttpHost ())->setPort (self ::DEFAULT_PORT );
68
+ $ servers [] = UriFactory::factory ('' )
69
+ ->setHost ($ this ->request ->getHttpHost ())
70
+ ->setPort (self ::DEFAULT_PORT );
70
71
} else {
71
72
$ servers [] = UriFactory::factory ($ this ->urlBuilder ->getUrl ('* ' , ['_nosid ' => true ]));
72
73
}
73
74
74
- foreach ($ servers as $ key => $ value ) {
75
+ foreach (array_keys ( $ servers) as $ key ) {
75
76
$ servers [$ key ]->setScheme ('http ' )
76
77
->setPath ('/ ' )
77
- ->setQuery (null )
78
- ;
78
+ ->setQuery (null );
79
79
}
80
80
return $ servers ;
81
81
}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function testGetUris(
81
81
}
82
82
}
83
83
84
- foreach ($ uris as $ key => $ value ) {
84
+ foreach (array_keys ( $ uris) as $ key ) {
85
85
$ uris [$ key ]->setScheme ('http ' )
86
86
->setPath ('/ ' )
87
87
->setQuery (null );
You can’t perform that action at this time.
0 commit comments