Skip to content

Commit ff78d79

Browse files
committed
[TASK][BREAKING] Rename getCurrentInstance to getLocalInstance
1 parent c33aed4 commit ff78d79

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog
33
---------
44

5+
master
6+
~~~~~
7+
8+
a) [TASK][BREAKING] Rename getCurrentInstance to getLocalInstance
9+
10+
511
2.0.0
612
~~~~~
713

src/Instance.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Instance
66
{
7-
public function getCurrentInstance()
7+
public function getLocalInstance()
88
{
99
if (getenv('INSTANCE') === false) {
1010
$configFile = getcwd() . '/.env';
@@ -15,9 +15,9 @@ public function getCurrentInstance()
1515
}
1616
if (getenv('INSTANCE') === false) {
1717
throw new \Exception('INSTANCE var is no set. Please
18-
set one of them with the name of INSTANCE which should corenspond to server() name.', 1500717953824);
18+
set one of them with the name of INSTANCE which should corresponds to host() name.', 1500717953824);
1919
}
2020
}
2121
return getenv('INSTANCE');
2222
}
23-
}
23+
}

0 commit comments

Comments
 (0)