From e4e2752905bf934d8cd7fabe178febd63fe4afc4 Mon Sep 17 00:00:00 2001 From: Maxim Akimov Date: Tue, 17 Dec 2024 20:37:12 +0200 Subject: [PATCH 1/5] publish preparation: github actions --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 6a33cc8..e381e90 100644 --- a/readme.md +++ b/readme.md @@ -7,8 +7,8 @@ built-in [Blade](https://laravel.com/docs/11.x/blade) implementation as a defaul * Zero Dependencies: Lightweight and easy to integrate into any project. * Wide Compatibility: PHP 7.4+, 8.0+ -* Adherence to the [SOLID principles](https://en.wikipedia.org/wiki/SOLID): You can override any module without - affecting the rest of the system. +* Adherence to the [SOLID principles](https://en.wikipedia.org/wiki/SOLID): The architecture allows you to easily + override any module to meet specific requirements. * Namespace Support: Manage different templates seamlessly under a unified structure. * Test Coverage: Covered by [Pest](https://pestphp.com/) Unit and Feature tests. * Static Analysis: Checked by [PHPStan](https://phpstan.org/). From d37cca1facb6ae1d113500a0515a095e8af54ff1 Mon Sep 17 00:00:00 2001 From: Maxim Akimov Date: Tue, 17 Dec 2024 20:39:23 +0200 Subject: [PATCH 2/5] publish preparation: github actions --- .github/workflows/tests.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8967c06..e25853c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -18,6 +18,11 @@ jobs: php-version: '8.2' extensions: mbstring, opcache + - name: Install Composer + run: | + curl -sS https://getcomposer.org/installer | php + sudo mv composer.phar /usr/local/bin/composer + - name: Install composer packages for code-quality run: cd ${{ github.workspace }}/code-quality; composer install From 81c54d86fea485a0640c1ad67696312814808f5e Mon Sep 17 00:00:00 2001 From: Maxim Akimov Date: Tue, 17 Dec 2024 20:46:41 +0200 Subject: [PATCH 3/5] publish preparation: github actions --- .github/workflows/tests.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e25853c..d051aab 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,13 +27,13 @@ jobs: run: cd ${{ github.workspace }}/code-quality; composer install - name: Validate code style with PHP Code Sniffer - run: composer phpcs + run: cd ${{ github.workspace }}/code-quality; composer phpcs - name: Perform static code analysis with PHPStan - run: composer phpstan + run: cd ${{ github.workspace }}/code-quality; composer phpstan - name: Install composer packages for tests run: cd ${{ github.workspace }}/tests; composer install - name: Run Pest tests - run: composer pest + run: cd ${{ github.workspace }}/tests; composer pest From 7b45de5ac9be737a4dddff58ce51b8cbbd1f1cdd Mon Sep 17 00:00:00 2001 From: Maxim Akimov Date: Tue, 17 Dec 2024 20:48:38 +0200 Subject: [PATCH 4/5] publish preparation: github actions --- private-classes/Template/TemplateRendererWithModelsRender.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/private-classes/Template/TemplateRendererWithModelsRender.php b/private-classes/Template/TemplateRendererWithModelsRender.php index 7c2a048..f3e4002 100644 --- a/private-classes/Template/TemplateRendererWithModelsRender.php +++ b/private-classes/Template/TemplateRendererWithModelsRender.php @@ -4,6 +4,7 @@ namespace Prosopo\Views\PrivateClasses\Template; +use Exception; use Prosopo\Views\Interfaces\Model\ModelRendererInterface; use Prosopo\Views\Interfaces\Model\TemplateModelInterface; use Prosopo\Views\Interfaces\Template\TemplateRendererInterface; @@ -49,7 +50,8 @@ function ($item) { * @param mixed $item * * @return mixed - * @throws + * + * @throws Exception */ protected function renderIfModel($item) { From d828a696d5a587583b42ad62ee88434b41781a3c Mon Sep 17 00:00:00 2001 From: Maxim Akimov Date: Tue, 17 Dec 2024 20:52:08 +0200 Subject: [PATCH 5/5] publish preparation: github actions --- .github/workflows/tests.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d051aab..14cbeee 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,6 +32,9 @@ jobs: - name: Perform static code analysis with PHPStan run: cd ${{ github.workspace }}/code-quality; composer phpstan + - name: Generate package autoloader files + run: cd ${{ github.workspace }}; composer install + - name: Install composer packages for tests run: cd ${{ github.workspace }}/tests; composer install