Skip to content

Commit

Permalink
style: styleci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samerton committed Mar 9, 2024
1 parent 1e7eec4 commit b4ba2bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/classes/Core/Input.php
Expand Up @@ -20,11 +20,11 @@ public static function exists(string $type = 'post'): bool
{
switch ($type) {
case 'post':
// Check the $_POST variable
return !empty($_POST);
// Check the $_POST variable
return !empty($_POST);
case 'get':
// Check the $_GET variable
return !empty($_GET);
// Check the $_GET variable
return !empty($_GET);
default:
// Otherwise, return false
return false;
Expand Down
4 changes: 2 additions & 2 deletions core/migrations/20220518025817_create_users_groups_table.php
Expand Up @@ -17,8 +17,8 @@ public function change(): void
->addColumn('expire', 'integer', ['length' => 11, 'default' => 0]);

$table
->addForeignKey('user_id', 'nl2_users', 'id', ['delete'=> 'CASCADE', 'update'=> 'CASCADE'])
->addForeignKey('group_id', 'nl2_groups', 'id', ['delete'=> 'CASCADE', 'update'=> 'CASCADE']);
->addForeignKey('user_id', 'nl2_users', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE'])
->addForeignKey('group_id', 'nl2_groups', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE']);

$table
->addIndex(['user_id', 'group_id'], ['unique' => true]);
Expand Down

0 comments on commit b4ba2bc

Please sign in to comment.