Completed
Push — master ( 1aa235...7c61d6 )
by
unknown
06:43 queued 11s
created
src/PhraseanetSDK/Repository/MeCollection.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@
 block discarded – undo
18 18
 
19 19
 class MeCollection extends AbstractRepository
20 20
 {
21
-	/**
22
-	 * Return all collections available
23
-	 *
24
-	 * @return MeCollection[]
25
-	 * @throws NotFoundException
26
-	 * @throws UnauthorizedException
27
-	 */
28
-	public function getCollectionsList()
29
-	{
30
-		$response = $this->query('GET', 'v1/me/collections/');
21
+    /**
22
+     * Return all collections available
23
+     *
24
+     * @return MeCollection[]
25
+     * @throws NotFoundException
26
+     * @throws UnauthorizedException
27
+     */
28
+    public function getCollectionsList()
29
+    {
30
+        $response = $this->query('GET', 'v1/me/collections/');
31 31
 
32
-		if ($response->hasProperty(('collections')) !== true) {
33
-			throw new RuntimeException('Missing "collections" property in response content');
34
-		}
32
+        if ($response->hasProperty(('collections')) !== true) {
33
+            throw new RuntimeException('Missing "collections" property in response content');
34
+        }
35 35
 
36
-		return \PhraseanetSDK\Entity\MeCollection::fromList($response->getProperty('collections'));
37
-	}
36
+        return \PhraseanetSDK\Entity\MeCollection::fromList($response->getProperty('collections'));
37
+    }
38 38
 }
Please login to merge, or discard this patch.
src/PhraseanetSDK/Http/GuzzleAdapter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function setExtended($extended)
78 78
     {
79
-        $this->extended = (boolean)$extended;
79
+        $this->extended = (boolean) $extended;
80 80
     }
81 81
 
82 82
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function setSslVerification($sslVerification)
96 96
     {
97
-        $this->sslVerification = (boolean)$sslVerification;
97
+        $this->sslVerification = (boolean) $sslVerification;
98 98
     }
99 99
 
100 100
     /**
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
                 'Accept' => $this->extended ? 'application/vnd.phraseanet.record-extended+json' : 'application/json'
126 126
             );
127 127
 
128
-            if(!$this->sslVerification) {
129
-                $this->guzzle->setSslVerification(false,false,0);
128
+            if (!$this->sslVerification) {
129
+                $this->guzzle->setSslVerification(false, false, 0);
130 130
             }
131 131
             $request = $this->guzzle->createRequest($method, $path, array_merge($acceptHeader, $headers));
132 132
             $this->addRequestParameters($request, $query, $postFields, $files);
Please login to merge, or discard this patch.