File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2
2
namespace Ajax \common \html \traits ;
3
3
use Ajax \JsUtils ;
4
4
5
+ /**
6
+ * @author jc
7
+ * @property string $identifier
8
+ * @property string $root
9
+ * @property string $attr
10
+ */
5
11
trait NavElementTrait{
12
+
13
+ abstract public function contentAsString ();
6
14
/**
7
15
* Generate the jquery script to set the elements to the HtmlNavElement
8
16
* @param JsUtils $jsUtils
Original file line number Diff line number Diff line change @@ -272,7 +272,8 @@ public function getCaption($index){
272
272
public function getCaptions (){
273
273
if (isset ($ this ->captions )){
274
274
$ captions = \array_values ($ this ->captions );
275
- for ($ i =\sizeof ($ captions );$ i <$ this ->count ();$ i ++){
275
+ $ captionsSize =\sizeof ($ captions );
276
+ for ($ i =$ captionsSize ;$ i <$ this ->count ();$ i ++){
276
277
$ captions []="" ;
277
278
}
278
279
}else {
You can’t perform that action at this time.
0 commit comments