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

Commit a0549c2

Browse files
committed
Move common app data directory method to UnixSystem
1 parent fb1ebfd commit a0549c2

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/System/BsdSystem.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,4 @@ public function getOperativeSystem()
1111
{
1212
return self::OS_BSD;
1313
}
14-
15-
/** @return string */
16-
public function getAppDataDirectory()
17-
{
18-
return $this->getCurrentUserHome().'/.jupyter-php';
19-
}
2014
}

src/System/LinuxSystem.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,4 @@ public function getOperativeSystem()
1111
{
1212
return self::OS_LINUX;
1313
}
14-
15-
/** @return string */
16-
public function getAppDataDirectory()
17-
{
18-
return $this->getCurrentUserHome().'/.jupyter-php';
19-
}
2014
}

src/System/UnixSystem.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ public function checkIfCommandExists($cmdName)
5050
return filter_var($sysResponse, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
5151
}
5252

53+
/** @return string */
54+
public function getAppDataDirectory()
55+
{
56+
return $this->getCurrentUserHome().'/.jupyter-php';
57+
}
58+
5359
/**
5460
* Returns true if the path is a "valid" path and is writable (even if the complete path does not yet exist).
5561
* @param string $path

0 commit comments

Comments
 (0)