Completed
Pull Request — master (#76)
by Thibaud
04:14
created
src/PhraseanetSDK/Cache/BackendCacheFactory.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
 
19 19
 class BackendCacheFactory
20 20
 {
21
+    /**
22
+     * @param string $type
23
+     */
21 24
     public function create($type, $host = null, $port = null)
22 25
     {
23 26
         $host = $host ? $host : '127.0.0.1';
@@ -48,6 +51,9 @@  discard block
 block discarded – undo
48 51
         return new ArrayCache();
49 52
     }
50 53
 
54
+    /**
55
+     * @param integer $port
56
+     */
51 57
     private function createMemcache($host, $port)
52 58
     {
53 59
         $memcache = new \Memcache();
@@ -70,6 +76,9 @@  discard block
 block discarded – undo
70 76
         return $cache;
71 77
     }
72 78
 
79
+    /**
80
+     * @param integer $port
81
+     */
73 82
     private function createMemcached($host, $port)
74 83
     {
75 84
         $memcached = new \Memcached();
Please login to merge, or discard this patch.
src/PhraseanetSDK/Recorder/Player.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         }
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $message
75
+     */
73 76
     private function output($message, OutputInterface $output = null)
74 77
     {
75 78
         if (null !== $output) {
Please login to merge, or discard this patch.
src/PhraseanetSDK/Repository/Entry.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * Retrieve the entry identified by its id
23 23
      *
24 24
      * @param  integer $id The entry id
25
-     * @return \PhraseanetSDK\Entity\Feed
25
+     * @return FeedEntry
26 26
      * @throws RuntimeException
27 27
      */
28 28
     public function findById($id)
Please login to merge, or discard this patch.
src/PhraseanetSDK/Application.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @param $token
56
+     * @param string $token
57 57
      */
58 58
     private static function assertValidToken($token)
59 59
     {
@@ -188,6 +188,9 @@  discard block
 block discarded – undo
188 188
         return $this->adapter;
189 189
     }
190 190
 
191
+    /**
192
+     * @param string $token
193
+     */
191 194
     private function getAdapterByToken($token)
192 195
     {
193 196
         if (!isset($this->adapters[$token])) {
Please login to merge, or discard this patch.
src/PhraseanetSDK/Http/ClientFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     /**
35 35
      * @param Endpoint $endpoint
36
-     * @return Client|\GuzzleHttp\ClientInterface
36
+     * @return GuzzleClient
37 37
      */
38 38
     private function createGuzzleClient(Endpoint $endpoint)
39 39
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * @param $endpoint
45
-     * @return \Guzzle\Http\Client|Client
45
+     * @return GuzzleHttpClient
46 46
      */
47 47
     private function createLegacyGuzzleClient(Endpoint $endpoint)
48 48
     {
Please login to merge, or discard this patch.