From af57deb50125164179be85929dc968c36dc9121a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dariusz=20Rumi=C5=84ski?= <dariusz.ruminski@gmail.com>
Date: Sun, 29 Dec 2024 14:51:33 +0100
Subject: [PATCH 01/10] Update PHP CS Fixer to fixed version

---
 composer.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/composer.json b/composer.json
index 19e3581..c9d0d06 100644
--- a/composer.json
+++ b/composer.json
@@ -11,10 +11,10 @@
     ],
     "require": {
         "php": "^8.0",
-        "friendsofphp/php-cs-fixer": "^3.47.1 !=3.65.0",
+        "friendsofphp/php-cs-fixer": "^3.66.0",
         "slevomat/coding-standard": "^8.6",
         "squizlabs/php_codesniffer": "^3.9",
-        "symplify/easy-coding-standard": "^12.2.0 <12.4"
+        "symplify/easy-coding-standard": "^12.2.0 <12.4 || ^12.5.5"
     },
     "require-dev": {
         "ergebnis/composer-normalize": "^2.42.0",

From bc9aec9b3c733f50ba657bbd0e6cab87f713bdbe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pech=20Jind=C5=99ich?= <jindrich.pech@almacareer.com>
Date: Thu, 27 Feb 2025 14:14:35 +0100
Subject: [PATCH 02/10] Add codeowners

---
 .github/CODEOWNERS | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 .github/CODEOWNERS

diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 0000000..fca3e08
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1 @@
+* jindrich.pech@almamedia.com

From ac9b1e9e347569951fd5d45811834e0f440afc25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= <ondrej.machulda@gmail.com>
Date: Thu, 27 Feb 2025 14:11:21 +0100
Subject: [PATCH 03/10] Rename Alma Career Czechia to Alma Career Coding
 Standard for PHP

---
 README.md     | 4 ++--
 composer.json | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index ead7009..d9bb784 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-# Alma Career Czechia Coding Standard for PHP
+# Alma Career Coding Standard for PHP
 
 [![Latest Stable Version](https://img.shields.io/packagist/v/lmc/coding-standard.svg?style=flat-square)](https://packagist.org/packages/lmc/coding-standard)
 
-PHP coding standard used in [Alma Career Czechia][Alma Career] (formerly LMC) products.
+PHP coding standard used in [Alma Career][Alma Career] (formerly LMC) products.
 
 The standard is based on [PSR-12][psr-12] and partially [PER 2.0][per-2] and adds
 various checks to make sure the code is readable, follows the same conventions, and does not contain common mistakes.
diff --git a/composer.json b/composer.json
index c9d0d06..d3785bf 100644
--- a/composer.json
+++ b/composer.json
@@ -1,12 +1,12 @@
 {
     "name": "lmc/coding-standard",
-    "description": "Coding standard used in Alma Career Czechia (LMC) projects",
+    "description": "Coding standard used in Alma Career projects",
     "license": "MIT",
     "type": "library",
     "authors": [
         {
             "name": "Alma Career",
-            "homepage": "https://github.com/almacareer/"
+            "homepage": "https://github.com/alma-oss/"
         }
     ],
     "require": {

From d60fc609bff76bb2239052a72c0729ca8f42345b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= <ondrej.machulda@gmail.com>
Date: Thu, 27 Feb 2025 14:24:04 +0100
Subject: [PATCH 04/10] Rename links to repository to
 alma-oss/php-coding-standard

---
 CHANGELOG.md   | 2 +-
 UPGRADE-4.0.md | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 12aba2a..efc8348 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -87,7 +87,7 @@
 - Temporarily disable `ArrayDeclarationSniff.ValueNoNewline` because of [bug](https://github.com/squizlabs/PHP_CodeSniffer/issues/2937) in PHP_CodeSniffer 3.5.5.
 
 ## 2.0.0 - 2020-03-02
-- BC: change the way the standard is imported to your `easy-coding-standard.yaml` (change `%vendor_dir%` placeholder directly to name of the vendor directory like `vendor`). See example in [README](https://github.com/lmc-eu/php-coding-standard#usage).
+- BC: change the way the standard is imported to your `easy-coding-standard.yaml` (change `%vendor_dir%` placeholder directly to name of the vendor directory like `vendor`). See example in [README](https://github.com/alma-oss/php-coding-standard#usage).
 - Drop PHP 7.1 support.
 - Require EasyCodingStandard 7+.
 - `VisibilityRequiredFixer` now check visibility is declared also on class constants.
diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md
index 590c5cb..f97034f 100644
--- a/UPGRADE-4.0.md
+++ b/UPGRADE-4.0.md
@@ -35,7 +35,7 @@ Now change the way you set rules, skip tests and import sets:
 | `$parameters->set(Option::SKIP, ...)` | `ECSConfig::configure()->withSkip()`                                                      |
 | `$containerConfigurator->import()`    | `ECSConfig::configure()->withSets()`                                                      |
 
-See [examples in Usage section of our README](https://github.com/lmc-eu/php-coding-standard?tab=readme-ov-file#usage)
+See [examples in Usage section of our README](https://github.com/alma-oss/php-coding-standard?tab=readme-ov-file#usage)
 or more configuration options in [ECS documentation](https://github.com/easy-coding-standard/easy-coding-standard/tree/main?tab=readme-ov-file#configure).
 
 Some more reasoning and examples of configurations can also be seen [in ECS author blogpost](https://tomasvotruba.com/blog/new-in-ecs-simpler-config).
@@ -88,7 +88,7 @@ $ vendor/bin/ecs check --ansi # new
 ### 6. Add some optional rules
 On top of default rules included in ecs.php, there are some more opinionated ones you may want to add.
 
-These suggested rules are listed in [README.md](https://github.com/lmc-eu/php-coding-standard?tab=readme-ov-file#add-custom-checks-or-override-default-settings).
+These suggested rules are listed in [README.md](https://github.com/alma-oss/php-coding-standard?tab=readme-ov-file#add-custom-checks-or-override-default-settings).
 
 ### 5. BE CAREFUL WITH SUGGESTED CHANGES! ⚠️
 

From dbb53261671b15234cb4836f8bafb8a64cc4580d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net>
Date: Fri, 3 Jan 2025 20:04:34 +0000
Subject: [PATCH 05/10] Add Almacareer SetList

---
 README.md           |  6 ++++--
 src/Set/SetList.php | 11 +++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 src/Set/SetList.php

diff --git a/README.md b/README.md
index d9bb784..5363a90 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@ composer require --dev lmc/coding-standard
 ```php
 <?php declare(strict_types=1);
 
+use Lmc\CodingStandard\Set\SetList;
 use Symplify\EasyCodingStandard\Config\ECSConfig;
 
 return ECSConfig::configure()
@@ -29,7 +30,7 @@ return ECSConfig::configure()
     ->withRootFiles() // to also check ecs.php and all other php files in the root directory
     ->withSets(
         [
-            __DIR__ . '/vendor/lmc/coding-standard/ecs.php',
+            SetList::ALMACAREER,
         ]
     );
 ```
@@ -67,6 +68,7 @@ Below find examples of some more opinionated checks you may want to add dependin
 ```php
 <?php declare(strict_types=1);
 
+use Lmc\CodingStandard\Set\SetList;
 use PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff;
 use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer;
 use Symplify\EasyCodingStandard\Config\ECSConfig;
@@ -75,7 +77,7 @@ return ECSConfig::configure()
     /* (...) */
     ->withSets(
         [
-            __DIR__ . '/vendor/lmc/coding-standard/ecs.php',
+            SetList::ALMACAREER,
         ]
     )
     ->withRules(
diff --git a/src/Set/SetList.php b/src/Set/SetList.php
new file mode 100644
index 0000000..4f30ece
--- /dev/null
+++ b/src/Set/SetList.php
@@ -0,0 +1,11 @@
+<?php declare(strict_types=1);
+
+namespace Lmc\CodingStandard\Set;
+
+class SetList
+{
+    /**
+     * @var string
+     */
+    public const ALMACAREER = __DIR__ . '/../../ecs.php';
+}

From 2388f36e6ac5be0dec70b272e37425cef4d16a08 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= <ondrej.machulda@gmail.com>
Date: Thu, 27 Feb 2025 15:30:01 +0100
Subject: [PATCH 06/10] Use Almacareer setlist in internal ecs rules

---
 ecs-internal.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ecs-internal.php b/ecs-internal.php
index 944036e..1cdb314 100644
--- a/ecs-internal.php
+++ b/ecs-internal.php
@@ -1,5 +1,6 @@
 <?php declare(strict_types=1);
 
+use Lmc\CodingStandard\Set\SetList;
 use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff;
 use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
 use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer;
@@ -14,7 +15,7 @@
     ->withRootFiles()
     ->withSets(
         [
-            __DIR__ . '/ecs.php',
+            SetList::ALMACAREER,
         ],
     )
     ->withConfiguredRule(PhpUnitTestAnnotationFixer::class, ['style' => 'annotation'])

From e521dfada4d54890c95d84a3764c8f6e0b4e8d23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= <ondrej.machulda@gmail.com>
Date: Thu, 27 Feb 2025 15:22:27 +0100
Subject: [PATCH 07/10] Rename the Packagist package to
 almacareer/coding-standard

---
 README.md      | 30 ++++++++++++++++++++++++++++--
 UPGRADE-4.0.md |  8 +++++---
 composer.json  |  2 +-
 3 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 5363a90..335da70 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Alma Career Coding Standard for PHP
 
-[![Latest Stable Version](https://img.shields.io/packagist/v/lmc/coding-standard.svg?style=flat-square)](https://packagist.org/packages/lmc/coding-standard)
+[![Latest Stable Version](https://img.shields.io/packagist/v/almacareer/coding-standard.svg?style=flat-square)](https://packagist.org/packages/almacareer/coding-standard)
 
 PHP coding standard used in [Alma Career][Alma Career] (formerly LMC) products.
 
@@ -9,10 +9,36 @@ various checks to make sure the code is readable, follows the same conventions,
 
 We use [EasyCodingStandard][ecs] to define and execute checks created for both [PHP-CS-Fixer] and [PHP_CodeSniffer].
 
+## Switching from lmc/coding-standard
+
+The package `almacareer/coding-standard` is 1:1 replacement for the previous deprecated `lmc/coding-standard` package.
+To change the package, you only need to do the following changes in your project:
+
+### 1. Update dependency in composer.json
+```diff
+-        "lmc/coding-standard": "^4.1",
++        "almacareer/coding-standard": "^4.1",
+```
+
+and then run `composer update`.
+
+### 2. Change path to ecs.php in your ecs.php
+
+You can also use `SetList:ALMACAREER` instead of explicitly specifying path to the file:
+
+```diff
+    ->withSets(
+        [
+-            __DIR__ . '/vendor/lmc-eu/coding-standard/ecs.php',
++            \Lmc\CodingStandard\Set\SetList::ALMACAREER,
+        ]
+    );
+```
+
 ## Installation
 
 ```bash
-composer require --dev lmc/coding-standard
+composer require --dev almacareer/coding-standard
 ```
 
 ## Usage
diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md
index f97034f..aa0d0b2 100644
--- a/UPGRADE-4.0.md
+++ b/UPGRADE-4.0.md
@@ -1,11 +1,12 @@
 # Upgrading from 3.x to 4.0
 
 ### 1. Update dependency in composer.json
-In the `require-dev` section of `composer.json` change the version constraint:
+In the `require-dev` section of `composer.json` change the version constraint. This also includes
+renaming of the package to `almacareer/coding-standard`:
 
 ```diff
 -        "lmc/coding-standard": "^3.3",
-+        "lmc/coding-standard": "^4.0",
++        "almacareer/coding-standard": "^4.0",
 ```
 
 Then run `composer update`.
@@ -16,13 +17,14 @@ The configuration now uses `ECSConfig` class instead of `ContainerConfigurator`.
 Update your `ecs.php` file to use the new configuration style:
 
 ```diff
++use Lmc\CodingStandard\Set\SetList;
 -use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
 +use Symplify\EasyCodingStandard\Config\ECSConfig;
 
 -return static function (ContainerConfigurator $containerConfigurator): void {
 +return ECSConfig::configure()
 +    ->withSets([
-+        __DIR__ . '/vendor/lmc/coding-standard/ecs.php',
++        SetList::ALMACAREER,
 +    ]);
     // ...
 ```
diff --git a/composer.json b/composer.json
index d3785bf..0abd1e4 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
 {
-    "name": "lmc/coding-standard",
+    "name": "almacareer/coding-standard",
     "description": "Coding standard used in Alma Career projects",
     "license": "MIT",
     "type": "library",

From 3a56aac9569ebe81c98ae7f7bc3b8473f517fb29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= <ondrej.machulda@gmail.com>
Date: Fri, 28 Feb 2025 12:12:33 +0100
Subject: [PATCH 08/10] Release version 4.2.0

---
 CHANGELOG.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index efc8348..e3e2ecd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,13 @@
 
 ## Unreleased
 
+## 4.2.0 - 2025-02-28
+- Rename the package from "Alma Career Czechia Standard for PHP" to more broad "Alma Career Coding Standard for PHP". 🎉
+- Change composer package name to `almacareer/coding-standard`. Previous `lmc/coding-standard` is now deprecated.
+- Move GitHub repository from `lmc-eu/php-coding-standard` to `alma-oss/php-coding-standard`.
+- Update PHP CS Fixer to fixed version.
+- Add `SetList::ALMACAREER` for easier importing of the coding standard.
+
 ## 4.1.2 - 2024-12-27
 - Restrict php-cs-fixer version 3.65.0 (included in ECS version 12.4+) from being installed because of [bug in `NullableTypeDeclarationFixer`](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8330).
 

From f4c4f37a23894eca47d1f06d49bf50256368cc20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= <ondrej.machulda@gmail.com>
Date: Fri, 28 Feb 2025 12:43:38 +0100
Subject: [PATCH 09/10] Docs: Fix update example in README

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 335da70..dbc7acd 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ To change the package, you only need to do the following changes in your project
 ### 1. Update dependency in composer.json
 ```diff
 -        "lmc/coding-standard": "^4.1",
-+        "almacareer/coding-standard": "^4.1",
++        "almacareer/coding-standard": "^4.2",
 ```
 
 and then run `composer update`.

From ca24767a4cd989009741338442538af7ffacb889 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= <ondrej.machulda@lmc.eu>
Date: Sun, 2 Mar 2025 22:14:53 +0100
Subject: [PATCH 10/10] Docs: Fix minor README typo

---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index dbc7acd..09c3203 100644
--- a/README.md
+++ b/README.md
@@ -20,11 +20,11 @@ To change the package, you only need to do the following changes in your project
 +        "almacareer/coding-standard": "^4.2",
 ```
 
-and then run `composer update`.
+And then run `composer update`.
 
 ### 2. Change path to ecs.php in your ecs.php
 
-You can also use `SetList:ALMACAREER` instead of explicitly specifying path to the file:
+You can also use `SetList::ALMACAREER` instead of explicitly specifying path to the file:
 
 ```diff
     ->withSets(
