Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 0b75351

Browse files
author
mattpass
committed
Remove void return type, not avail till PHP 7.1
1 parent 1ccf01b commit 0b75351

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

classes/Settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function updateConfigUsersSettings($fileName, $array): bool
171171
return $this->setConfigUsersSettings($fileName, $settings);
172172
}
173173

174-
public function updateConfigUsersCreateDate($fileName): void
174+
public function updateConfigUsersCreateDate($fileName)
175175
{
176176
global $ICEcoderUserSettings;
177177

@@ -191,7 +191,7 @@ public function updateConfigUsersCreateDate($fileName): void
191191
$ICEcoderUserSettings['configCreateDate'] = $filemtime;
192192
}
193193

194-
public function createIPSettingsFileIfNotExist(): void
194+
public function createIPSettingsFileIfNotExist()
195195
{
196196
global $username, $settingsFile, $settingsFileAddr;
197197

classes/System.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class System
77
/**
88
* @param $path
99
*/
10-
private function createDirIfNotExists($path): void
10+
private function createDirIfNotExists($path)
1111
{
1212
if (false === file_exists($path)) {
1313
mkdir($path);
@@ -26,7 +26,7 @@ public function getOS() {
2626
}
2727
}
2828

29-
public function setErrorHandling(): void
29+
public function setErrorHandling()
3030
{
3131
// Don't display, but log all errors
3232
ini_set('display_errors', '0');
@@ -41,7 +41,7 @@ public function setErrorHandling(): void
4141
* @param $file
4242
* @param $msg
4343
*/
44-
public function writeLog($file, $msg): void
44+
public function writeLog($file, $msg)
4545
{
4646
$this->createDirIfNotExists(dirname(__FILE__) . '/../data/logs');
4747
$this->createDirIfNotExists(dirname(__FILE__) . '/../data/logs/processes');
@@ -50,7 +50,7 @@ public function writeLog($file, $msg): void
5050
fclose($fh);
5151
}
5252

53-
public function setTimeZone(): void
53+
public function setTimeZone()
5454
{
5555
// Set our default timezone and suppress warning with @
5656
@date_default_timezone_set(date_default_timezone_get());
@@ -74,7 +74,7 @@ public function setStreamContext()
7474
/**
7575
* @param $path
7676
*/
77-
public function invalidateOPCache($path): void
77+
public function invalidateOPCache($path)
7878
{
7979
if (function_exists('opcache_invalidate')) {
8080
opcache_invalidate($path, true);

classes/_ExtraProcesses.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct($fileLoc = "", $fileName = "")
2828
* @param $action
2929
* @param string $msg
3030
*/
31-
private function writeLog($action, $msg = ""): void
31+
private function writeLog($action, $msg = "")
3232
{
3333
$username = "" !== $this->username ? $this->username : "default-user";
3434

@@ -56,7 +56,7 @@ public function onLoad($doNext = ""): string
5656
/**
5757
*
5858
*/
59-
public function onFileLoad(): void
59+
public function onFileLoad()
6060
{
6161
// PHP example:
6262
// $this->writeLog("FILE LOAD");
@@ -225,7 +225,7 @@ public function onFileDirPerms($doNext = "", $perms = "unknown"): string
225225
/**
226226
* @param string $username
227227
*/
228-
public function onUserNew($username = ""): void
228+
public function onUserNew($username = "")
229229
{
230230
// PHP example:
231231
// $this->writeLog("USER NEW", $username ?? "");
@@ -234,7 +234,7 @@ public function onUserNew($username = ""): void
234234
/**
235235
* @param string $username
236236
*/
237-
public function onUserLogin($username = ""): void
237+
public function onUserLogin($username = "")
238238
{
239239
// PHP example:
240240
// $this->writeLog("USER LOGIN", $username ?? "");
@@ -243,7 +243,7 @@ public function onUserLogin($username = ""): void
243243
/**
244244
* @param string $username
245245
*/
246-
public function onUserLogout($username = ""): void
246+
public function onUserLogout($username = "")
247247
{
248248
// PHP example:
249249
// $this->writeLog("USER LOGOUT", $username ?? "");
@@ -252,7 +252,7 @@ public function onUserLogout($username = ""): void
252252
/**
253253
* @param string $username
254254
*/
255-
public function onUserLoginFail($username = ""): void
255+
public function onUserLoginFail($username = "")
256256
{
257257
// PHP example:
258258
// $this->writeLog("USER LOGIN FAIL", $username ?? "");
@@ -262,7 +262,7 @@ public function onUserLoginFail($username = ""): void
262262
* @param string $result
263263
* @param string $status
264264
*/
265-
public function onBugCheckResult($result = "", $status = ""): void
265+
public function onBugCheckResult($result = "", $status = "")
266266
{
267267
// PHP example:
268268
// $this->writeLog("BUG CHECK", $result . " : ". var_export($status, true));

0 commit comments

Comments
 (0)