Completed
Pull Request — master (#67)
by Thibaud
03:52
created
src/PhraseanetSDK/Entity/QueryFacet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function getValues()
65 65
     {
66
-        if (! isset($this->source->values)) {
66
+        if (!isset($this->source->values)) {
67 67
             $this->values = new ArrayCollection();
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/PhraseanetSDK/Http/APIResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function getStatusCode()
56 56
     {
57
-        return (int)$this->meta->http_code;
57
+        return (int) $this->meta->http_code;
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
src/PhraseanetSDK/Http/GuzzleAdapter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      */
76 76
     public function setExtended($extended)
77 77
     {
78
-        $this->extended = (boolean)$extended;
78
+        $this->extended = (boolean) $extended;
79 79
     }
80 80
 
81 81
     /**
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,6 @@
 block discarded – undo
133 133
      *
134 134
      * @param string $endpoint
135 135
      * @param EventSubscriberInterface[] $plugins
136
-     * @param int $endpointVersion
137 136
      * @return static
138 137
      */
139 138
     public static function create(
Please login to merge, or discard this patch.
src/PhraseanetSDK/Recorder/RequestExtractor.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
     public function extract(RequestInterface $request)
21 21
     {
22 22
         $postFields = $request instanceof EntityEnclosingRequestInterface ?
23
-            $request->getPostFields()->toArray() :
24
-            array();
23
+            $request->getPostFields()->toArray() : array();
25 24
 
26 25
         return array(
27 26
             'query'       => $request->getQuery()->toArray(),
Please login to merge, or discard this patch.
src/PhraseanetSDK/Uploader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             'file' => $file,
66 66
         ));
67 67
 
68
-        switch ((int)$response->getResult()->entity) {
68
+        switch ((int) $response->getResult()->entity) {
69 69
             case 0:
70 70
                 $matches = array();
71 71
                 preg_match('/\/records\/(\d+)\/(\d+)\//', $response->getResult()->url, $matches);
Please login to merge, or discard this patch.
src/PhraseanetSDK/Repository/Basket.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace PhraseanetSDK\Repository;
13 13
 
14
-use PhraseanetSDK\EntityHydrator;
15 14
 use PhraseanetSDK\Exception\RuntimeException;
16 15
 
17 16
 class User extends AbstractRepository
Please login to merge, or discard this patch.
src/PhraseanetSDK/Repository/BasketElement.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace PhraseanetSDK\Repository;
13 13
 
14
-use PhraseanetSDK\EntityHydrator;
15 14
 use PhraseanetSDK\Exception\RuntimeException;
16 15
 
17 16
 class User extends AbstractRepository
Please login to merge, or discard this patch.
src/PhraseanetSDK/Repository/Databox.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace PhraseanetSDK\Repository;
13 13
 
14
-use PhraseanetSDK\EntityHydrator;
15 14
 use PhraseanetSDK\Exception\RuntimeException;
16 15
 
17 16
 class User extends AbstractRepository
Please login to merge, or discard this patch.
src/PhraseanetSDK/Repository/DataboxDocumentStructure.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace PhraseanetSDK\Repository;
13 13
 
14
-use PhraseanetSDK\EntityHydrator;
15 14
 use PhraseanetSDK\Exception\RuntimeException;
16 15
 
17 16
 class User extends AbstractRepository
Please login to merge, or discard this patch.