@@ -70,6 +70,9 @@ |
||
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) { |
@@ -22,7 +22,7 @@ |
||
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) |
@@ -133,7 +133,6 @@ |
||
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( |
@@ -22,6 +22,9 @@ discard block |
||
22 | 22 | */ |
23 | 23 | class BackendCacheFactory |
24 | 24 | { |
25 | + /** |
|
26 | + * @param string $type |
|
27 | + */ |
|
25 | 28 | public function create($type, $host = null, $port = null) |
26 | 29 | { |
27 | 30 | $host = $host ? $host : '127.0.0.1'; |
@@ -52,6 +55,9 @@ discard block |
||
52 | 55 | return new ArrayCache(); |
53 | 56 | } |
54 | 57 | |
58 | + /** |
|
59 | + * @param integer $port |
|
60 | + */ |
|
55 | 61 | private function createMemcache($host, $port) |
56 | 62 | { |
57 | 63 | $memcache = new \Memcache(); |
@@ -74,6 +80,9 @@ discard block |
||
74 | 80 | return $cache; |
75 | 81 | } |
76 | 82 | |
83 | + /** |
|
84 | + * @param integer $port |
|
85 | + */ |
|
77 | 86 | private function createMemcached($host, $port) |
78 | 87 | { |
79 | 88 | $memcached = new \Memcached(); |
@@ -74,13 +74,13 @@ |
||
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 | )); |
@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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()) { |
@@ -190,14 +190,14 @@ |
||
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 | } |