Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?php

$potentialDirs = ['/lib', '/src', '/test', '/tests'];
// Load custom fixers
require_once __DIR__ . '/src/PhpCsFixer/RemovePhpVersionCommentFixer.php';
require_once __DIR__ . '/src/PhpCsFixer/UpdateCopyrightYearFixer.php';

// Only format src/ and test/ directories (exclude lib/ for legacy PSR-0 code)
$potentialDirs = ['/src', '/test', '/tests'];

$finder = (new PhpCsFixer\Finder());
foreach ($potentialDirs as $dir) {
Expand All @@ -12,12 +17,22 @@

$finder->exclude(['fixtures']);

return (new PhpCsFixer\Config())
$config = (new PhpCsFixer\Config())
->setRules([
'@PER-CS' => true,
'@PHP83Migration' => true,
'@PHP8x3Migration' => true,
'php_unit_test_class_requires_covers' => true,
'nullable_type_declaration_for_default_null_value' => true,
'Horde/remove_php_version_comment' => true,
'Horde/update_copyright_year' => true,
])
->setFinder($finder)
;

// Register custom fixers
$config->registerCustomFixers([
new \Horde\Components\PhpCsFixer\RemovePhpVersionCommentFixer(),
new \Horde\Components\PhpCsFixer\UpdateCopyrightYearFixer(),
]);

return $config;
3 changes: 2 additions & 1 deletion box.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
],
"files": [
"LICENSE",
"bin/horde-components"
"bin/horde-components",
".php-cs-fixer.dist.php"
],
"finder": [
{
Expand Down
4 changes: 1 addition & 3 deletions src/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Represents a component.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -22,7 +20,7 @@
/**
* Represents a component.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/Archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Represents a component archive.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -22,7 +20,7 @@
/**
* Represents a component archive.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Represents base functionality for a component.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand Down Expand Up @@ -32,7 +30,7 @@
/**
* Represents base functionality for a component.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/Dependency.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Horde\Components\Component\Dependency:: wraps PEAR dependency information.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -18,7 +16,7 @@
/**
* Horde\Components\Component\Dependency:: wraps PEAR dependency information.
*
* Copyright 2010-2024 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/DependencyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Horde\Components\Component\Dependencies:: provides dependency handling mechanisms.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -19,7 +17,7 @@
/**
* Horde\Components\Component\Dependencies:: provides dependency handling mechanisms.
*
* Copyright 2010-2024 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Factory.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/Identify.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Identifies the requested component based on an argument and delivers a
* corresponding component instance.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -23,7 +21,7 @@
* Identifies the requested component based on an argument and delivers a
* corresponding component instance.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/Matcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Match an expression against a component.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -16,7 +14,7 @@
/**
* Match an expression against a component.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/Remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Represents a remote component.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -21,7 +19,7 @@
/**
* Represents a remote component.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Component/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Horde\Components\Component\Resolver:: resolves component names and dependencies
* into component representations.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -22,7 +20,7 @@
* Horde\Components\Component\Resolver:: resolves component names and dependencies
* into component representations.
*
* Copyright 2010-2024 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Source.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Task/Dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Components\Component\Task\Dependencies:: Declare and receive dependencies
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Task/SystemCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Components\Component\Task\SystemCall:: Run system calls from tasks
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Task/SystemCallResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Components\Component\Task\SystemCallResult:: Holds Output, Return code etc
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Components.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* The Components:: class is the entry point for the various component actions
* provided by the package.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand Down Expand Up @@ -53,7 +51,7 @@
* The Components:: class is the entry point for the various component actions
* provided by the package.
*
* Copyright 2010-2024 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Config/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* specific configuration values by combining defaults and options provided at
* runtime.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -23,7 +21,7 @@
* specific configuration values by combining defaults and options provided at
* runtime.
*
* Copyright 2010-2024 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Config/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Base:: provides common utilities for the configuration
* handlers.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -22,7 +20,7 @@
* Base:: provides common utilities for the configuration
* handlers.
*
* Copyright 2009-2024 Horde LLC (http://www.horde.org/)
* Copyright 2009-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Config/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Bootstrap:: class provides simple options for the bootstrap
* process.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -20,7 +18,7 @@
* Bootstrap:: class provides simple options for the bootstrap
* process.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Config/CliConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Components_Config_Cli:: class provides central options for the command line
* configuration of the components tool.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -24,7 +22,7 @@
* Config\Cli:: class provides central options for the command line
* configuration of the components tool.
*
* Copyright 2009-2024 Horde LLC (http://www.horde.org/)
* Copyright 2009-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Config/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Config\File:: class provides simple options for the bootstrap
* process.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -20,7 +18,7 @@
* Config\File:: class provides simple options for the bootstrap
* process.
*
* Copyright 2011-2024 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Configs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Components_Configs:: class represents configuration for the
* Horde component tool.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -20,7 +18,7 @@
* Components_Configs:: class represents configuration for the
* Horde component tool.
*
* Copyright 2009-2024 Horde LLC (http://www.horde.org/)
* Copyright 2009-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
4 changes: 1 addition & 3 deletions src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Constants:: provides the constants for this package.
*
* PHP Version 7
*
* @category Horde
* @package Components
* @author Gunnar Wrobel <wrobel@pardus.de>
Expand All @@ -16,7 +14,7 @@
/**
* Constants:: provides the constants for this package.
*
* Copyright 2010-2024 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
Expand Down
Loading
Loading