From cd324c66268c5d9a64d4c791d1b86ac2b56845a5 Mon Sep 17 00:00:00 2001 From: Chris Morrell Date: Wed, 13 Sep 2023 23:48:10 -0400 Subject: [PATCH] A little bit of clean up --- .github/workflows/phpstan.yml | 26 ------------------- LICENSE.md | 2 +- README.md | 3 ++- composer.json | 5 ---- config/verbs.php | 11 -------- database/factories/ModelFactory.php | 19 -------------- .../create_verb_events_table.php.stub | 2 +- phpstan-baseline.neon | 0 phpstan.neon.dist | 16 ------------ phpunit.xml.bak | 18 ------------- resources/views/.gitkeep | 0 11 files changed, 4 insertions(+), 98 deletions(-) delete mode 100644 .github/workflows/phpstan.yml delete mode 100644 database/factories/ModelFactory.php delete mode 100644 phpstan-baseline.neon delete mode 100644 phpstan.neon.dist delete mode 100644 phpunit.xml.bak delete mode 100644 resources/views/.gitkeep diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml deleted file mode 100644 index 9d41c0cf..00000000 --- a/.github/workflows/phpstan.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: PHPStan - -on: - push: - paths: - - '**.php' - - 'phpstan.neon.dist' - -jobs: - phpstan: - name: phpstan - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - coverage: none - - - name: Install composer dependencies - uses: ramsey/composer-install@v2 - - - name: Run PHPStan - run: ./vendor/bin/phpstan --error-format=github diff --git a/LICENSE.md b/LICENSE.md index 58c9ad42..3825f51e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) :vendor_name +Copyright (c) Kathunk, Inc. and Chris Morrell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8f06c6ca..ad3ae028 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Verbs + ## An event sourcing package for people who don't hate themselves -Write some docs. \ No newline at end of file +Write some docs. diff --git a/composer.json b/composer.json index 02dc3ba2..2eab76dd 100644 --- a/composer.json +++ b/composer.json @@ -29,15 +29,11 @@ "laravel/pint": "^1.0", "mockery/mockery": "^1.5", "nunomaduro/collision": "^7.9", - "nunomaduro/larastan": "^2.0.1", "orchestra/testbench": "^8.0", "pestphp/pest": "^2.0", "pestphp/pest-plugin-arch": "^2.0", "pestphp/pest-plugin-laravel": "^2.0", "pestphp/pest-plugin-watch": "^2.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", "spatie/laravel-ray": "^1.26" }, "autoload": { @@ -57,7 +53,6 @@ }, "scripts": { "post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi", - "analyse": "vendor/bin/phpstan analyse", "test": "vendor/bin/pest", "test-coverage": "vendor/bin/pest --coverage", "format": "vendor/bin/pint" diff --git a/config/verbs.php b/config/verbs.php index c26d0149..b6251283 100644 --- a/config/verbs.php +++ b/config/verbs.php @@ -1,15 +1,4 @@ '2000-01-01', - - // You can have up to 31 datacenters and 31 workers in each datacenter. - // To ensure you do not have ID collisions, each machine that dispatches - // events should have a unique worker ID. - 'snowflake_datacenter_id' => env('SNOWFLAKE_DATACENTER_ID'), - 'snowflake_worker_id' => env('SNOWFLAKE_WORKER_ID'), ]; diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php deleted file mode 100644 index 9382dba6..00000000 --- a/database/factories/ModelFactory.php +++ /dev/null @@ -1,19 +0,0 @@ -bigInteger('id')->unsigned()->primary(); - $table->bigInteger('context_id')->unsigned()->nullable()->index(); + $table->bigInteger('state_id')->unsigned()->nullable()->index(); $table->string('event_type')->index(); $table->json('event_data'); diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon deleted file mode 100644 index e69de29b..00000000 diff --git a/phpstan.neon.dist b/phpstan.neon.dist deleted file mode 100644 index 1a00e184..00000000 --- a/phpstan.neon.dist +++ /dev/null @@ -1,16 +0,0 @@ -includes: - - phpstan-baseline.neon - -parameters: - level: 4 - paths: - - src - - config - - database - tmpDir: build/phpstan - checkOctaneCompatibility: true - checkModelProperties: false - checkMissingIterableValueType: false - ignoreErrors: - - "#^Unsafe usage of new static#" - - "#should return static#" diff --git a/phpunit.xml.bak b/phpunit.xml.bak deleted file mode 100644 index ada83de9..00000000 --- a/phpunit.xml.bak +++ /dev/null @@ -1,18 +0,0 @@ - - - - - ./tests - - - - - ./app - ./src - - - diff --git a/resources/views/.gitkeep b/resources/views/.gitkeep deleted file mode 100644 index e69de29b..00000000