Skip to content

Commit

Permalink
Merge branch 'hotfix/2.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
turegjorup committed Oct 20, 2021
2 parents 220daed + 699436d commit ba63f92
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 98 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,43 +81,6 @@ jobs:
fail_ci_if_error: false
verbose: true

runner-phpcs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.4' ]
name: Coding style (${{ matrix.php }})
steps:
- uses: actions/checkout@master

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extension: apcu, ctype, iconv, imagick, json, redis, soap, xmlreader, zip
coverage: none

- name: Install Reviewdog
run: wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b $PWD/ v0.9.14

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ matrix.php }}-composer-

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist

- name: PHPCS
run: composer actions/phpcs | ./reviewdog -f=checkstyle -name=PHPCS -reporter=github-pr-check
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

phpcsfixer:
runs-on: ubuntu-latest
strategy:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ coverage
node_modules
yarn.lock
composer.lock
.php-cs-fixer.cache
14 changes: 14 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;

$config = new PhpCsFixer\Config();
return $config->setRules([
'@Symfony' => true,
'full_opening_tag' => false,
'phpdoc_align' => false,
])
->setFinder($finder)
;
16 changes: 0 additions & 16 deletions .php_cs.dist

This file was deleted.

32 changes: 7 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,20 @@
"symfony/http-client": "^4.4 | ^5.2",
"symfony/http-foundation": "^4.4 | ^5.2",
"symfony/http-kernel": "^4.4 | ^5.2",
"symfony/security": "^4.4 | ^5.2"
"symfony/security-guard": "^4.4 | <5.3"
},
"require-dev": {
"drenso/phan-extensions": "^3.1",
"escapestudios/symfony2-coding-standard": "^3.10",
"friendsofphp/php-cs-fixer": "^2.13",
"friendsofphp/php-cs-fixer": "^3.2",
"symfony/phpunit-bridge": "^4.4 | ^5.2",
"vimeo/psalm": "^4.8"
},
"scripts": {
"apply-coding-standards": [
"@apply-coding-standards/php-cs-fixer",
"@apply-coding-standards/phpcs"
"coding-standards-apply": [
"php-cs-fixer fix"
],
"check-coding-standards": [
"@check-coding-standards/php-cs-fixer",
"@check-coding-standards/phpcs"
],
"check-coding-standards/php-cs-fixer": [
"php-cs-fixer --config=.php_cs.dist fix --dry-run --format=checkstyle"
],
"check-coding-standards/phpcs": [
"phpcs --standard=phpcs.xml.dist"
],
"apply-coding-standards/php-cs-fixer": [
"php-cs-fixer --config=.php_cs.dist fix"
],
"apply-coding-standards/phpcs": [
"phpcbf --standard=phpcs.xml.dist"
"coding-standards-check": [
"php-cs-fixer fix --dry-run --format=checkstyle"
],
"phan": [
"./vendor/bin/phan --allow-polyfill-parser"
Expand All @@ -68,11 +53,8 @@
"test-suite": [
"@phpunit"
],
"actions/phpcs": [
"phpcs --standard=phpcs.xml.dist --report=checkstyle"
],
"actions/phpcsfixer": [
"php-cs-fixer --config=.php_cs.dist fix --dry-run --diff --diff-format=udiff"
"php-cs-fixer fix --dry-run --format=checkstyle"
],
"actions/phan": [
"./vendor/bin/phan --no-progress-bar --allow-polyfill-parser"
Expand Down
28 changes: 8 additions & 20 deletions src/Security/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class User implements UserInterface

/**
* Get this users "password" expire date.
*
* @return \DateTime|null
*/
public function getExpires(): ?\DateTime
{
Expand All @@ -31,8 +29,6 @@ public function getExpires(): ?\DateTime

/**
* Set this users "password" expire date.
*
* @param \DateTime $expires
*/
public function setExpires(\DateTime $expires): void
{
Expand All @@ -41,8 +37,6 @@ public function setExpires(\DateTime $expires): void

/**
* Get the users agency.
*
* @return string
*/
public function getAgency(): string
{
Expand All @@ -51,8 +45,6 @@ public function getAgency(): string

/**
* Set the users agency.
*
* @param string $agency
*/
public function setAgency(string $agency): void
{
Expand All @@ -61,8 +53,6 @@ public function setAgency(string $agency): void

/**
* Get users authentication type.
*
* @return string
*/
public function getAuthType(): string
{
Expand All @@ -71,8 +61,6 @@ public function getAuthType(): string

/**
* Set users authentication type.
*
* @param string $authType
*/
public function setAuthType(string $authType): void
{
Expand All @@ -81,8 +69,6 @@ public function setAuthType(string $authType): void

/**
* Get users client id.
*
* @return string
*/
public function getClientId(): string
{
Expand All @@ -91,8 +77,6 @@ public function getClientId(): string

/**
* Set users client id.
*
* @param string $clientId
*/
public function setClientId(string $clientId): void
{
Expand All @@ -109,8 +93,6 @@ public function getRoles(): array

/**
* {@inheritdoc}
*
* @return string|null
*/
public function getPassword(): ?string
{
Expand All @@ -135,14 +117,20 @@ public function getSalt(): ?string

/**
* {@inheritdoc}
*
* @return string
*/
public function getUsername(): string
{
return $this->agency;
}

/**
* {@inheritdoc}
*/
public function getUserIdentifier(): string
{
return $this->agency;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit ba63f92

Please sign in to comment.