File tree 3 files changed +8
-8
lines changed
tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector
18
18
19
19
class Broadcast
20
20
{
21
- public function __construct (private readonly \Illuminate \Contracts \Broadcasting \Factory $ broadcastingFactory )
21
+ public function __construct (private readonly \Illuminate \Contracts \Broadcasting \Factory $ factory )
22
22
{
23
23
}
24
24
public function action ()
25
25
{
26
- return $ this ->broadcastingFactory ->event ('template.blade ' );
26
+ return $ this ->factory ->event ('template.blade ' );
27
27
}
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector
23
23
24
24
class Config
25
25
{
26
- public function __construct (private readonly \Illuminate \Contracts \Config \Repository $ configRepository )
26
+ public function __construct (private readonly \Illuminate \Contracts \Config \Repository $ repository )
27
27
{
28
28
}
29
29
public function actionGet ()
30
30
{
31
- $ value = $ this ->configRepository ->get ('value ' );
31
+ $ value = $ this ->repository ->get ('value ' );
32
32
}
33
33
34
34
public function actionSet ($ value )
35
35
{
36
- $ this ->configRepository ->set (['value ' => $ value ]);
36
+ $ this ->repository ->set (['value ' => $ value ]);
37
37
}
38
38
}
39
39
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector
19
19
20
20
class View
21
21
{
22
- public function __construct (private readonly \Illuminate \Contracts \View \Factory $ viewFactory )
22
+ public function __construct (private readonly \Illuminate \Contracts \View \Factory $ factory )
23
23
{
24
24
}
25
25
public function action ()
26
26
{
27
- $ template = $ this ->viewFactory ->make ('template.blade ' );
28
- $ viewFactory = $ this ->viewFactory ;
27
+ $ template = $ this ->factory ->make ('template.blade ' );
28
+ $ viewFactory = $ this ->factory ;
29
29
}
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments