Skip to content
Snippets Groups Projects
Commit b9c64cff authored by Jess's avatar Jess
Browse files

Issue #2470936 by googletorp, meramo, Xano: Add proper @return tags to functions' PHPDoc comments

parent b986c827
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -61,6 +61,8 @@ public function __construct($selector, array $css = array()) {
* The CSS property to be changed.
* @param $value
* The new value of the CSS property.
*
* @return $this
*/
public function setProperty($property, $value) {
$this->css[$property] = $value;
......
......@@ -124,6 +124,7 @@ public function loadFile($file, $optimize = NULL, $reset_basepath = TRUE) {
* @param array $matches
* An array of matches by a preg_replace_callback() call that scans for
* @import-ed CSS files, except for external CSS files.
*
* @return
* The contents of the CSS file at $matches[1], with corrected paths.
*
......@@ -220,6 +221,9 @@ protected function processCss($contents, $optimize = FALSE) {
* Note: the only reason this method is public is so color.module can call it;
* it is not on the AssetOptimizerInterface, so future refactorings can make
* it protected.
*
* @return string
* The file path.
*/
public function rewriteFileURI($matches) {
// Prefix with base and remove '../' segments where possible.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment