@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Psr\Http\Message\UriInterface; |
| 8 | 8 | use Scriptotek\Alma\Bibs\Bib; |
| 9 | 9 | use Scriptotek\Alma\Bibs\Bibs; |
| 10 | -use Scriptotek\Alma\Bibs\Holding; |
|
| 11 | 10 | use Scriptotek\Alma\Bibs\Holdings; |
| 12 | 11 | use Scriptotek\Alma\Client as AlmaClient; |
| 13 | 12 | use Scriptotek\Alma\Exception\ResourceNotFound; |
@@ -21,6 +21,10 @@ |
||
| 21 | 21 | $this->beConstructedWith($client, '999104760474702204'); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param AlmaClient $client |
|
| 26 | + * @param UriInterface $url |
|
| 27 | + */ |
|
| 24 | 28 | protected function expectRequest($client, $url) |
| 25 | 29 | { |
| 26 | 30 | $client->buildUrl('/bibs/999104760474702204', []) |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\Scriptotek\Alma\Bibs; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | 6 | use Psr\Http\Message\UriInterface; |
| 8 | 7 | use Scriptotek\Alma\Bibs\Bib; |
| 9 | 8 | use Scriptotek\Alma\Bibs\Holding; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Scriptotek\Alma\Client as AlmaClient; |
| 6 | 6 | use Scriptotek\Alma\Conf\Library; |
| 7 | 7 | use PhpSpec\ObjectBehavior; |
| 8 | -use Prophecy\Argument; |
|
| 9 | 8 | use Scriptotek\Alma\Conf\Locations; |
| 10 | 9 | |
| 11 | 10 | class LibrarySpec extends ObjectBehavior |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Scriptotek\Alma\Conf\Library; |
| 7 | 7 | use Scriptotek\Alma\Conf\Location; |
| 8 | 8 | use PhpSpec\ObjectBehavior; |
| 9 | -use Prophecy\Argument; |
|
| 10 | 9 | |
| 11 | 10 | class LocationSpec extends ObjectBehavior |
| 12 | 11 | { |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use Scriptotek\Alma\Bibs\Bibs; |
| 22 | 22 | use Scriptotek\Alma\Bibs\Items; |
| 23 | 23 | use Scriptotek\Alma\Conf\Conf; |
| 24 | -use Scriptotek\Alma\Conf\Libraries; |
|
| 25 | 24 | use Scriptotek\Alma\Exception\ClientException as AlmaClientException; |
| 26 | 25 | use Scriptotek\Alma\Exception\InvalidApiKey; |
| 27 | 26 | use Scriptotek\Alma\Exception\MaxNumberOfAttemptsExhausted; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | /** |
| 168 | 168 | * Set the Alma region code ('na' for North America, 'eu' for Europe, 'ap' for Asia Pacific). |
| 169 | 169 | * |
| 170 | - * @param $regionCode |
|
| 170 | + * @param string $regionCode |
|
| 171 | 171 | * |
| 172 | 172 | * @throws \ErrorException |
| 173 | 173 | * |
@@ -187,7 +187,6 @@ discard block |
||
| 187 | 187 | * Extend an URL (UriInterface or string) with query string parameters |
| 188 | 188 | * and return an UriInterface object. |
| 189 | 189 | * |
| 190 | - * @param string $url|UriInterface |
|
| 191 | 190 | * @param array $query |
| 192 | 191 | * |
| 193 | 192 | * @return UriInterface |
@@ -268,7 +267,6 @@ discard block |
||
| 268 | 267 | /** |
| 269 | 268 | * Make a GET request. |
| 270 | 269 | * |
| 271 | - * @param string $url|UriInterface |
|
| 272 | 270 | * @param array $query |
| 273 | 271 | * @param string $contentType |
| 274 | 272 | * |
@@ -289,7 +287,6 @@ discard block |
||
| 289 | 287 | /** |
| 290 | 288 | * Make a GET request, accepting JSON. |
| 291 | 289 | * |
| 292 | - * @param string $url|UriInterface |
|
| 293 | 290 | * @param array $query |
| 294 | 291 | * |
| 295 | 292 | * @return \stdClass JSON response as an object. |
@@ -304,7 +301,6 @@ discard block |
||
| 304 | 301 | /** |
| 305 | 302 | * Make a GET request, accepting XML. |
| 306 | 303 | * |
| 307 | - * @param string $url|UriInterface |
|
| 308 | 304 | * @param array $query |
| 309 | 305 | * |
| 310 | 306 | * @return QuiteSimpleXMLElement |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Psr\Http\Message\UriInterface; |
| 7 | 7 | use Scriptotek\Alma\Analytics\Report; |
| 8 | 8 | use Scriptotek\Alma\Analytics\Row; |
| 9 | -use Scriptotek\Alma\Analytics\Rows; |
|
| 10 | 9 | use Scriptotek\Alma\Client; |
| 11 | 10 | use Scriptotek\Alma\Exception\ResourceNotFound; |
| 12 | 11 | use spec\Scriptotek\Alma\SpecHelper; |
@@ -78,8 +78,8 @@ |
||
| 78 | 78 | /** |
| 79 | 79 | * Convert a retrieved resource to an object. |
| 80 | 80 | * |
| 81 | - * @param $data |
|
| 82 | - * @return mixed |
|
| 81 | + * @param QuiteSimpleXMLElement $data |
|
| 82 | + * @return Row |
|
| 83 | 83 | */ |
| 84 | 84 | protected function convertToResource($data) |
| 85 | 85 | { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace spec\Scriptotek\Alma\Users; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | -use Psr\Http\Message\UriInterface; |
|
| 8 | 6 | use Scriptotek\Alma\Client as AlmaClient; |
| 9 | 7 | use Scriptotek\Alma\Users\Fee; |
| 10 | 8 | use Scriptotek\Alma\Users\User; |
@@ -86,6 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Get the MMS ID of the linked record in network zone. |
| 89 | + * @return string |
|
| 89 | 90 | */ |
| 90 | 91 | public function getNzMmsId() |
| 91 | 92 | { |