@@ -233,16 +233,16 @@ public function setup(\SimpleXMLElement $element, $value, $group = null)
233233 $ return = parent ::setup ($ element , $ value , $ group );
234234
235235 if ($ return ) {
236- $ this ->maxlength = (int ) $ this ->element ['maxlength ' ] ? ( int ) $ this -> element [ ' maxlength ' ] : 45 ;
237- $ this ->format = (string ) $ this ->element ['format ' ] ? ( string ) $ this -> element [ ' format ' ] : '%Y-%m-%d ' ;
238- $ this ->filterFormat = (string ) $ this ->element ['filterformat ' ] ? ( string ) $ this -> element [ ' filterformat ' ] : '' ;
239- $ this ->filter = (string ) $ this ->element ['filter ' ] ? ( string ) $ this -> element [ ' filter ' ] : 'USER_UTC ' ;
240- $ this ->todaybutton = (string ) $ this ->element ['todaybutton ' ] ? ( string ) $ this -> element [ ' todaybutton ' ] : 'true ' ;
241- $ this ->weeknumbers = (string ) $ this ->element ['weeknumbers ' ] ? ( string ) $ this -> element [ ' weeknumbers ' ] : 'true ' ;
242- $ this ->showtime = (string ) $ this ->element ['showtime ' ] ? ( string ) $ this -> element [ ' showtime ' ] : 'false ' ;
243- $ this ->filltable = (string ) $ this ->element ['filltable ' ] ? ( string ) $ this -> element [ ' filltable ' ] : 'true ' ;
244- $ this ->timeformat = (int ) $ this ->element ['timeformat ' ] ? ( int ) $ this -> element [ ' timeformat ' ] : 24 ;
245- $ this ->singleheader = (string ) $ this ->element ['singleheader ' ] ? ( string ) $ this -> element [ ' singleheader ' ] : 'false ' ;
236+ $ this ->maxlength = (int ) $ this ->element ['maxlength ' ] ?: 45 ;
237+ $ this ->format = (string ) $ this ->element ['format ' ] ?: '%Y-%m-%d ' ;
238+ $ this ->filterFormat = (string ) $ this ->element ['filterformat ' ] ?: '' ;
239+ $ this ->filter = (string ) $ this ->element ['filter ' ] ?: 'USER_UTC ' ;
240+ $ this ->todaybutton = (string ) $ this ->element ['todaybutton ' ] ?: 'true ' ;
241+ $ this ->weeknumbers = (string ) $ this ->element ['weeknumbers ' ] ?: 'true ' ;
242+ $ this ->showtime = (string ) $ this ->element ['showtime ' ] ?: 'false ' ;
243+ $ this ->filltable = (string ) $ this ->element ['filltable ' ] ?: 'true ' ;
244+ $ this ->timeformat = (int ) $ this ->element ['timeformat ' ] ?: 24 ;
245+ $ this ->singleheader = (string ) $ this ->element ['singleheader ' ] ?: 'false ' ;
246246 $ this ->minyear = \strlen ((string ) $ this ->element ['minyear ' ]) ? (int ) $ this ->element ['minyear ' ] : null ;
247247 $ this ->maxyear = \strlen ((string ) $ this ->element ['maxyear ' ]) ? (int ) $ this ->element ['maxyear ' ] : null ;
248248
0 commit comments