Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-integrator fusiondirectory-integrator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-integratorfusiondirectory-integrator
  • Merge requests
  • !55
An error occurred while fetching the assigned milestone of the selected merge_request.

Resolve "[Integrator] - Rest library - update to allow easy trigger of archiving objects"

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged dockx thibault requested to merge 44-integrator-rest-library-update-to-allow-easy-trigger-of-archiving-objects into dev 1 month ago
  • Overview 0
  • Commits 4
  • Pipelines 5
  • Changes 2

Related to #44

Viewing commit 052c1cde
Prev
Show latest version
2 files
+ 24
− 16

    Preferences

    File browser
    Compare changes
  • Verified
    052c1cde
    dockx thibault
    :art: Refactor(WebServiceCall) - clean up code formatting and update .gitignore for IDE files · 052c1cde
    dockx thibault authored 1 month ago
src/FusionDirectory/Rest/WebServiceCall.php
+ 16
− 16
  • View file @ 052c1cde

  • Edit in single-file editor

  • Open in Web IDE


@@ -77,7 +77,7 @@ class WebServiceCall
if (!empty($this->data)) {
curl_setopt($this->ch, CURLOPT_POSTFIELDS, json_encode($this->data));
}
curl_setopt($this->ch, CURLOPT_USERAGENT, $customUserAgent);
break;
}
@@ -206,12 +206,12 @@ class WebServiceCall
return $response;
}
/**
* @return array
* @throws \Exception
*/
public function execute(): array
{
/**
* @return array
* @throws \Exception
*/
public function execute (): array
{
$response = curl_exec($this->ch);
// Capture the HTTP status code
@@ -225,7 +225,7 @@ public function execute(): array
return []; // Return an empty array for 204 responses
}
$decoded = json_decode($response, true);
$decoded = json_decode($response, TRUE);
curl_close($this->ch);
if (!is_array($decoded)) {
@@ -233,16 +233,16 @@ public function execute(): array
}
return $decoded;
}
}
/**
* Retrieve the HTTP status code of the last request
* @return int
*/
public function getHttpStatusCode(): int
{
/**
* Retrieve the HTTP status code of the last request
* @return int
*/
public function getHttpStatusCode (): int
{
return $this->httpStatusCode;
}
}
}
.gitignore
+ 8
− 0
  • View file @ 052c1cde

  • Edit in single-file editor

  • Open in Web IDE

.directory
filelist
phpstan-baseline.neon
phpstan.neon
.idea/.gitignore
.idea/fusiondirectory-integrator.iml
.idea/modules.xml
.idea/php.xml
.idea/vcs.xml
Assignee
dockx thibault's avatar
dockx thibault
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 Participants
Reference:
Source branch: 44-integrator-rest-library-update-to-allow-easy-trigger-of-archiving-objects

Menu

Explore Projects Groups Topics Snippets