Skip to content

Commit 14256bc

Browse files
committed
removed .idea from .gitignore; resolving Endpoint unified
1 parent 2b470e5 commit 14256bc

File tree

9 files changed

+9
-10
lines changed

9 files changed

+9
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ vendor/
33
.phpunit.result.cache
44
.phpunit.cache/test-results
55
.phpdoc/
6-
.idea
76
.idea/dataSources.xml
87
.idea/**/tasks.xml
98
.idea/**/usage.statistics.xml

src/Controller/ODCFF.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function get(string $identifier): Response
167167
$formula = $mashupDoc->createElement('Formula');
168168
$formulaContent = $mashupDoc->createCDATASection(sprintf(
169169
'let Source = OData.Feed("%1$s", null, [Implementation="2.0"]), %2$s_table = Source{[Name="%2$s",Signature="table"]}[Data] in %2$s_table',
170-
app()->make(Endpoint::class)->endpoint(),
170+
app(Endpoint::class)->endpoint(),
171171
$resourceId,
172172
));
173173
$formula->appendChild($formulaContent);

src/Controller/PBIDS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function get(): Response
4444
'details' => [
4545
'protocol' => 'odata',
4646
'address' => [
47-
'url' => app()->make(Endpoint::class)->endpoint(),
47+
'url' => app(Endpoint::class)->endpoint(),
4848
],
4949
],
5050
],

src/Controller/Transaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public function getPath(): string
785785
*/
786786
public function getRequestPath(): string
787787
{
788-
$route = app()->make(Endpoint::class)->route();
788+
$route = app(Endpoint::class)->route();
789789
return Str::substr($this->request->path(), strlen($route));
790790
}
791791

@@ -963,7 +963,7 @@ public function getContextUrl(): string
963963
*/
964964
public static function getResourceUrl(): string
965965
{
966-
return app()->make(Endpoint::class)->endpoint();
966+
return app(Endpoint::class)->endpoint();
967967
}
968968

969969
/**

src/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static function pipe(
179179
}
180180

181181
$entityId = $id->getValue();
182-
$endpoint = app()->make(Endpoint::class)->endpoint();
182+
$endpoint = app(Endpoint::class)->endpoint();
183183
if (Str::startsWith($entityId, $endpoint)) {
184184
$entityId = Str::substr($entityId, strlen($endpoint));
185185
}

src/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function discover($discoverable): self
344344
*/
345345
public function getEndpoint(): string
346346
{
347-
return app()->make(Endpoint::class)->endpoint();
347+
return app(Endpoint::class)->endpoint();
348348
}
349349

350350
/**

src/PathSegment/Batch/JSON.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function emitJson(Transaction $transaction): void
5959

6060
$requestURI = $requestData['url'];
6161

62-
$endpoint = app()->make(Endpoint::class)->endpoint();
62+
$endpoint = app(Endpoint::class)->endpoint();
6363
switch (true) {
6464
case Str::startsWith($requestURI, '/'):
6565
$uri = Url::http_build_url(

src/PathSegment/OpenAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function emitJson(Transaction $transaction): void
400400

401401
$queryObject->tags = [__('lodata::Batch requests')];
402402

403-
$route = app()->make(Endpoint::class)->route();
403+
$route = app(Endpoint::class)->route();
404404

405405
$requestBody = [
406406
'required' => true,

src/Transaction/MultipartDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function toRequest(): Request
163163

164164
list($method, $requestURI, $httpVersion) = array_pad(explode(' ', $requestLine), 3, '');
165165

166-
$endpoint = app()->make(Endpoint::class)->endpoint();
166+
$endpoint = app(Endpoint::class)->endpoint();
167167
switch (true) {
168168
case Str::startsWith($requestURI, '/'):
169169
$uri = Url::http_build_url(

0 commit comments

Comments
 (0)