Completed
Push — master ( 795d89...2cb161 )
by Filippo
01:32
created
src/EoC/Doc/DesignDoc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -189,6 +189,9 @@
 block discarded – undo
189 189
   }
190 190
 
191 191
 
192
+  /**
193
+   * @param string $value
194
+   */
192 195
   public function setLanguage($value) {
193 196
     if (!empty($value))
194 197
       $this->meta['language'] = strtolower((string)$value);
Please login to merge, or discard this patch.
src/EoC/Generator/UUID.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -162,6 +162,11 @@  discard block
 block discarded – undo
162 162
   /*
163 163
    * Public API, convert a UUID from one format to another
164 164
    */
165
+
166
+  /**
167
+   * @param integer $from
168
+   * @param integer $to
169
+   */
165 170
   static public function convert($uuid, $from, $to) {
166 171
     $conv = self::$m_convert[$from][$to];
167 172
     if (!isset($conv))
@@ -189,6 +194,11 @@  discard block
 block discarded – undo
189 194
   /*
190 195
    * Generate UUID version 3 and 5 (name based)
191 196
    */
197
+
198
+  /**
199
+   * @param string $hash
200
+   * @param integer $version
201
+   */
192 202
   static private function generateName($ns, $node, $hash, $version) {
193 203
     $ns_fmt = self::detectFormat($ns);
194 204
     $field = self::convert($ns, $ns_fmt, self::FMT_FIELD);
Please login to merge, or discard this patch.
src/EoC/Couch.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -908,7 +908,7 @@
 block discarded – undo
908 908
    * @see http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate
909 909
    */
910 910
   public function startReplication($sourceDbUrl, $targetDbUrl, $proxy = NULL, $createTargetDb = TRUE,
911
-                                     $continuous = FALSE, $filter = NULL, Opt\ViewQueryOpts $opts = NULL) {
911
+                                      $continuous = FALSE, $filter = NULL, Opt\ViewQueryOpts $opts = NULL) {
912 912
     // Sets source and target databases.
913 913
     if (is_string($sourceDbUrl) && !empty($sourceDbUrl) &&
914 914
       is_string($targetDbUrl) && !empty($targetDbUrl)) {
Please login to merge, or discard this patch.
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 
298 298
   /**
299 299
    * @brief Returns a list of all database events in the CouchDB instance.
300
-   * @param DbUpdatesFeedOpts $opts Additional options.
300
+   * @param Opt\DbUpdatesFeedOpts $opts Additional options.
301 301
    * @return Response
302 302
    * @attention Requires admin privileges.
303 303
    * @see http://docs.couchdb.org/en/latest/api/server/common.html#db-updates
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
    * @brief Obtains a list of the changes made to the database. This can be used to monitor for update and modifications
578 578
    * to the database for post processing or synchronization.
579 579
    * @param string $name The database name.
580
-   * @param ChangesFeedOpts $opts Additional options.
580
+   * @param Opt\ChangesFeedOpts $opts Additional options.
581 581
    * @return Response
582 582
    * @see http://docs.couchdb.org/en/latest/api/database/changes.html
583 583
    */
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
   /**
709 709
    * @brief Returns the special security object for the database.
710 710
    * @param string $dbName The database name.
711
-   * @return string A JSON object.
711
+   * @return Response A JSON object.
712 712
    * @see http://docs.couchdb.org/en/latest/api/database/security.html#get--db-_security
713 713
    */
714 714
   public function getSecurityObj($dbName) {
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
    * permanent continuous replications that survive a server restart without you having to do anything.
763 763
    * @param string|array $filter (optional) Name of a filter function that can choose which revisions get replicated.
764 764
    * You can also provide an array of document identifiers; if given, only these documents will be replicated.
765
-   * @param ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
765
+   * @param Opt\ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
766 766
    * docs, etc.
767 767
    * @return Response
768 768
    * @see http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate
@@ -866,7 +866,7 @@  discard block
 block discarded – undo
866 866
    * @param array $keys (optional) Used to retrieve just the view rows matching that set of keys. Rows are returned
867 867
    * in the order of the specified keys. Combining this feature with Opt\ViewQueryOpts.includeDocs() results in the so-called
868 868
    * multi-document-fetch feature.
869
-   * @param ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
869
+   * @param Opt\ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
870 870
    * docs, etc.
871 871
    * @param ChunkHook $chunkHook (optional) A class instance that implements the IChunkHook interface.
872 872
    * @return Result::QueryResult The result of the query.
@@ -898,7 +898,7 @@  discard block
 block discarded – undo
898 898
    * @param array $keys (optional) Used to retrieve just the view rows matching that set of keys. Rows are returned
899 899
    * in the order of the specified keys. Combining this feature with Opt\ViewQueryOpts.includeDocs() results in the so-called
900 900
    * multi-document-fetch feature.
901
-   * @param ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
901
+   * @param Opt\ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
902 902
    * docs, etc.
903 903
    * @param IChunkHook $chunkHook (optional) A class instance that implements the IChunkHook interface.
904 904
    * @return Result::QueryResult The result of the query.
@@ -950,7 +950,7 @@  discard block
 block discarded – undo
950 950
    * @param array $keys (optional) Used to retrieve just the view rows matching that set of keys. Rows are returned
951 951
    * in the order of the specified keys. Combining this feature with Opt\ViewQueryOpts.includeDocs() results in the so-called
952 952
    * multi-document-fetch feature.
953
-   * @param ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
953
+   * @param Opt\ViewQueryOpts $opts (optional) Query options to get additional information, grouping results, include
954 954
    * docs, etc.
955 955
    * @param string $language The language used to implement the map and reduce functions.
956 956
    * @param IChunkHook $chunkHook (optional) A class instance that implements the IChunkHook interface.
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
    * @param string $docId The document's identifier.
1091 1091
    * @param string $path The document's path.
1092 1092
    * @param string $rev (optional) The document's revision.
1093
-   * @param DocOpts $opts Query options to get additional document information, like conflicts, attachments, etc.
1093
+   * @param Opt\DocOpts $opts Query options to get additional document information, like conflicts, attachments, etc.
1094 1094
    * @return object|Response An instance of Doc, LocalDoc, DesignDoc or any subclass of Doc.
1095 1095
    * @see http://docs.couchdb.org/en/latest/api/document/common.html#get--db-docid
1096 1096
    */
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
    * using PUT instead we need to specify one. We can still use the function getUuids() to ask CouchDB for some ids.
1146 1146
    * This is an internal detail. You have only to know that CouchDB can generate the document id for you.
1147 1147
    * @param string $dbName The database name.
1148
-   * @param Doc $doc The document you want insert or update.
1148
+   * @param Doc\IDoc $doc The document you want insert or update.
1149 1149
    * @param bool $batchMode (optional) You can write documents to the database at a higher rate by using the batch
1150 1150
    * option. This collects document writes together in memory (on a user-by-user basis) before they are committed to
1151 1151
    * disk. This increases the risk of the documents not being stored in the event of a failure, since the documents are
@@ -1334,7 +1334,7 @@  discard block
 block discarded – undo
1334 1334
    * @param string $docId The document's identifier.
1335 1335
    * @param string $path The document's path.
1336 1336
    * @param string $rev (optional) The document's revision.
1337
-   * @return string The document's revision.
1337
+   * @return Response The document's revision.
1338 1338
    * @see http://docs.couchdb.org/en/latest/api/document/attachments.html#db-doc-attachment
1339 1339
    */
1340 1340
   public function getAttachmentInfo($dbName, $fileName, $path, $docId, $rev = NULL) {
Please login to merge, or discard this patch.
src/EoC/Doc/LocalDoc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * configurations.\n
18 18
  * Inherit from LocalDoc if you want create a persistent class that is not replicable.
19 19
  * @nosubgrouping
20
-   */
20
+ */
21 21
 class LocalDoc extends AbstractDoc {
22 22
 
23 23
 
Please login to merge, or discard this patch.