Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Feb 16, 2024
1 parent 756ed09 commit 519c696
Show file tree
Hide file tree
Showing 47 changed files with 153 additions and 94 deletions.
2 changes: 1 addition & 1 deletion src/AbstractSeatPlugin.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/Commands/Seat/Admin/Email.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/Commands/Seat/Version.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/Config/services.config.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/Contracts/EsiClient.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/Contracts/EsiResponse.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/Contracts/EsiToken.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/Exceptions/EveImageException.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/Exceptions/FilterException.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/Exceptions/SettingException.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
22 changes: 21 additions & 1 deletion src/Facades/DeferredMigration.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\Services\Facades;

use Closure;
Expand All @@ -15,4 +35,4 @@ protected static function getFacadeAccessor(): string
{
return DeferredMigrationRegistry::class;
}
}
}
24 changes: 12 additions & 12 deletions src/Helpers/AnalyticsContainer.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 @@ -43,14 +43,14 @@ class AnalyticsContainer implements ArrayAccess
'type' => null, // Hit Type

// Event Values
'ec' => null, // Event Category
'ea' => null, // Event Action
'el' => null, // Event Label
'ev' => null, // Event Value
'ec' => null, // Event Category
'ea' => null, // Event Action
'el' => null, // Event Label
'ev' => null, // Event Value

// Exception Values
'exd' => null, // Exception Description
'exf' => null, // Is Fatal Exception?
'exd' => null, // Exception Description
'exf' => null, // Is Fatal Exception?
];

/**
Expand Down Expand Up @@ -93,7 +93,7 @@ public function offsetUnset(mixed $offset): void
}

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

/**
* @param $key
* @param $val
* @param $key
* @param $val
*/
public function __set($key, $val)
{
Expand All @@ -113,8 +113,8 @@ public function __set($key, $val)
}

/**
* @param $key
* @param $val
* @param $key
* @param $val
* @return $this
*/
public function set($key, $val): self
Expand Down
12 changes: 6 additions & 6 deletions src/Helpers/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ function evemail_threads($message)

// Message headers array.
$headers = [
'subject' => null,
'from' => null,
'sent' => null,
'to' => null,
'message' => null,
'subject' => null,
'from' => null,
'sent' => null,
'to' => null,
'message' => null,
'headers_ok' => false,
];

Expand Down Expand Up @@ -309,7 +309,7 @@ function number_roman($number)
{

$map = [
'M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50,
'M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50,
'XL' => 40, 'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1,
];

Expand Down
6 changes: 3 additions & 3 deletions src/Image/Eve.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 @@ -136,7 +136,7 @@ public function __construct(string $type, string $variation, ?int $id, int $size
* Attempt to detect the image type based on the
* range in which an integer falls.
*
* @param $id
* @param $id
* @return string
*/
public function detect_type($id)
Expand Down Expand Up @@ -213,7 +213,7 @@ public function html()
}

/**
* @param $size
* @param $size
* @return string
*/
public function url($size)
Expand Down
14 changes: 7 additions & 7 deletions src/Jobs/Analytics.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 @@ -157,7 +157,7 @@ private function send($type, array $query)

$client = new Client([
'base_uri' => 'https://www.google-analytics.com/',
'timeout' => 5.0,
'timeout' => 5.0,
]);

// Check if we are in debug mode
Expand All @@ -172,17 +172,17 @@ private function send($type, array $query)

// Required Fields
// https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#required
'v' => 1, // Protocol Version
'v' => 1, // Protocol Version
'tid' => $this->tracking_id, // Google Tracking-ID
'cid' => $this->getClientID(), // Unique Client-ID
't' => $type, // Event
't' => $type, // Event

// Optional Fields
'aip' => 1, // Anonymize the IP of the calling client
'an' => 'SeAT', // App Name
'an' => 'SeAT', // App Name

// Versions of the currently installed packages.
'av' => $versions->implode(', '),
'av' => $versions->implode(', '),

// User Agent is comprised of OS Name(s), Release(r)
// and Machine Type(m). Examples:
Expand All @@ -191,7 +191,7 @@ private function send($type, array $query)
//
// See:
// http://php.net/manual/en/function.php-uname.php
'ua' => 'SeAT/' . php_uname('s') .
'ua' => 'SeAT/' . php_uname('s') .
'/' . php_uname('r') .
'/' . php_uname('m'),

Expand Down
22 changes: 21 additions & 1 deletion src/Listeners/RunDeferredMigrations.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\Services\Listeners;

use Illuminate\Contracts\Container\BindingResolutionException;
Expand All @@ -16,4 +36,4 @@ public function handle(MigrationsEnded $event) {

$registry->runMigrations();
}
}
}
8 changes: 4 additions & 4 deletions src/ReportParser/Elements/Element.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 @@ -47,15 +47,15 @@ public function __construct(array $fields)
}

/**
* @param $field
* @param $field
*/
public function add($field)
{
array_push($this->fields, $field);
}

/**
* @param $field
* @param $field
*/
public function remove($field)
{
Expand All @@ -81,7 +81,7 @@ public function isEmpty(): bool
}

/**
* @param $name
* @param $name
* @return mixed
*
* @throws \ErrorException
Expand Down
2 changes: 1 addition & 1 deletion src/ReportParser/Elements/Group.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/ReportParser/Exceptions/EmptyReportException.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
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/ReportParser/Exceptions/InvalidReportException.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
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 519c696

Please sign in to comment.