PluginProbe
ShiftController Employee Shift Scheduling / 4.9.66
ShiftController Employee Shift Scheduling v4.9.66
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | sh4/shifts/model.php +16 -16 4.9.744.9.66 View file →
@@ -234,40 +234,40 @@
234 234 }
235 235
236 236 public function getBreakStartInDay()
237 237 {
238 - $ret = null;
238 + $return = NULL;
239 239
240 240 $full = $this->getBreakStart();
241 - if( null === $full ){
242 - return $ret;
241 + if( NULL === $full ){
242 + return $return;
243 243 }
244 244
245 - $hour = (int) substr( $full, 8, 2 );
246 - $minute = (int) substr( $full, 10, 2 );
247 - $ret = $hour * 60 * 60 + $minute * 60;
245 + $hour = substr( $full, 8, 2 );
246 + $minute = substr( $full, 10, 2 );
247 + $return = $hour * 60 * 60 + $minute * 60;
248 248
249 - return $ret;
249 + return $return;
250 250 }
251 251
252 252 public function getBreakEndInDay()
253 253 {
254 - $ret = null;
254 + $return = NULL;
255 255
256 256 $full = $this->getBreakEnd();
257 - if( null === $full ){
258 - return $ret;
257 + if( NULL === $full ){
258 + return $return;
259 259 }
260 260
261 - $hour = (int) substr( $full, 8, 2 );
262 - $minute = (int) substr( $full, 10, 2 );
263 - $ret = $hour * 60 * 60 + $minute * 60;
261 + $hour = substr( $full, 8, 2 );
262 + $minute = substr( $full, 10, 2 );
263 + $return = $hour * 60 * 60 + $minute * 60;
264 264
265 - if( 0 == $ret ){
266 - $ret = 24*60*60;
265 + if( 0 == $return ){
266 + $return = 24*60*60;
267 267 }
268 268
269 - return $ret;
269 + return $return;
270 270 }
271 271
272 272 public function getDateStart()
273 273 {