@@ -18,6 +18,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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(); |
@@ -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) |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | */ |
| 167 | 167 | public function getValidationUsers() |
| 168 | 168 | { |
| 169 | - if (! $this->isValidationBasket()) { |
|
| 169 | + if (!$this->isValidationBasket()) { |
|
| 170 | 170 | return null; |
| 171 | 171 | } |
| 172 | 172 | |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | */ |
| 111 | 111 | public function getValidationChoices() |
| 112 | 112 | { |
| 113 | - if (! isset($this->source->validation_choices)) { |
|
| 113 | + if (!isset($this->source->validation_choices)) { |
|
| 114 | 114 | $this->validationChoices = new ArrayCollection(); |
| 115 | 115 | } |
| 116 | 116 | |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | */ |
| 147 | 147 | public function getItems() |
| 148 | 148 | { |
| 149 | - if (! isset($this->source->items)) { |
|
| 149 | + if (!isset($this->source->items)) { |
|
| 150 | 150 | $this->items = new ArrayCollection(); |
| 151 | 151 | } |
| 152 | 152 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | public function getSuggestions() |
| 154 | 154 | { |
| 155 | - if (! isset($this->source->suggestions)) { |
|
| 155 | + if (!isset($this->source->suggestions)) { |
|
| 156 | 156 | $this->suggestions = new ArrayCollection(); |
| 157 | 157 | } |
| 158 | 158 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function getFacets() |
| 168 | 168 | { |
| 169 | - if (! isset($this->source->facets)) { |
|
| 169 | + if (!isset($this->source->facets)) { |
|
| 170 | 170 | $this->facets = new ArrayCollection(); |
| 171 | 171 | } |
| 172 | 172 | |
@@ -63,7 +63,7 @@ |
||
| 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 | |
@@ -54,7 +54,7 @@ |
||
| 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 | /** |