@@ -5,7 +5,6 @@ |
||
5 | 5 | use Scriptotek\Alma\Client as AlmaClient; |
6 | 6 | use Scriptotek\Alma\Users\Requests; |
7 | 7 | use PhpSpec\ObjectBehavior; |
8 | -use Prophecy\Argument; |
|
9 | 8 | use spec\Scriptotek\Alma\SpecHelper; |
10 | 9 | |
11 | 10 | class RequestsSpec extends ObjectBehavior |
@@ -167,7 +167,7 @@ |
||
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 | * |
@@ -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\Conf\Library; |
26 | 25 | use Scriptotek\Alma\Exception\ClientException as AlmaClientException; |
27 | 26 | use Scriptotek\Alma\Exception\InvalidApiKey; |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Scriptotek\Alma\Model; |
4 | 4 | |
5 | -use Psr\Http\Message\UriInterface; |
|
6 | -use Scriptotek\Alma\Client; |
|
7 | 5 | use Scriptotek\Alma\Exception\ResourceNotFound; |
8 | 6 | |
9 | 7 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Get and return the model data. |
88 | - * @return object |
|
88 | + * @return \stdClass |
|
89 | 89 | */ |
90 | 90 | protected function fetchData() |
91 | 91 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * Called when data is available on the object. |
97 | 97 | * The resource classes can use this method to process the data. |
98 | 98 | * |
99 | - * @param mixed $data |
|
99 | + * @param \stdClass $data |
|
100 | 100 | */ |
101 | 101 | protected function onData($data) |
102 | 102 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Scriptotek\Alma\Conf\Library; |
8 | 8 | use Scriptotek\Alma\TaskLists\RequestedResource; |
9 | 9 | use PhpSpec\ObjectBehavior; |
10 | -use Prophecy\Argument; |
|
11 | 10 | |
12 | 11 | |
13 | 12 | class RequestedResourceSpec extends ObjectBehavior |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use Scriptotek\Alma\Conf\Library; |
9 | 9 | use Scriptotek\Alma\TaskLists\RequestedResource; |
10 | 10 | use PhpSpec\ObjectBehavior; |
11 | -use Prophecy\Argument; |
|
12 | 11 | use spec\Scriptotek\Alma\SpecHelper; |
13 | 12 | |
14 | 13 | class RequestedResourcesSpec extends ObjectBehavior |
@@ -42,6 +42,9 @@ |
||
42 | 42 | return null; |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param \stdClass $data |
|
47 | + */ |
|
45 | 48 | protected function onData($data) |
46 | 49 | { |
47 | 50 | parent::onData($data); |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Scriptotek\Alma\Model; |
4 | 4 | |
5 | -use Scriptotek\Alma\Exception\ClientException; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * A SimplePaginatedList is a list that is paged using the `offset` |
9 | 7 | * and `limit` parameters and that provides a `totalRecordCount` in the first response, |