diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 1f7e44d..6b1fd62 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,9 +1,9 @@ name: build_and_test on: push: - branches: [ main, develop ] + branches: [ main, develop, feature/pre-new-admin ] pull_request: - branches: [ main, develop ] + branches: [ main, develop, feature/pre-new-admin ] jobs: test: @@ -61,7 +61,7 @@ jobs: ${{ runner.os }}-yarn- - name: Install Composer dependencies - run: COMPOSER_ROOT_VERSION=dev-develop composer install --no-interaction --prefer-dist + run: COMPOSER_ROOT_VERSION=dev-feature/pre-new-admin composer install --no-interaction --prefer-dist - name: Install Yarn dependencies run: yarn install diff --git a/.github/workflows/migration_numbering.yml b/.github/workflows/migration_numbering.yml index 069c767..d2801df 100644 --- a/.github/workflows/migration_numbering.yml +++ b/.github/workflows/migration_numbering.yml @@ -2,7 +2,7 @@ name: migration_numbering on: pull_request: push: - branches: [ main, develop ] + branches: [ main, develop, feature/pre-new-admin ] paths: - 'src/Database/Migration/**' - 'composer.json' diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index e1c5360..235a708 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -3,7 +3,7 @@ on: pull_request: # Run on push, but only if PHP files have changed push: - branches: [ main, develop ] + branches: [ main, develop, feature/pre-new-admin ] paths: - '**.php' - 'composer.json' @@ -36,7 +36,7 @@ jobs: ${{ runner.os }}-composer- - name: Install Composer dependencies - run: COMPOSER_ROOT_VERSION=dev-develop composer install --no-interaction --prefer-dist + run: COMPOSER_ROOT_VERSION=dev-feature/pre-new-admin composer install --no-interaction --prefer-dist - name: Run PHPStan run: composer analyse diff --git a/.phpstan/config.neon b/.phpstan/config.neon index 0761360..72705b8 100644 --- a/.phpstan/config.neon +++ b/.phpstan/config.neon @@ -1,6 +1,7 @@ parameters: level: 10 paths: + - ../admin/controllers - ../src - ../tests bootstrapFiles: @@ -9,4 +10,4 @@ parameters: - ../vendor/nails/common/helpers/url.php - ../vendor/nails/common/src/Common/CodeIgniter/Core/Common.php - ../vendor/nails/module-auth/helpers/user.php - - ../vendor/nails/module-admin/helpers/permission.php + - ../vendor/nails/module-admin/src/Controller/Base.php diff --git a/src/Admin/Controller/FindReplace.php b/admin/controllers/FindReplace.php similarity index 90% rename from src/Admin/Controller/FindReplace.php rename to admin/controllers/FindReplace.php index 3afbb5e..6e1a067 100644 --- a/src/Admin/Controller/FindReplace.php +++ b/admin/controllers/FindReplace.php @@ -1,16 +1,18 @@ + */ + public $data; + + /** + * @return Nav|array