Skip to content

Commit

Permalink
Apply fixes from StyleCI (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
Crypta-Eve and StyleCIBot authored Nov 8, 2023
1 parent e3495b5 commit 28aaf90
Show file tree
Hide file tree
Showing 38 changed files with 87 additions and 63 deletions.
8 changes: 4 additions & 4 deletions bin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -256,7 +256,7 @@ function new_login()
}

/**
* @param $url
* @param $url
*/
function print_sso_url($url)
{
Expand All @@ -281,8 +281,8 @@ function print_sso_url($url)
}

/**
* @param $access_token
* @param $refresh_token
* @param $access_token
* @param $refresh_token
*/
function print_tokens($access_token, $refresh_token)
{
Expand Down
2 changes: 1 addition & 1 deletion example.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Access/AccessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
25 changes: 21 additions & 4 deletions src/Cache/CommonOperations.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
<?php

/*
* This file is part of SeAT
*
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

namespace Seat\Eseye\Cache;

use DateInterval;
Expand All @@ -9,7 +29,6 @@ trait CommonOperations
/**
* @param iterable $values
* @param \DateInterval|int|null $ttl
*
* @return bool
*/
public function setMultiple(iterable $values, DateInterval|int|null $ttl = null): bool
Expand All @@ -25,7 +44,6 @@ public function setMultiple(iterable $values, DateInterval|int|null $ttl = null)
/**
* @param iterable $keys
* @param mixed|null $default
*
* @return iterable
*/
public function getMultiple(iterable $keys, mixed $default = null): iterable
Expand All @@ -41,7 +59,6 @@ public function getMultiple(iterable $keys, mixed $default = null): iterable

/**
* @param iterable $keys
*
* @return bool
*/
public function deleteMultiple(iterable $keys): bool
Expand All @@ -53,4 +70,4 @@ public function deleteMultiple(iterable $keys): bool

return true;
}
}
}
9 changes: 1 addition & 8 deletions src/Cache/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -101,7 +101,6 @@ public function getCachePath(): string
* @param string $key
* @param mixed $value
* @param int|\DateInterval|null $ttl
*
* @return bool
*/
public function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool
Expand All @@ -120,7 +119,6 @@ public function set(string $key, mixed $value, null|int|DateInterval $ttl = null

/**
* @param string $key
*
* @return bool
*/
public function has(string $key): bool
Expand All @@ -131,7 +129,6 @@ public function has(string $key): bool
/**
* @param string $key
* @param mixed|null $default
*
* @return \Seat\Eseye\Containers\EsiResponse
*/
public function get(string $key, mixed $default = null): mixed
Expand Down Expand Up @@ -162,7 +159,6 @@ public function get(string $key, mixed $default = null): mixed

/**
* @param string $key
*
* @return bool
*/
public function delete(string $key): bool
Expand All @@ -184,7 +180,6 @@ public function clear(): bool

/**
* @param string $base_path
*
* @return bool
*/
private function clearContainer(string $base_path): bool
Expand All @@ -209,7 +204,6 @@ private function clearContainer(string $base_path): bool
/**
* @param string $path
* @param string $query
*
* @return string
*/
public function buildRelativePath(string $path, string $query = ''): string
Expand All @@ -224,7 +218,6 @@ public function buildRelativePath(string $path, string $query = ''): string

/**
* @param string $uri
*
* @return string
*/
public function safePath(string $uri): string
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/HashesStrings.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
8 changes: 2 additions & 6 deletions src/Cache/MemcachedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -81,7 +81,7 @@ public function __construct($instance = null)
$this->memcached->addServer($configuration->memcached_cache_host, $configuration->memcached_cache_port, 0);

if ($this->is_memcached)
$this->memcached->setOption(\Memcached::OPT_COMPRESSION, ($configuration->memcached_cache_compressed));
$this->memcached->setOption(\Memcached::OPT_COMPRESSION, $configuration->memcached_cache_compressed);
else
$this->flags = ($configuration->memcached_cache_compressed) ? MEMCACHE_COMPRESSED : 0;
}
Expand All @@ -91,7 +91,6 @@ public function __construct($instance = null)
* @param string $key
* @param mixed $value
* @param int|\DateInterval|null $ttl
*
* @return bool
*/
public function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool
Expand All @@ -108,7 +107,6 @@ public function set(string $key, mixed $value, null|int|DateInterval $ttl = null
/**
* @param string $key
* @param mixed|null $default
*
* @return \Seat\Eseye\Containers\EsiResponse
*/
public function get(string $key, mixed $default = null): mixed
Expand Down Expand Up @@ -136,7 +134,6 @@ public function get(string $key, mixed $default = null): mixed

/**
* @param string $key
*
* @return bool
*/
public function delete(string $key): bool
Expand All @@ -148,7 +145,6 @@ public function delete(string $key): bool

/**
* @param string $key
*
* @return bool
*/
public function has(string $key): bool
Expand Down
3 changes: 1 addition & 2 deletions src/Cache/NullCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -34,7 +34,6 @@
*/
class NullCache implements CacheInterface
{

/**
* @param string $key
* @param mixed|null $default
Expand Down
21 changes: 20 additions & 1 deletion src/Cache/ValidateCacheEntry.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
<?php

/*
* This file is part of SeAT
*
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

namespace Seat\Eseye\Cache;

use InvalidArgumentException;
Expand All @@ -21,7 +41,6 @@ public function validateCacheValue(mixed $value): void
* @param string $key
* @param string|null $path
* @param string|null $query
*
* @return void
*/
public function validateCacheKey(string $key, ?string &$path, ?string &$query): void
Expand Down
2 changes: 1 addition & 1 deletion src/Checker/Claim/AzpChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Checker/Claim/NameChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Checker/Claim/OwnerChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Checker/Claim/ScpChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Checker/Claim/SubEveCharacterChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Checker/Header/TypeChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
8 changes: 4 additions & 4 deletions src/Containers/AbstractArrayAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -77,7 +77,7 @@ public function offsetUnset(mixed $offset): void
}

/**
* @param $key
* @param $key
* @return mixed
*/
public function __get($key)
Expand All @@ -87,8 +87,8 @@ public function __get($key)
}

/**
* @param $key
* @param $val
* @param $key
* @param $val
*/
public function __set($key, $val)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Containers/EsiAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Containers/EsiConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/Eseye.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
Loading

0 comments on commit 28aaf90

Please sign in to comment.