mirror of
https://github.com/friendica/friendica
synced 2025-05-06 15:44:11 +02:00
Rewrite:
- avoid having array|string for $table to have a "string" type-hint for $table - you now have to do it for yourself by giving 'schema.table' as parameter
This commit is contained in:
parent
f62c28008a
commit
44a9ec9b17
8 changed files with 89 additions and 93 deletions
|
@ -97,7 +97,8 @@ class PidFile
|
|||
*
|
||||
* @return boolean|string PID or "false" if not created
|
||||
*/
|
||||
static public function create($file) {
|
||||
static public function create(string $file)
|
||||
{
|
||||
$pid = self::pidFromFile($file);
|
||||
|
||||
// We have a process id? then we quit
|
||||
|
@ -119,7 +120,8 @@ class PidFile
|
|||
*
|
||||
* @return boolean Is it running?
|
||||
*/
|
||||
static public function delete($file) {
|
||||
static public function delete(string $file): bool
|
||||
{
|
||||
return @unlink($file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue