File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function __construct(
39
39
/**
40
40
* Gets partners
41
41
*
42
- * @return bool|string
42
+ * @return array
43
43
*/
44
44
public function getPartners ()
45
45
{
Original file line number Diff line number Diff line change @@ -62,8 +62,7 @@ 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
68
$ servers [] = UriFactory::factory ('' )->setHost ($ this ->request ->getHttpHost ())->setPort (self ::DEFAULT_PORT );
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function beforeSave()
28
28
throw new LocalizedException (
29
29
new Phrase (
30
30
'Access List value "%1" is not valid. '
31
- .'Please use only IP addresses and host names. ' ,
31
+ . 'Please use only IP addresses and host names. ' ,
32
32
[$ value ]
33
33
)
34
34
);
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ private function getReplacements()
119
119
private function getRegexForDesignExceptions ()
120
120
{
121
121
$ result = '' ;
122
- $ tpl = "%s (req.http.user-agent ~ \"%s \") { \n" . " hash_data( \"%s \"); \n" . " } " ;
122
+ $ tpl = "%s (req.http.user-agent ~ \"%s \") { \n" . " hash_data( \"%s \"); \n" . " } " ;
123
123
124
124
$ expressions = $ this ->getDesignExceptions ();
125
125
@@ -157,7 +157,7 @@ private function getTransformedAccessList()
157
157
$ result = array_reduce (
158
158
$ this ->getAccessList (),
159
159
function ($ ips , $ ip ) use ($ tpl ) {
160
- return $ ips. sprintf ($ tpl , trim ($ ip )) . "\n" ;
160
+ return $ ips . sprintf ($ tpl , trim ($ ip )) . "\n" ;
161
161
},
162
162
''
163
163
);
You can’t perform that action at this time.
0 commit comments