Completed
Pull Request — master (#14)
by Mischa
06:15 queued 12s
created
src/Superdesk/ContentApiSdk/API/Pagerfanta/PackageAdapter.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
32 32
     /**
33 33
      * Instantiate object.
34 34
      *
35
-     * @param Superdesk\CotentApiSdk\Client\ClientInterface $client HTTP client
36
-     * @param Superdesk\CotentApiSdk\API\Request $request API Request is_object(var)
37
-     * @param Superdesk\CotentApiSdk\ContentApiSdk $apiInstance SDK Instance
35
+     * @param \Superdesk\ContentApiSdk\Client\ClientInterface $client HTTP client
36
+     * @param \Superdesk\ContentApiSdk\API\Request $request API Request is_object(var)
37
+     * @param \Superdesk\ContentApiSdk\ContentApiSdk $apiInstance SDK Instance
38 38
      * @param boolean $resolveAssociations Resolve package associations
39 39
      */
40 40
     public function __construct($client, $request, $apiInstance, $resolveAssociations)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                     $packages[$id] = $this->apiInstance->injectAssociations($package, $associations);
65 65
                 }
66 66
             }
67
-        } catch(\Exception $e) {
67
+        } catch (\Exception $e) {
68 68
             throw new InvalidDataException('Could not convert resources to packages.', $e->getCode(), $e);
69 69
         }
70 70
 
Please login to merge, or discard this patch.
src/Superdesk/ContentApiSdk/ContentApiSdk.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      *
211 211
      * @param array $params Filter parameters
212 212
      *
213
-     * @return mixed
213
+     * @return ResourceCollection
214 214
      */
215 215
     public function getItems($params)
216 216
     {
@@ -259,10 +259,8 @@  discard block
 block discarded – undo
259 259
      * Get multiple packages based on a filter.
260 260
      *
261 261
      * @param array $params       Filter parameters
262
-     * @param bool  $resolveItems Inject full associations recursively instead
263
-     *                            of references by uri.
264 262
      *
265
-     * @return mixed
263
+     * @return ResourceCollection
266 264
      */
267 265
     public function getPackages($params, $resolveAssociations = false)
268 266
     {
@@ -411,7 +409,7 @@  discard block
 block discarded – undo
411 409
      * set to true. Throws an InvalidArgumentException when an invalid value
412 410
      * is supplied for a parameter.
413 411
      *
414
-     * @param  mixed[] $requestParameters Array of parameter, where key
412
+     * @param  string[] $requestParameters Array of parameter, where key
415 413
      *                                    represents the parameter name
416 414
      * @param  boolean $validate Validation boolean
417 415
      *
Please login to merge, or discard this patch.
src/Superdesk/ContentApiSdk/API/Pagerfanta/ItemAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             foreach ($resources as $itemData) {
35 35
                 $items[] = new Item($itemData);
36 36
             }
37
-        } catch(\Exception $e) {
37
+        } catch (\Exception $e) {
38 38
             throw new InvalidDataException('Could not convert resources to items.', $e->getCode(), $e);
39 39
         }
40 40
 
Please login to merge, or discard this patch.