-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer updates #15
Closed
Closed
Composer updates #15
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pl38 patch 1
feat(.gitignore): add common directories and files to ignore list Added patterns to .gitignore to exclude log files, PHP CS Fixer cache, PHPStorm metadata, build artifacts, node_modules, storage directory, ray.php, and PHPStan baseline. This prevents unnecessary files from being tracked in version control, keeping the repository clean. Ref: composer-updates ```
…composer-updates) Add a `.php-cs-fixer.php` configuration file to define rules for automatic code style corrections in the project. This includes PSR-12 compliance and an assortment of additional rules to ensure a consistent coding standard.```
refactor(tests): update test cases to use Pest PHP Change test cases to use the Pest PHP testing framework. Refactor existing test cases in MetricFactoryTest.php, SizeMetricTest.php, and others to use Pest PHP functions such as test and beforeEach. Remove unnecessary use of namespaces and class structures for test cases, simplifying the codebase. Issue: composer-updates ```
style: apply PSR-12 formatting and add trailing commas Apply PSR-12 formatting standards in AbstractKeywordDensityMetric.php, ensuring consistency in spacing and adding trailing commas to arrays. Additionally, cast text to string before applying `strtolower` and `preg_replace` for clarity. ```
style: align class constants and improve whitespace in AbstractMetric This commit adjusts the alignment of class constants to enhance readability. It also introduces additional line breaks to separate logical blocks of code within methods, adhering to coding standards. Refs: composer-updates ```
refactor: update type declarations and default handling in AbstractKeywordDensityMetric (#composer-updates) Update type declarations for class properties and constructor parameters. Refactor default input data handling to check for empty array. Simplify calculateKeywordsPercentage and getWords methods. Remove redundant comments and code cleanup. ```
refactor(tests): move test cases to feature namespace Moved all test cases from `TestCase` to `Feature` namespace, with appropriate adjustments to the test infrastructure. This includes namespace changes, strict type declarations, and renaming of the base test case class. Also, the example test was amended to be more expressive. ```
feat: add strict types and improve parameter typing for Cache - Enforce strict typing with `declare(strict_types=1)`. - Introduce `use DateInterval` to support more precise TTL definitions. - Refactor `__construct` method to accept `int|null` for `$ttl` and default to 300 if not provided. - Update `set` method signature to accept `mixed` type for `$value` and `DateInterval|int|null` for `$ttl`, enhancing flexibility and type safety. Related to composer-updates. ```
refactor: type hint properties and methods in HeadersMetric (#composer-updates) - Add type hints to $description and $results properties. - Specify return type for analyze() and setUpResultsConditions() methods. - Add Override attribute to analyze() and setUpResultsConditions(). - Ensure type compatibility for $inputData parameter in constructor. ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.