Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-03-16 16:51:14 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-03-17 22:33:39 +0300
commit0e77103f4ec86f037858ee4a59a4e5afc88f0e09 (patch)
tree9153a9ba3a1a9d4a0620c0af2bab3c43de7d8835 /lib
parent275b70bcbdde46a11d36ec793cdaa7658a0bc692 (diff)
Return something for getOsName
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Os.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Os.php b/lib/Os.php
index 80114b9..231727b 100644
--- a/lib/Os.php
+++ b/lib/Os.php
@@ -47,9 +47,6 @@ class Os {
/** @var */
protected $backend;
- /** @var */
- protected $osname;
-
/**
* Os constructor.
*
@@ -90,9 +87,8 @@ class Os {
/**
* @return string
*/
- public function getOSName() {
- $data = $this->osname;
- return $data;
+ public function getOSName(): string {
+ return PHP_OS . ' ' . php_uname('r') . ' ' . php_uname('m');
}
/**