Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JonoB committed Apr 19, 2024
1 parent 46cf8f5 commit a051d3c
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_DATABASE=sendportal_dev
DB_USERNAME=root
DB_PASSWORD=
DB_PASSWORD=password

BROADCAST_DRIVER=log
CACHE_DRIVER=file
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_USER: root
MYSQL_PASSWORD: password
MYSQL_DATABASE: sendportal_dev
ports:
- 3306:3306
Expand All @@ -30,8 +30,8 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_USER: homestead
POSTGRES_PASSWORD: secret
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: sendportal_dev
ports:
- 5432:5432
Expand Down
55 changes: 55 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php

declare(strict_types=1);

$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('node_modules')
->exclude('bower_components')
->exclude('public')
->exclude('bootstrap')
->exclude('resources')
->exclude('storage')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php');

$config = new PhpCsFixer\Config();

return $config
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const'
],
'sort_algorithm' => 'alpha'
],
'no_unused_imports' => true,
'no_empty_statement' => true,
'no_useless_return' => true,
'not_operator_with_successor_space' => true,
'explicit_string_variable' => true,
'simple_to_complex_string_variable' => true,
'array_indentation' => true,
'blank_line_before_statement' => [
'statements' => [
'case',
'default',
'declare',
'do',
'goto',
'if',
'include',
'include_once',
'require',
'require_once',
'switch',
'try',
]
],
])
->setFinder($finder);

0 comments on commit a051d3c

Please sign in to comment.