Skip to content

Commit 125e70b

Browse files
committed
[FIX] Namespace problems
* Convert to PSR-4
1 parent 241edc9 commit 125e70b

40 files changed

Lines changed: 196 additions & 1124 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $results = $affiliationSearch
7171

7272
Example `JSON` response:
7373

74-
```
74+
```json
7575
{
7676
"search-results": {
7777
"opensearch:totalResults": "992",
@@ -162,7 +162,7 @@ $results = $authorSearch
162162

163163
Example `JSON` response:
164164

165-
```
165+
```json
166166
{
167167
"search-results": {
168168
"opensearch:totalResults": "1",
@@ -268,7 +268,7 @@ $results = $scopusSearch
268268

269269
Example `JSON` response:
270270

271-
```
271+
```json
272272
{
273273
"search-results": {
274274
"opensearch:totalResults": "432",
@@ -390,7 +390,7 @@ For example:
390390

391391
Example `JSON` response:
392392

393-
```
393+
```json
394394
{
395395
"abstracts-retrieval-response": {
396396
"coredata": {

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
"homepage": "https://github.com/hbll-collection-development/scopus-api",
55
"license": "MIT",
66
"autoload": {
7-
"psr-0": {
8-
"Scopus": "src"
7+
"psr-4": {
8+
"Scopus\\": "src"
99
}
1010
},
1111
"authors": [
1212
{
1313
"name": "Jared Howland",
14-
"homepage": "http://jaredhowland.com",
14+
"homepage": "https://www.jaredhowland.com",
1515
"role": "developer"
1616
}
1717
],
1818
"require": {
1919
"php": ">=7.0",
20-
"guzzlehttp/guzzle": "^7.0"
20+
"guzzlehttp/guzzle": "^7.0",
21+
"symfony/yaml": "^6.2"
2122
}
2223
}

composer.lock

Lines changed: 157 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/AuthorSearch.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ public function search()
6363

6464
return $this->getJson($this->url.$this->id, $search);
6565
}
66-
}
66+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ public function search()
5252

5353
return $this->getJson($this->url.$this->id, $search);
5454
}
55-
}
55+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ public function search()
3131

3232
return $this->getJson(self::AFFILIATION_SEARCH, $search);
3333
}
34-
}
34+
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ public function search()
5656
return $this->getJson(self::AUTHOR_RETRIEVAL, $search);
5757
}
5858
}
59-
?>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @author Jared Howland <scopus@jaredhowland.com>
88
*
9-
* @version 2017-11-29
9+
* @version 2023-05-24
1010
*
1111
* @since 2017-11-29
1212
*/
@@ -40,4 +40,4 @@ public function search()
4040

4141
return $this->getJson(self::AUTHOR_SEARCH, $search);
4242
}
43-
}
43+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ public function search()
3030

3131
return $this->getJson(self::CITATIONS_COUNT, $search);
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)