Skip to content

Commit

Permalink
Revert "Apply fixes from StyleCI"
Browse files Browse the repository at this point in the history
This reverts commit 915f0b6.
  • Loading branch information
ArthurHetem committed Jan 21, 2025
1 parent 915f0b6 commit 60afb20
Show file tree
Hide file tree
Showing 387 changed files with 1,568 additions and 1,793 deletions.
2 changes: 1 addition & 1 deletion app/Bootstrap/LoadConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class LoadConfiguration extends \Illuminate\Foundation\Bootstrap\LoadConfigurati
{
/**
* Load the configuration items from all of the files. This reads the config.php from
* that's sitting in the root, and then recursively merges it with the current configs.
* that's sitting in the root, and then recursively merges it with the current configs
*
*
* @throws \Exception
Expand Down
24 changes: 12 additions & 12 deletions app/Console/Commands/AcarsReplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class AcarsReplay extends Command
protected $description = 'Replay an ACARS file';

/**
* API Key to post as.
* API Key to post as
*/
protected string $apiKey = 'testadminapikey';

/**
* For automatic updates, how many seconds to sleep between updates.
* For automatic updates, how many seconds to sleep between updates
*/
protected int $sleepTime = 10;

Expand All @@ -32,7 +32,7 @@ class AcarsReplay extends Command
protected Client $httpClient;

/**
* Return an instance of an HTTP client all ready to post.
* Return an instance of an HTTP client all ready to post
*/
public function __construct()
{
Expand All @@ -47,7 +47,7 @@ public function __construct()
}

/**
* Make a request to start a PIREP.
* Make a request to start a PIREP
*
* @param \stdClass $flight
*
Expand Down Expand Up @@ -82,12 +82,12 @@ protected function startPirep($flight): string
}

/**
* Mark the PIREP as filed.
* Mark the PIREP as filed
*
*
* @throws \RuntimeException
*
* @return mixed
*
* @throws \RuntimeException
*/
protected function filePirep($pirep_id)
{
Expand All @@ -101,9 +101,9 @@ protected function filePirep($pirep_id)
}

/**
* @throws \RuntimeException
*
* @return array
*
* @throws \RuntimeException
*/
protected function postUpdate($pirep_id, $data)
{
Expand Down Expand Up @@ -151,7 +151,7 @@ protected function postUpdate($pirep_id, $data)
}

/**
* Parse this file and run the updates.
* Parse this file and run the updates
*
*
* @throws \RuntimeException
Expand Down Expand Up @@ -227,9 +227,9 @@ protected function updatesFromFile(array $files)
/**
* Execute the console command.
*
* @throws \RuntimeException
*
* @return mixed
*
* @throws \RuntimeException
*/
public function handle(): void
{
Expand Down
8 changes: 3 additions & 5 deletions app/Console/Commands/ClearCaches.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ public static function clearCaches()
}

/**
* Clear the bootstrap/cache dir.
* Clear the bootstrap/cache dir
*/
private static function clearBootstrapCache()
{
}
private static function clearBootstrapCache() {}

/**
* Rescan for new modules.
* Rescan for new modules
*/
private static function clearModuleCache()
{
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/ComposerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ComposerCommand extends Command
protected $description = 'Composer related tasks';

/**
* Run composer update related commands.
* Run composer update related commands
*/
public function handle()
{
Expand All @@ -26,7 +26,7 @@ public function handle()
}

/**
* Any composer post update tasks.
* Any composer post update tasks
*/
protected function postUpdate(): void
{
Expand Down
6 changes: 3 additions & 3 deletions app/Console/Commands/CreateConfigs.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Illuminate\Support\Facades\App;

/**
* Create the config files.
* Create the config files
*/
class CreateConfigs extends Command
{
Expand All @@ -27,7 +27,7 @@ public function __construct(
}

/**
* Run dev related commands.
* Run dev related commands
*
* @throws \Symfony\Component\HttpFoundation\File\Exception\FileException
*/
Expand All @@ -44,7 +44,7 @@ public function handle()
}

/**
* Rewrite the configuration files.
* Rewrite the configuration files
*
* @throws \Symfony\Component\HttpFoundation\File\Exception\FileException
*/
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/CreateDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct()
}

/**
* Create the mysql database.
* Create the mysql database
*
*
* @return bool
Expand Down Expand Up @@ -75,7 +75,7 @@ protected function create_mysql_or_mariadb($dbkey)
}

/**
* Create the sqlite database.
* Create the sqlite database
*/
protected function create_sqlite($dbkey)
{
Expand Down
22 changes: 11 additions & 11 deletions app/Console/Commands/DevCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(DatabaseService $dbSvc)
}

/**
* Run dev related commands.
* Run dev related commands
*/
public function handle()
{
Expand Down Expand Up @@ -74,7 +74,7 @@ public function handle()
}

/**
* List all award classes.
* List all award classes
*/
protected function listAwardClasses()
{
Expand All @@ -91,7 +91,7 @@ protected function listAwardClasses()
}

/**
* Delete all the data from the ACARS and PIREP tables.
* Delete all the data from the ACARS and PIREP tables
*/
protected function clearAcars()
{
Expand All @@ -110,7 +110,7 @@ protected function clearAcars()
}

/**
* Delete all the data from the ACARS and PIREP tables.
* Delete all the data from the ACARS and PIREP tables
*/
protected function clearUsers()
{
Expand All @@ -131,7 +131,7 @@ protected function clearUsers()

/**
* Compile all the CSS/JS assets into their respective files
* Calling the webpack compiler.
* Calling the webpack compiler
*/
protected function compileAssets()
{
Expand All @@ -140,7 +140,7 @@ protected function compileAssets()
}

/**
* Output DB prepares versions.
* Output DB prepares versions
*/
protected function dbAttrs()
{
Expand All @@ -156,7 +156,7 @@ protected function dbAttrs()
}

/**
* Convert the sequelpro xml export to yaml.
* Convert the sequelpro xml export to yaml
*/
protected function xmlToYaml()
{
Expand Down Expand Up @@ -207,7 +207,7 @@ protected function getMetar(): void
}

/**
* Insert the rows from the file, manually advancing each row.
* Insert the rows from the file, manually advancing each row
*/
protected function manualInsert(): void
{
Expand Down Expand Up @@ -237,7 +237,7 @@ protected function manualInsert(): void
}

/**
* Recalculate the stats for all users.
* Recalculate the stats for all users
*/
protected function recalculateStats(): void
{
Expand All @@ -246,7 +246,7 @@ protected function recalculateStats(): void
}

/**
* Delete all of the tables, etc from the database, for a clean install.
* Delete all of the tables, etc from the database, for a clean install
*/
protected function resetInstall(): void
{
Expand Down Expand Up @@ -293,7 +293,7 @@ protected function resetInstall(): void
}

/**
* Test sending a user a registered email.
* Test sending a user a registered email
*/
protected function newUserEmail()
{
Expand Down
6 changes: 3 additions & 3 deletions app/Console/Commands/DevInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use App\Services\Installer\ConfigService;

/**
* Create a fresh development install.
* Create a fresh development install
*/
class DevInstall extends Command
{
Expand All @@ -24,7 +24,7 @@ public function __construct(\DatabaseSeeder $databaseSeeder)
}

/**
* Run dev related commands.
* Run dev related commands
*
* @throws \Symfony\Component\HttpFoundation\File\Exception\FileException
*/
Expand All @@ -51,7 +51,7 @@ public function handle()
}

/**
* Rewrite the configuration files.
* Rewrite the configuration files
*
* @throws \Symfony\Component\HttpFoundation\File\Exception\FileException
*/
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class EmailTest extends Command
protected $description = 'Send a test notification to admins';

/**
* Run dev related commands.
* Run dev related commands
*
* @throws \Symfony\Component\HttpFoundation\File\Exception\FileException
*/
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/ImportCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public function __construct(ImportService $importer)
}

/**
* @throws \Illuminate\Validation\ValidationException
*
* @return mixed|void
*
* @throws \Illuminate\Validation\ValidationException
*/
public function handle()
{
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/ImportFromClassicCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ImportFromClassicCommand extends Command
protected $description = 'Import from an older version of phpVMS';

/**
* Run dev related commands.
* Run dev related commands
*/
public function handle()
{
Expand Down
6 changes: 3 additions & 3 deletions app/Console/Commands/NavdataImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class NavdataImport extends Command
protected $description = '';

/**
* @throws \League\Geotools\Exception\InvalidArgumentException
*
* @return void
*
* @throws \League\Geotools\Exception\InvalidArgumentException
*/
public function handle()
{
Expand All @@ -28,7 +28,7 @@ public function handle()
}

/**
* Read and parse in the navaid file.
* Read and parse in the navaid file
*
* @throws \League\Geotools\Exception\InvalidArgumentException
*/
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/PirepExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PirepExport extends Command
protected $description = 'PIREP table export';

/**
* Run dev related commands.
* Run dev related commands
*/
public function handle()
{
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/ProcessQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ProcessQueue extends Command
protected $description = 'Process the queue from a cron job';

/**
* Run the queue tasks.
* Run the queue tasks
*/
public function handle()
{
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/RewriteConfigs.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use App\Services\Installer\ConfigService;

/**
* Command to rewrite the config files.
* Command to rewrite the config files
*/
class RewriteConfigs extends Command
{
Expand All @@ -15,7 +15,7 @@ class RewriteConfigs extends Command
protected $description = 'Rewrite the config files';

/**
* Run dev related commands.
* Run dev related commands
*/
public function handle()
{
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/TestApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TestApi extends Command
protected Client $httpClient;

/**
* Run dev related commands.
* Run dev related commands
*/
public function handle()
{
Expand Down
Loading

0 comments on commit 60afb20

Please sign in to comment.