Completed
Push — 2538542-path ( 8ec75c...c6f736 )
by Frédéric G.
02:46
created
mongodb_cache/mongodb_cache_plugin.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
   /**
89 89
    * An alternate \MongoBinData constructor using default $type.
90 90
    *
91
-   * @param mixed $data
91
+   * @param string $data
92 92
    *   The data to convert to \MongoBinData.
93 93
    *
94 94
    * @return \Closure
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
    */
112 112
   protected function getBinDataCreator() {
113 113
     if (version_compare('mongo', '1.2.11') < 0) {
114
-      $result = function ($data) {
114
+      $result = function($data) {
115 115
         return new \MongoBinData($data);
116 116
       };
117 117
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
       $type = version_compare('mongo', '1.5.0') < 0
120 120
         ? \MongoBinData::BYTE_ARRAY
121 121
         : \MongoBinData::GENERIC;
122
-      $result = function ($data) use($type) {
122
+      $result = function($data) use($type) {
123 123
         return new \MongoBinData($data, $type);
124 124
       };
125 125
     }
Please login to merge, or discard this patch.
mongodb_drush.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -115,6 +115,7 @@
 block discarded – undo
115 115
 
116 116
 /**
117 117
  * Returns the basic shell command string.
118
+ * @param string $alias
118 119
  */
119 120
 function _drush_mongodb_connect($alias) {
120 121
   $connections = variable_get('mongodb_connections', array());
Please login to merge, or discard this patch.
mongodb_path/src/Drupal8/CacheBackendInterface.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
    *
85 85
    * @param string $cid
86 86
    *   The cache ID of the data to store.
87
-   * @param mixed $data
87
+   * @param string[] $data
88 88
    *   The data to store in the cache.
89 89
    *   Some storage engines only allow objects up to a maximum of 1MB in size to
90 90
    *   be stored by default. When caching large arrays or similar, take care to
@@ -106,6 +106,7 @@  discard block
 block discarded – undo
106 106
    *
107 107
    * @see \Drupal\Core\Cache\CacheBackendInterface::get()
108 108
    * @see \Drupal\Core\Cache\CacheBackendInterface::getMultiple()
109
+   * @return void
109 110
    */
110 111
   public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = array());
111 112
 
@@ -126,6 +127,7 @@  discard block
 block discarded – undo
126 127
    *     ),
127 128
    *   );
128 129
    *   @endcode
130
+   * @return void
129 131
    */
130 132
   public function setMultiple(array $items);
131 133
 
@@ -144,6 +146,7 @@  discard block
 block discarded – undo
144 146
    * @see \Drupal\Core\Cache\CacheBackendInterface::invalidate()
145 147
    * @see \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
146 148
    * @see \Drupal\Core\Cache\CacheBackendInterface::deleteAll()
149
+   * @return void
147 150
    */
148 151
   public function delete($cid);
149 152
 
@@ -162,6 +165,7 @@  discard block
 block discarded – undo
162 165
    * @see \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
163 166
    * @see \Drupal\Core\Cache\CacheBackendInterface::delete()
164 167
    * @see \Drupal\Core\Cache\CacheBackendInterface::deleteAll()
168
+   * @return void
165 169
    */
166 170
   public function deleteMultiple(array $cids);
167 171
 
@@ -171,6 +175,7 @@  discard block
 block discarded – undo
171 175
    * @see \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
172 176
    * @see \Drupal\Core\Cache\CacheBackendInterface::delete()
173 177
    * @see \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
178
+   * @return void
174 179
    */
175 180
   public function deleteAll();
176 181
 
Please login to merge, or discard this patch.
mongodb_path/src/Drupal8/StateInterface.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
    * @param mixed $default
28 28
    *   The default value to use if the key is not found.
29 29
    *
30
-   * @return mixed
30
+   * @return string
31 31
    *   The stored value, or NULL if no value exists.
32 32
    */
33 33
   public function get($key, $default = NULL);
@@ -48,8 +48,9 @@  discard block
 block discarded – undo
48 48
    *
49 49
    * @param string $key
50 50
    *   The key of the data to store.
51
-   * @param mixed $value
51
+   * @param string[] $value
52 52
    *   The data to store.
53
+   * @return void
53 54
    */
54 55
   public function set($key, $value);
55 56
 
@@ -58,6 +59,7 @@  discard block
 block discarded – undo
58 59
    *
59 60
    * @param array $data
60 61
    *   An associative array of key/value pairs.
62
+   * @return void
61 63
    */
62 64
   public function setMultiple(array $data);
63 65
 
@@ -66,6 +68,7 @@  discard block
 block discarded – undo
66 68
    *
67 69
    * @param string $key
68 70
    *   The item name to delete.
71
+   * @return void
69 72
    */
70 73
   public function delete($key);
71 74
 
@@ -74,6 +77,7 @@  discard block
 block discarded – undo
74 77
    *
75 78
    * @param array $keys
76 79
    *   A list of item names to delete.
80
+   * @return void
77 81
    */
78 82
   public function deleteMultiple(array $keys);
79 83
 
@@ -81,6 +85,7 @@  discard block
 block discarded – undo
81 85
    * Resets the static cache.
82 86
    *
83 87
    * This is mainly used in testing environments.
88
+   * @return void
84 89
    */
85 90
   public function resetCache();
86 91
 
Please login to merge, or discard this patch.
mongodb_path/src/ResolverInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@  discard block
 block discarded – undo
19 19
    * cache in this request, to avoid writing to cache on every request.
20 20
    *
21 21
    * @see drupal_page_footer()
22
+   * @return void
22 23
    */
23 24
   public function cacheSystemPaths();
24 25
 
@@ -26,6 +27,7 @@  discard block
 block discarded – undo
26 27
    * Ensure the whitelist is initialized.
27 28
    *
28 29
    * Use the whitelist variable first, then rebuild if still empty.
30
+   * @return void
29 31
    */
30 32
   public function ensureWhitelist();
31 33
 
@@ -74,6 +76,7 @@  discard block
 block discarded – undo
74 76
    *
75 77
    * @param bool $drop
76 78
    *   (optional) If TRUE, drop the MongoDB aliases prior to importing.
79
+   * @return void
77 80
    */
78 81
   public function import($drop = TRUE);
79 82
 
@@ -126,6 +129,7 @@  discard block
 block discarded – undo
126 129
 
127 130
   /**
128 131
    * Clear the static cache and the prefix white list.
132
+   * @return void
129 133
    */
130 134
   public function lookupPathWipe();
131 135
 
@@ -152,6 +156,7 @@  discard block
 block discarded – undo
152 156
    *
153 157
    * @param array|int $criteria
154 158
    *   A number representing the pid or an array of criteria.
159
+   * @return void
155 160
    */
156 161
   function pathDelete($criteria);
157 162
 
@@ -181,6 +186,7 @@  discard block
 block discarded – undo
181 186
    *   - alias: The URL alias.
182 187
    *   - pid: (optional) Unique path alias identifier.
183 188
    *   - language: (optional) The language of the alias.
189
+   * @return void
184 190
    */
185 191
   function pathSave(array &$path);
186 192
 
Please login to merge, or discard this patch.
mongodb_path/src/Storage/MongoDb.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
   /**
44 44
    * Storage constructor.
45 45
    *
46
-   * @param \MongoDB|\MongoDummy $mongo
46
+   * @param \MongoDB $mongo
47 47
    *   A MongoDB database in which to access the alias storage collection.
48 48
    */
49 49
   public function __construct(\MongoDB $mongo) {
Please login to merge, or discard this patch.
mongodb_path/src/Storage/StorageInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@  discard block
 block discarded – undo
21 21
    *
22 22
    * MongoDB drops the collection because it handles schema at runtime, DBTNG
23 23
    * just truncates it because its schema is handled at install time.
24
+   * @return void
24 25
    */
25 26
   public function clear();
26 27
 
@@ -29,6 +30,7 @@  discard block
 block discarded – undo
29 30
    *
30 31
    * @param array $criteria
31 32
    *   Unlike path_delete(), this method required a criteria array.
33
+   * @return void
32 34
    */
33 35
   public function delete(array $criteria);
34 36
 
@@ -118,6 +120,7 @@  discard block
 block discarded – undo
118 120
    *
119 121
    * @param array $path
120 122
    *   The path to insert or update.
123
+   * @return void
121 124
    */
122 125
   public function save(array &$path);
123 126
 
Please login to merge, or discard this patch.
mongodb_module.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -84,9 +84,6 @@
 block discarded – undo
84 84
 /**
85 85
  * Returns a MongoCollection object.
86 86
  *
87
- * @param mixed $collection_name
88
- *   Can be either a plain collection name or 0-based array containing a
89
- *   collection name and a prefix.
90 87
  *
91 88
  * @return \MongoCollection|\MongoDebugCollection|\MongoDummy
92 89
  *   Return a MongoCollection in normal situations, a MongoDebugCollection if
Please login to merge, or discard this patch.