diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-04-02 12:49:16 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-04-10 10:46:01 +0100 |
| commit | 6ccdf4f0fd1b65a5d54259c969912382ce49629d (patch) | |
| tree | 05b5413ec6c06cec5ba59c24fd73dd2034ff1b74 /app/Statistics.php | |
| parent | e2e7f6bfc3bed346c21ad436fd1055ed03e163c3 (diff) | |
| download | webtrees-6ccdf4f0fd1b65a5d54259c969912382ce49629d.tar.gz webtrees-6ccdf4f0fd1b65a5d54259c969912382ce49629d.tar.bz2 webtrees-6ccdf4f0fd1b65a5d54259c969912382ce49629d.zip | |
Convert requests, middleware and reponses to use PSR-7, PSR-15 and PSR-17
Diffstat (limited to 'app/Statistics.php')
| -rw-r--r-- | app/Statistics.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Statistics.php b/app/Statistics.php index b80a354d50..62d75cf2b6 100644 --- a/app/Statistics.php +++ b/app/Statistics.php @@ -17,6 +17,7 @@ declare(strict_types=1); namespace Fisharebest\Webtrees; +use function count; use Fisharebest\Webtrees\Module\ModuleBlockInterface; use Fisharebest\Webtrees\Module\ModuleInterface; use Fisharebest\Webtrees\Services\ModuleService; @@ -53,6 +54,7 @@ use Fisharebest\Webtrees\Statistics\Repository\PlaceRepository; use Fisharebest\Webtrees\Statistics\Repository\ServerRepository; use Fisharebest\Webtrees\Statistics\Repository\UserRepository; use Illuminate\Database\Query\Builder; +use function in_array; use ReflectionMethod; /** @@ -230,7 +232,7 @@ class Statistics implements foreach (get_class_methods($this) as $method) { $reflection = new ReflectionMethod($this, $method); - if ($reflection->isPublic() && !\in_array($method, self::$public_but_not_allowed, true) && (string) $reflection->getReturnType() !== Builder::class) { + if ($reflection->isPublic() && !in_array($method, self::$public_but_not_allowed, true) && (string) $reflection->getReturnType() !== Builder::class) { $examples[$method] = $this->$method(); } } @@ -257,7 +259,7 @@ class Statistics implements foreach (get_class_methods($this) as $method) { $reflection = new ReflectionMethod($this, $method); - if ($reflection->isPublic() && !\in_array($method, self::$public_but_not_allowed, true) && (string) $reflection->getReturnType() !== Builder::class) { + if ($reflection->isPublic() && !in_array($method, self::$public_but_not_allowed, true) && (string) $reflection->getReturnType() !== Builder::class) { $examples[$method] = $method; } } @@ -2630,7 +2632,7 @@ class Statistics implements foreach ($params as $config) { $bits = explode('=', $config); - if (\count($bits) < 2) { + if (count($bits) < 2) { continue; } |
