Skip to content

Commit 21c70f1

Browse files
committed
Fix(php-cs-fixer) Fix php-cs-fixer to v3.45 and apply code fixes
1 parent 2a68033 commit 21c70f1

File tree

222 files changed

+866
-290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+866
-290
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: shivammathur/setup-php@v2
1717
with:
1818
php-version: 8.2
19-
tools: php-cs-fixer, cs2pr
19+
tools: php-cs-fixer:3.45, cs2pr
2020

2121
- uses: actions/cache@v3
2222
with:

lib/action/sfAction.class.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,18 @@ public function initialize($context, $moduleName, $actionName)
4646
*
4747
* By default, this method is empty.
4848
*/
49-
public function preExecute() {}
49+
public function preExecute()
50+
{
51+
}
5052

5153
/**
5254
* Execute an application defined process immediately after execution of this sfAction object.
5355
*
5456
* By default, this method is empty.
5557
*/
56-
public function postExecute() {}
58+
public function postExecute()
59+
{
60+
}
5761

5862
/**
5963
* Forwards current action to the default 404 error action.

lib/autoload/sfAutoload.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class sfAutoload
2626
protected $overriden = array();
2727
protected $classes = array();
2828

29-
protected function __construct() {}
29+
protected function __construct()
30+
{
31+
}
3032

3133
/**
3234
* Retrieves the singleton instance of this class.

lib/autoload/sfAutoloadAgain.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ class sfAutoloadAgain
2525
/**
2626
* Constructor.
2727
*/
28-
protected function __construct() {}
28+
protected function __construct()
29+
{
30+
}
2931

3032
/**
3133
* Returns the singleton autoloader.

lib/command/sfCommandArgumentsException.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
*
1616
* @version SVN: $Id$
1717
*/
18-
class sfCommandArgumentsException extends sfCommandException {}
18+
class sfCommandArgumentsException extends sfCommandException
19+
{
20+
}

lib/command/sfCommandException.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
*
1616
* @version SVN: $Id$
1717
*/
18-
class sfCommandException extends sfException {}
18+
class sfCommandException extends sfException
19+
{
20+
}

lib/command/sfFormatter.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public function __construct($maxLineSize = null)
3939
* @param string $name The style name
4040
* @param array $options An array of options
4141
*/
42-
public function setStyle($name, $options = array()) {}
42+
public function setStyle($name, $options = array())
43+
{
44+
}
4345

4446
/**
4547
* Formats a text according to the given parameters.

lib/config/sfApplicationConfiguration.class.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,18 @@ public function __construct($environment, $debug, $rootDir = null, sfEventDispat
6666
*
6767
* Override this method if you want to customize your application configuration.
6868
*/
69-
public function configure() {}
69+
public function configure()
70+
{
71+
}
7072

7173
/**
7274
* Initialized the current configuration.
7375
*
7476
* Override this method if you want to customize your application initialization.
7577
*/
76-
public function initialize() {}
78+
public function initialize()
79+
{
80+
}
7781

7882
public function activate()
7983
{

lib/config/sfPluginConfiguration.class.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ public function __construct(sfProjectConfiguration $configuration, $rootDir = nu
5050
*
5151
* This method can be used when creating a base plugin configuration class for other plugins to extend.
5252
*/
53-
public function setup() {}
53+
public function setup()
54+
{
55+
}
5456

5557
/**
5658
* Configures the plugin.
5759
*
5860
* This method is called before the plugin's classes have been added to sfAutoload.
5961
*/
60-
public function configure() {}
62+
public function configure()
63+
{
64+
}
6165

6266
/**
6367
* Initializes the plugin.
@@ -66,7 +70,9 @@ public function configure() {}
6670
*
6771
* @return bool|null If false sfApplicationConfiguration will look for a config.php (maintains BC with symfony < 1.2)
6872
*/
69-
public function initialize() {}
73+
public function initialize()
74+
{
75+
}
7076

7177
/**
7278
* Returns the plugin root directory.

lib/config/sfProjectConfiguration.class.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ public function __call($method, $arguments)
100100
*
101101
* Override this method if you want to customize your project configuration.
102102
*/
103-
public function setup() {}
103+
public function setup()
104+
{
105+
}
104106

105107
/**
106108
* Loads the project's plugin configurations.
@@ -131,7 +133,9 @@ public function loadPlugins()
131133
*
132134
* Override this method if you want to customize plugin configurations.
133135
*/
134-
public function setupPlugins() {}
136+
public function setupPlugins()
137+
{
138+
}
135139

136140
/**
137141
* Sets the project root directory.

0 commit comments

Comments
 (0)