File tree Expand file tree Collapse file tree 6 files changed +7
-15
lines changed
Expand file tree Collapse file tree 6 files changed +7
-15
lines changed Original file line number Diff line number Diff line change 44
55use Nextcloud \Rector \Rector \LegacyGetterToOcpServerGetRector ;
66use Nextcloud \Rector \Rector \OcServerToOcpServerRector ;
7+ use Nextcloud \Rector \Rector \OcpUtilAddScriptRector ;
78use Nextcloud \Rector \ValueObject \LegacyGetterToOcpServerGet ;
89use Rector \Config \RectorConfig ;
910
1011return static function (RectorConfig $ rectorConfig ): void {
1112 $ rectorConfig ->rules ([
1213 OcServerToOcpServerRector::class,
14+ OcpUtilAddScriptRector::class,
1315 ]);
1416 $ rectorConfig ->ruleWithConfiguration (
1517 LegacyGetterToOcpServerGetRector::class,
Original file line number Diff line number Diff line change 33declare (strict_types=1 );
44
55use Nextcloud \Rector \Rector \RenameParameterRector ;
6+ use Nextcloud \Rector \Set \NextcloudSets ;
67use Nextcloud \Rector \ValueObject \RenameParameter ;
78use Rector \Config \RectorConfig ;
89use Rector \Php80 \Rector \Class_ \AnnotationToAttributeRector ;
910use Rector \Php80 \ValueObject \AnnotationToAttribute ;
1011
1112return static function (RectorConfig $ rectorConfig ): void {
13+ $ rectorConfig ->sets ([NextcloudSets::NEXTCLOUD_25 ]);
1214 $ rectorConfig ->ruleWithConfiguration (
1315 AnnotationToAttributeRector::class,
1416 [
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use Nextcloud \Rector \Set \NextcloudSets ;
56use Rector \Config \RectorConfig ;
67use Rector \Php80 \Rector \Class_ \AnnotationToAttributeRector ;
78use Rector \Php80 \ValueObject \AnnotationToAttribute ;
89
910return static function (RectorConfig $ rectorConfig ): void {
11+ $ rectorConfig ->sets ([NextcloudSets::NEXTCLOUD_26 ]);
1012 $ rectorConfig ->ruleWithConfiguration (
1113 AnnotationToAttributeRector::class,
1214 [
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 */
1212final class NextcloudSets implements SetListInterface
1313{
14- public const NEXTCLOUD_ALL = __DIR__ . '/../../config/nextcloud-all/nextcloud-all-deprecations.php ' ;
1514 public const NEXTCLOUD_25 = __DIR__ . '/../../config/nextcloud-25/nextcloud-25-deprecations.php ' ;
1615 public const NEXTCLOUD_26 = __DIR__ . '/../../config/nextcloud-26/nextcloud-26-deprecations.php ' ;
1716 public const NEXTCLOUD_27 = __DIR__ . '/../../config/nextcloud-27/nextcloud-27-deprecations.php ' ;
Original file line number Diff line number Diff line change 77
88return RectorConfig::configure ()
99 ->withSets ([
10- NextcloudSets::NEXTCLOUD_ALL ,
11- NextcloudSets::NEXTCLOUD_25 ,
10+ NextcloudSets::NEXTCLOUD_26 ,
1211 ]);
You can’t perform that action at this time.
0 commit comments