Skip to content

Commit d27cee8

Browse files
committed
refactor: Rename getAllFromFlexibee to getAllFromAbraFlexi and ignoreNotFound to ignore404, and correct demo bootstrap path.
1 parent 3bb3f10 commit d27cee8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Examples/demo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace AbraFlexi;
1616

17-
require_once '../test/bootstrap.php';
17+
require_once '../tests/bootstrap.php';
1818

1919
echo _('FlexiBee Connection Test')."\n\n";
2020

@@ -27,7 +27,7 @@
2727
}
2828

2929
$company = new Company();
30-
$info = $company->getAllFromFlexibee();
30+
$info = $company->getAllFromAbraFlexi();
3131

3232
if (isset($info) && \count($info)) {
3333
foreach ($info as $companyInfo) {

src/AbraFlexi/Adresar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ public function getCellPhoneNumber(string $purpose = '')
147147
public function getAnyPhoneNumber(string $purpose = '')
148148
{
149149
$phoneNo = null;
150-
$ignoreState = $this->ignoreNotFound();
150+
$ignoreState = $this->ignore404();
151151
$this->ignore404(true);
152152
$numbersRaw = $this->getFlexiData(
153153
$this->getApiURL(),
154154
['detail' => 'custom:id,mobil,tel,kontakty(primarni,mobil,tel,odesilatFak,odesilatObj,odesilatNab,odesilatPpt,odesilatSkl,odesilatPok)', 'relations' => 'kontakty'],
155155
);
156-
$this->ignoreNotFound($ignoreState);
156+
$this->ignore404($ignoreState);
157157

158158
if (\is_array($numbersRaw) && !empty($numbersRaw[0])) {
159159
$numbers = $numbersRaw[0];

0 commit comments

Comments
 (0)