composer require --dev phpro/grumphp-shim
This file contains hidden or 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
| <?php | |
| /** | |
| * 1. Dummy Test Example | |
| */ | |
| final class PaymentProcessor | |
| { | |
| public function __construct(private LoggerInterface $logger) {} | |
| public function processPayment(float $amount): void |
This file contains hidden or 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
| <?php | |
| declare(strict_types=1); | |
| use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; | |
| use Rector\Config\RectorConfig; | |
| use Rector\Set\ValueObject\LevelSetList; | |
| use Rector\Set\ValueObject\SetList; | |
| return static function (RectorConfig $rectorConfig): void { |
This file contains hidden or 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
| #!/bin/bash | |
| # Variables | |
| declare -a branches=("develop" "master" "test" "qa") | |
| url="[email protected]:burus86" | |
| repository_path=$HOME/www/__personal-projects | |
| # List of repositories to clone or sync | |
| repositories=( |
This file contains hidden or 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
| #!/bin/bash | |
| RESET='\e[0m' | |
| RED='\e[31m' | |
| GREEN='\e[32m' | |
| YELLOW='\e[33m' | |
| #---------------------------------------------------------------------------------------------------------------------- | |
| # FUNCTIONS |
This file contains hidden or 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
| # -*- mode: gitconfig; -*- | |
| # vim: set filetype=gitconfig: | |
| ## | |
| # GitAlias.com collection of many git alias items, including shortcuts, | |
| # helpers, workflows, utilties, visualizers, reports, etc. | |
| # | |
| # | |
| # ## Usage | |
| # |
This file contains hidden or 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
| name: Code Checks | |
| on: | |
| pull_request: null | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| code_checks: |
This file contains hidden or 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
| ; This file is for unifying the coding style for different editors and IDEs. | |
| ; More information at https://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| indent_size = 4 |
This file contains hidden or 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
| <?php | |
| declare(strict_types=1); | |
| namespace Core\Domain\Time; | |
| use DateTimeImmutable; | |
| use DateTimeZone; | |
| use Generator; | |
| use Iterator; |
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it鈥榮 easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
NewerOlder