@@ -17,6 +17,9 @@ |
||
17 | 17 | "smallThumbnail", |
18 | 18 | ]; |
19 | 19 | |
20 | + /** |
|
21 | + * @param GoogleBooks $client |
|
22 | + */ |
|
20 | 23 | public function __construct($client, $data, $full=false) |
21 | 24 | { |
22 | 25 | $this->client = $client; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | "smallThumbnail", |
18 | 18 | ]; |
19 | 19 | |
20 | - public function __construct($client, $data, $full=false) |
|
20 | + public function __construct($client, $data, $full = false) |
|
21 | 21 | { |
22 | 22 | $this->client = $client; |
23 | 23 | $this->data = $data; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param string $preferredSize |
30 | 30 | * @return mixed|null |
31 | 31 | */ |
32 | - public function getCover($preferredSize='extraLarge') |
|
32 | + public function getCover($preferredSize = 'extraLarge') |
|
33 | 33 | { |
34 | 34 | $url = null; |
35 | 35 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | - 'userRateLimitExceeded': The per-user limit from the Developer Console has been reached. |
10 | 10 | - 'userRateLimitExceededUnreg': Limit when unregistered |
11 | 11 | - More? |
12 | - */ |
|
12 | + */ |
|
13 | 13 | private $reason; |
14 | 14 | |
15 | 15 | public function __construct($message, $reason) |
@@ -31,10 +31,10 @@ |
||
31 | 31 | { |
32 | 32 | $app = $this->app; |
33 | 33 | $this->mergeConfigFrom( |
34 | - __DIR__.'/../config/config.php', |
|
34 | + __DIR__ . '/../config/config.php', |
|
35 | 35 | 'googlebooks' |
36 | 36 | ); |
37 | - $this->app->singleton('googlebooks', function ($app) { |
|
37 | + $this->app->singleton('googlebooks', function($app) { |
|
38 | 38 | $options = []; |
39 | 39 | $options['key'] = $app['config']->get('googlebooks.key'); |
40 | 40 | $options['country'] = $app['config']->get('googlebooks.country'); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @param $query |
19 | - * @return \Generator|Volume || array |
|
19 | + * @return LibraryBuilder || array |
|
20 | 20 | */ |
21 | 21 | public function search($query) |
22 | 22 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $this->maxResults = isset($options['maxResults']) ? $options['maxResults'] : null; |
71 | 71 | } |
72 | 72 | |
73 | - public function raw($endpoint, $params = [], $method='GET') |
|
73 | + public function raw($endpoint, $params = [], $method = 'GET') |
|
74 | 74 | { |
75 | 75 | if (!is_null($this->key)) { |
76 | 76 | $params['key'] = $this->key; |