| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,7 +69,7 @@ jobs: | |||
| 69 | 69 | ||
| 70 | 70 | - run: sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php | |
| 71 | 71 | ||
| 72 | - - run: ./bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff -v --path-mode=intersection -- ${{ env.GIT_DIFF_FILTERED }} | ||
| 72 | + - run: ./bin/php-cs-fixer fix --no-interaction --dry-run --diff -v --path-mode=intersection -- ${{ env.GIT_DIFF_FILTERED }} | ||
| 73 | 73 | if: env.GIT_DIFF_FILTERED | |
| 74 | 74 | ||
| 75 | 75 | unit_tests: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,20 +1,21 @@ | |||
| 1 | 1 | *~ | |
| 2 | 2 | /.idea/ | |
| 3 | 3 | bin/doctrine* | |
| 4 | - bin/php-cs-fixer | ||
| 5 | - bin/phpunit | ||
| 6 | - bin/sql-formatter | ||
| 7 | - bin/phpstan | ||
| 8 | - bin/jp.php | ||
| 9 | - bin/php-parse | ||
| 10 | - bin/google-cloud-batch | ||
| 4 | + bin/php-cs-fixer* | ||
| 5 | + bin/phpunit* | ||
| 6 | + bin/sql-formatter* | ||
| 7 | + bin/phpstan* | ||
| 8 | + bin/jp.php* | ||
| 9 | + bin/php-parse* | ||
| 10 | + bin/google-cloud-batch* | ||
| 11 | + bin/patch-type-declarations* | ||
| 11 | 12 | bin/thruway | |
| 12 | - bin/phpstan.phar | ||
| 13 | - bin/var-dump-server | ||
| 14 | - bin/yaml-lint | ||
| 13 | + bin/var-dump-server* | ||
| 14 | + bin/yaml-lint* | ||
| 15 | 15 | vendor | |
| 16 | 16 | var | |
| 17 | 17 | .php_cs | |
| 18 | 18 | .php_cs.cache | |
| 19 | 19 | composer.lock | |
| 20 | 20 | .phpunit.result.cache | |
| 21 | + .php-cs-fixer.cache | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | <?php | |
| 2 | 2 | ||
| 3 | 3 | return (new PhpCsFixer\Config()) | |
| 4 | + ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) | ||
| 4 | 5 | ->setRiskyAllowed(true) | |
| 5 | 6 | ->setRules(array( | |
| 6 | 7 | '@Symfony' => true, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,14 @@ | |||
| 1 | 1 | <?php | |
| 2 | 2 | ||
| 3 | 3 | if (empty($argv[1])) { | |
| 4 | - throw new \LogicException('The new symfony version must be provided'); | ||
| 4 | + throw new LogicException('The new symfony version must be provided'); | ||
| 5 | 5 | } | |
| 6 | 6 | ||
| 7 | 7 | $newVersion = $argv[1]; | |
| 8 | 8 | ||
| 9 | 9 | $composer = file_get_contents(__DIR__.'/../composer.json'); | |
| 10 | 10 | ||
| 11 | - $updatedComposer = preg_replace('/"symfony\/(.*)": ".*"/', '"symfony/$1": "'.$newVersion.'"', $composer).PHP_EOL; | ||
| 12 | - echo $updatedComposer.PHP_EOL; | ||
| 11 | + $updatedComposer = preg_replace('/"symfony\/(.*)": ".*"/', '"symfony/$1": "'.$newVersion.'"', $composer).\PHP_EOL; | ||
| 12 | + echo $updatedComposer.\PHP_EOL; | ||
| 13 | 13 | ||
| 14 | 14 | file_put_contents(__DIR__.'/../composer.json', $updatedComposer); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,8 @@ | |||
| 4 | 4 | "minimum-stability": "beta", | |
| 5 | 5 | "homepage": "https://enqueue.forma-pro.com/", | |
| 6 | 6 | "scripts": { | |
| 7 | - "cs-fix": "bin/php-cs-fixer fix --config=.php_cs.php", | ||
| 8 | - "cs-lint": "bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff", | ||
| 7 | + "cs-fix": "bin/php-cs-fixer fix", | ||
| 8 | + "cs-lint": "bin/php-cs-fixer fix --no-interaction --dry-run --diff", | ||
| 9 | 9 | "phpstan": "bin/phpstan analyse --memory-limit=512M -c phpstan.neon" | |
| 10 | 10 | }, | |
| 11 | 11 | "require": { | |
@@ -136,4 +136,3 @@ | |||
| 136 | 136 | } | |
| 137 | 137 | } | |
| 138 | 138 | } | |
| 139 | - | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ services: | |||
| 7 | 7 | build: | |
| 8 | 8 | context: docker | |
| 9 | 9 | args: | |
| 10 | - PHP_VERSION: "${PHP_VERSION:-7.4}" | ||
| 10 | + PHP_VERSION: "${PHP_VERSION:-8.1}" | ||
| 11 | 11 | depends_on: | |
| 12 | 12 | - rabbitmq | |
| 13 | 13 | - mysql | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,12 +5,12 @@ | |||
| 5 | 5 | require_once getcwd().'/vendor/autoload.php'; | |
| 6 | 6 | ||
| 7 | 7 | $dsn = getenv('DOCTRINE_DSN'); | |
| 8 | - $database = trim(parse_url($dsn, PHP_URL_PATH), '/'); | ||
| 8 | + $database = trim(parse_url($dsn, \PHP_URL_PATH), '/'); | ||
| 9 | 9 | ||
| 10 | 10 | $dbalContext = (new DbalConnectionFactory($dsn))->createContext(); | |
| 11 | 11 | ||
| 12 | 12 | $dbalContext->getDbalConnection()->getSchemaManager()->dropAndCreateDatabase($database); | |
| 13 | 13 | $dbalContext->getDbalConnection()->exec('USE '.$database); | |
| 14 | 14 | $dbalContext->createDataBaseTable(); | |
| 15 | 15 | ||
| 16 | - echo 'MySQL Database is updated'.PHP_EOL; | ||
| 16 | + echo 'MySQL Database is updated'.\PHP_EOL; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,4 +11,4 @@ | |||
| 11 | 11 | $dbalContext->getDbalConnection()->getSchemaManager()->dropAndCreateDatabase('postgres'); | |
| 12 | 12 | $dbalContext->createDataBaseTable(); | |
| 13 | 13 | ||
| 14 | - echo 'Postgresql Database is updated'.PHP_EOL; | ||
| 14 | + echo 'Postgresql Database is updated'.\PHP_EOL; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments