Completed
Pull Request — master (#14091)
by Andrés
13:03 queued 03:49
created
extensions/blocks/ratings/ratings.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
 	);
103 103
 }
104 104
 
105
+/**
106
+ * @param integer $pos
107
+ */
105 108
 function jetpack_ratings_build_svg( $attributes, $pos ) {
106 109
 	$classname_whole = ( $attributes['rating'] >= ( $pos - 0.5 ) ) ? '' : 'is-rating-unfilled';
107 110
 	$classname_half  = ( $attributes['rating'] >= $pos ) ? '' : 'is-rating-unfilled';
@@ -119,6 +122,10 @@  discard block
 block discarded – undo
119 122
 	return jetpack_ratings_get_svg_star( $classname_whole, $classname_half, $color );
120 123
 }
121 124
 
125
+/**
126
+ * @param string $classname_whole
127
+ * @param string $classname_half
128
+ */
122 129
 function jetpack_ratings_get_svg_star( $classname_whole, $classname_half, $color ) {
123 130
 	return <<<ELO
124 131
 <span>
@@ -134,6 +141,10 @@  discard block
 block discarded – undo
134 141
 ELO;
135 142
 }
136 143
 
144
+/**
145
+ * @param string $classname_whole
146
+ * @param string $classname_half
147
+ */
137 148
 function jetpack_ratings_get_svg_spiciness( $classname_whole, $classname_half, $color ) {
138 149
 	return <<<ELO
139 150
 <span>
@@ -151,6 +162,10 @@  discard block
 block discarded – undo
151 162
 ELO;
152 163
 }
153 164
 
165
+/**
166
+ * @param string $classname_whole
167
+ * @param string $classname_half
168
+ */
154 169
 function jetpack_ratings_get_svg_priciness( $classname_whole, $classname_half, $color ) {
155 170
 	return <<<ELO
156 171
 <span>
Please login to merge, or discard this patch.