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 Oct 26, 2023
1 parent 3dda7c4 commit 11377d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Web/event/errorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public function error(string $function, string $message, string $code): void

public function sessionRequired(string $function): void
{
$this->error($function,'Internal Server Error - An active PHP session is required to run this function.', 500);
$this->error($function, 'Internal Server Error - An active PHP session is required to run this function.', 500);
}
}
}
5 changes: 2 additions & 3 deletions Web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
* @author Lewis Milburn
* @license Apache 2.0 International License
*/

ob_start();
session_start();

require_once __DIR__ . '/loader.php';
require_once __DIR__.'/loader.php';

ob_end_flush();
ob_end_flush();
12 changes: 6 additions & 6 deletions Web/loader.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

require_once __DIR__ . '/data/fileManager.php';
require_once __DIR__ . '/data/databaseManager.php';
require_once __DIR__ . '/data/dataManager.php';
require_once __DIR__.'/data/fileManager.php';
require_once __DIR__.'/data/databaseManager.php';
require_once __DIR__.'/data/dataManager.php';

require_once __DIR__ . '/authentication/authenticationManager.php';
require_once __DIR__ . '/authentication/tokenManager.php';
require_once __DIR__.'/authentication/authenticationManager.php';
require_once __DIR__.'/authentication/tokenManager.php';

require_once __DIR__ . '/event/errorHandler.php';
require_once __DIR__.'/event/errorHandler.php';

0 comments on commit 11377d3

Please sign in to comment.