Completed
Pull Request — master (#82)
by
unknown
06:37
created
src/PhraseanetSDK/Repository/Record.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,13 +74,13 @@
 block discarded – undo
74 74
      * Search for records
75 75
      *
76 76
      * @param  array                       $parameters Query parameters
77
-	 * @param int                          $pAPINumber API number (e.g. 3)
77
+     * @param int                          $pAPINumber API number (e.g. 3)
78 78
      * @return \PhraseanetSDK\Entity\Query object
79 79
      * @throws RuntimeException
80 80
      */
81 81
     public function search(array $parameters = array(), $pAPINumber = 1)
82 82
     {
83
-		$response = $this->query('POST', 'v'.$pAPINumber.'/search/', array(), array_merge(
83
+        $response = $this->query('POST', 'v'.$pAPINumber.'/search/', array(), array_merge(
84 84
             array('search_type' => 0),
85 85
             $parameters
86 86
         ));
Please login to merge, or discard this patch.
src/PhraseanetSDK/Repository/Story.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * Search for stories
69 69
      *
70 70
      * @param  array $parameters Query parameters
71
-	 * @param int $pAPINumber API number (e.g. 3)
71
+     * @param int $pAPINumber API number (e.g. 3)
72 72
      * @return \PhraseanetSDK\Entity\Query object
73 73
      * @throws RuntimeException
74 74
      */
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $response = $this->query('POST', 'v'.$pAPINumber.'/search/', array(), array_merge(
78 78
             $parameters,
79
-			array('search_type' => SearchResult::TYPE_STORY)
79
+            array('search_type' => SearchResult::TYPE_STORY)
80 80
         ));
81 81
 
82 82
         if ($response->isEmpty()) {
Please login to merge, or discard this patch.
src/PhraseanetSDK/Entity/Query.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -190,14 +190,14 @@
 block discarded – undo
190 190
         return $this->results ?: $this->results = Result::fromValue($this->entityManager, $this->source->results);
191 191
     }
192 192
 
193
-	/**
194
-	 * Set or override value in protected object 'source' (\stdClass type)
195
-	 *
196
-	 * @param $pKey	string
197
-	 * @param $pValue mixed
198
-	 */
193
+    /**
194
+     * Set or override value in protected object 'source' (\stdClass type)
195
+     *
196
+     * @param $pKey	string
197
+     * @param $pValue mixed
198
+     */
199 199
     public function setSourceEntry($pKey, $pValue)
200
-	{
201
-		$this->source->$pKey = $pValue;
202
-	}
200
+    {
201
+        $this->source->$pKey = $pValue;
202
+    }
203 203
 }
Please login to merge, or discard this patch.
src/PhraseanetSDK/Http/GuzzleAdapter.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -188,11 +188,9 @@
 block discarded – undo
188 188
 
189 189
 //            $this->addRequestParameters($request, $query, $postFields, $files);
190 190
 //            $response = $request->send();
191
-        }
192
-        catch (GuzzleBadResponse $e) {
191
+        } catch (GuzzleBadResponse $e) {
193 192
             throw BadResponseException::fromGuzzleResponse($e);
194
-        }
195
-        catch (GuzzleException $e) {
193
+        } catch (GuzzleException $e) {
196 194
             throw new RuntimeException($e->getMessage(), $e->getCode(), $e);
197 195
         }
198 196
 
Please login to merge, or discard this patch.
src/PhraseanetSDK/AbstractRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
     {
68 68
         try {
69 69
             $response = $this->getAdapter()->call($method, $path, $query, $postFields, array(), $headers);
70
-        }
71
-        catch (BadResponseException $e) {
70
+        } catch (BadResponseException $e) {
72 71
             $statusCode = $e->getStatusCode();
73 72
             switch ($statusCode) {
74 73
                 case 404:
Please login to merge, or discard this patch.