Completed
Push — master ( 75810a...b7739e )
by
unknown
17s queued 11s
created
src/PhraseanetSDK/Repository/Quarantine.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use PhraseanetSDK\AbstractRepository;
15 15
 use PhraseanetSDK\Exception\RuntimeException;
16 16
 use Doctrine\Common\Collections\ArrayCollection;
17
-use PhraseanetSDK\EntityHydrator;
18 17
 
19 18
 class Quarantine extends AbstractRepository
20 19
 {
Please login to merge, or discard this patch.
src/PhraseanetSDK/Repository/RecordStatus.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use PhraseanetSDK\AbstractRepository;
15 15
 use PhraseanetSDK\Exception\RuntimeException;
16 16
 use Doctrine\Common\Collections\ArrayCollection;
17
-use PhraseanetSDK\EntityHydrator;
18 17
 
19 18
 class RecordStatus extends AbstractRepository
20 19
 {
Please login to merge, or discard this patch.
src/PhraseanetSDK/Orders/OrderRepository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@  discard block
 block discarded – undo
21 21
     {
22 22
         // 't' param is used for cache busting
23 23
         $parameters = [
24
-            'includes' => [ 'elements' ],
24
+            'includes' => ['elements'],
25 25
             't' => time()
26 26
         ];
27 27
 
28
-        $response = $this->query('GET', 'v2/orders/' . $orderId, $parameters);
28
+        $response = $this->query('GET', 'v2/orders/'.$orderId, $parameters);
29 29
 
30 30
         if ($response->isEmpty()) {
31 31
             throw new RuntimeException('Response content is empty');
32 32
         }
33 33
 
34
-        if (! $response->hasProperty('data')) {
34
+        if (!$response->hasProperty('data')) {
35 35
             throw new RuntimeException('Missing \'data\' property in response');
36 36
         }
37 37
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $parameters = [
45 45
             'page' => max($pageIndex, 0),
46 46
             'per_page' => max($pageSize, 1),
47
-            'includes' => [ 'elements' ],
47
+            'includes' => ['elements'],
48 48
             't' => time()
49 49
         ];
50 50
 
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
             throw new RuntimeException('Response content is empty');
55 55
         }
56 56
 
57
-        if (! $response->hasProperty('data')) {
57
+        if (!$response->hasProperty('data')) {
58 58
             throw new RuntimeException('Missing \'data\' property in response');
59 59
         }
60 60
 
61
-        if (! $response->hasProperty('meta')) {
61
+        if (!$response->hasProperty('meta')) {
62 62
             throw new RuntimeException('Missing \'meta\' property in response');
63 63
         }
64 64
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             'records' => $recordsIds
75 75
         ];
76 76
 
77
-        $response = $this->query('POST', 'v2/orders/', [], [ 'data' => $parameters ], [
77
+        $response = $this->query('POST', 'v2/orders/', [], ['data' => $parameters], [
78 78
             'Accept' => 'application/json',
79 79
             'Content-Type' => 'application/json'
80 80
         ]);
Please login to merge, or discard this patch.
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.