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

+1-1
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

+6-2
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

+3-1
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

+3-1
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

+3-1
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

+3-1
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

+3-1
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

+6-2
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

+9-3
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

+6-2
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.

lib/controller/default/actions/actions.class.php

+18-6
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,42 @@ class defaultActions extends sfActions
2020
/**
2121
* Congratulations page for creating an application.
2222
*/
23-
public function executeIndex() {}
23+
public function executeIndex()
24+
{
25+
}
2426

2527
/**
2628
* Congratulations page for creating a module.
2729
*/
28-
public function executeModule() {}
30+
public function executeModule()
31+
{
32+
}
2933

3034
/**
3135
* Error page for page not found (404) error.
3236
*/
33-
public function executeError404() {}
37+
public function executeError404()
38+
{
39+
}
3440

3541
/**
3642
* Warning page for restricted area - requires login.
3743
*/
38-
public function executeSecure() {}
44+
public function executeSecure()
45+
{
46+
}
3947

4048
/**
4149
* Warning page for restricted area - requires credentials.
4250
*/
43-
public function executeLogin() {}
51+
public function executeLogin()
52+
{
53+
}
4454

4555
/**
4656
* Module disabled in settings.yml.
4757
*/
48-
public function executeDisabled() {}
58+
public function executeDisabled()
59+
{
60+
}
4961
}

lib/debug/sfWebDebugPanel.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public function __construct(sfWebDebug $webDebug)
3535
*
3636
* @return string The URL link
3737
*/
38-
public function getTitleUrl() {}
38+
public function getTitleUrl()
39+
{
40+
}
3941

4042
/**
4143
* Gets the text for the link.

lib/debug/sfWebDebugPanelCache.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ public function getPanelTitle()
3939
return 'reload and ignore cache';
4040
}
4141

42-
public function getPanelContent() {}
42+
public function getPanelContent()
43+
{
44+
}
4345
}

lib/debug/sfWebDebugPanelMemory.class.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ public function getTitle()
2424
return '<img src="'.$this->webDebug->getOption('image_root_path').'/memory.png" alt="Memory" /> '.$totalMemory.' KB';
2525
}
2626

27-
public function getPanelTitle() {}
27+
public function getPanelTitle()
28+
{
29+
}
2830

29-
public function getPanelContent() {}
31+
public function getPanelContent()
32+
{
33+
}
3034
}

lib/debug/sfWebDebugPanelSymfonyVersion.class.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ public function getTitle()
2222
return '<span id="sfWebDebugSymfonyVersion">'.SYMFONY_VERSION.'</span>';
2323
}
2424

25-
public function getPanelTitle() {}
25+
public function getPanelTitle()
26+
{
27+
}
2628

27-
public function getPanelContent() {}
29+
public function getPanelContent()
30+
{
31+
}
2832
}

lib/exception/sfCacheException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfCacheException extends sfException {}
20+
class sfCacheException extends sfException
21+
{
22+
}

lib/exception/sfConfigurationException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
*
1919
* @version SVN: $Id$
2020
*/
21-
class sfConfigurationException extends sfException {}
21+
class sfConfigurationException extends sfException
22+
{
23+
}

lib/exception/sfControllerException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
*
1919
* @version SVN: $Id$
2020
*/
21-
class sfControllerException extends sfException {}
21+
class sfControllerException extends sfException
22+
{
23+
}

lib/exception/sfDatabaseException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfDatabaseException extends sfException {}
20+
class sfDatabaseException extends sfException
21+
{
22+
}

lib/exception/sfFactoryException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
*
1919
* @version SVN: $Id$
2020
*/
21-
class sfFactoryException extends sfException {}
21+
class sfFactoryException extends sfException
22+
{
23+
}

lib/exception/sfFileException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfFileException extends sfException {}
20+
class sfFileException extends sfException
21+
{
22+
}

lib/exception/sfFilterException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
*
1919
* @version SVN: $Id$
2020
*/
21-
class sfFilterException extends sfException {}
21+
class sfFilterException extends sfException
22+
{
23+
}

lib/exception/sfForwardException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
*
1919
* @version SVN: $Id$
2020
*/
21-
class sfForwardException extends sfException {}
21+
class sfForwardException extends sfException
22+
{
23+
}

lib/exception/sfInitializationException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfInitializationException extends sfException {}
20+
class sfInitializationException extends sfException
21+
{
22+
}

lib/exception/sfParseException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
*
1919
* @version SVN: $Id$
2020
*/
21-
class sfParseException extends sfException {}
21+
class sfParseException extends sfException
22+
{
23+
}

lib/exception/sfRenderException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfRenderException extends sfException {}
20+
class sfRenderException extends sfException
21+
{
22+
}

lib/exception/sfSecurityException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfSecurityException extends sfException {}
20+
class sfSecurityException extends sfException
21+
{
22+
}

lib/exception/sfStopException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ class sfStopException extends sfException
2020
/**
2121
* Stops the current action.
2222
*/
23-
public function printStackTrace() {}
23+
public function printStackTrace()
24+
{
25+
}
2426
}

lib/exception/sfStorageException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
*
1919
* @version SVN: $Id$
2020
*/
21-
class sfStorageException extends sfException {}
21+
class sfStorageException extends sfException
22+
{
23+
}

lib/exception/sfViewException.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfViewException extends sfException {}
20+
class sfViewException extends sfException
21+
{
22+
}

lib/form/addon/sfFormFilter.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
*
1818
* @version SVN: $Id$
1919
*/
20-
class sfFormFilter extends BaseForm {}
20+
class sfFormFilter extends BaseForm
21+
{
22+
}

lib/form/sfForm.class.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,16 @@ public function __clone()
120120
*
121121
* @see configure()
122122
*/
123-
public function setup() {}
123+
public function setup()
124+
{
125+
}
124126

125127
/**
126128
* Configures the current form.
127129
*/
128-
public function configure() {}
130+
public function configure()
131+
{
132+
}
129133

130134
/**
131135
* Renders the widget schema associated with this form.

0 commit comments

Comments
 (0)