diff options
author | Bot <bot@myigel.name> | 2017-01-03 14:12:17 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-03 15:32:59 +0100 |
commit | 55141154c083acc2d0397f4c62b4e0be1c7a19fa (patch) | |
tree | 7e5e54a19f7df976fa68c42f21f1484112a7c257 /includes/view/ShiftCalendarShiftRenderer.php | |
parent | 356b2582f3e6a43ecf2607acad4a7fe0b37f659a (diff) |
Replaced " with '
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r-- | includes/view/ShiftCalendarShiftRenderer.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index 1f6ceef8..8560d47d 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -18,7 +18,7 @@ class ShiftCalendarShiftRenderer */ public function render($shift, $needed_angeltypes, $shift_entries, $user) { - $info_text = ""; + $info_text = ''; if ($shift['title'] != '') { $info_text = glyph('info-sign') . $shift['title'] . '<br>'; } @@ -31,7 +31,7 @@ class ShiftCalendarShiftRenderer $class = $this->classForSignupState($shift_signup_state); - $blocks = ceil(($shift["end"] - $shift["start"]) / ShiftCalendarRenderer::SECONDS_PER_ROW); + $blocks = ceil(($shift['end'] - $shift['start']) / ShiftCalendarRenderer::SECONDS_PER_ROW); $blocks = max(1, $blocks); return [ $blocks, @@ -100,7 +100,7 @@ class ShiftCalendarShiftRenderer $shift_entries_filtered[$shift_entry['TID']][] = $shift_entry; } - $html = ""; + $html = ''; /** @var ShiftSignupState $shift_signup_state */ $shift_signup_state = null; foreach ($needed_angeltypes as $angeltype) { @@ -126,7 +126,7 @@ class ShiftCalendarShiftRenderer if (in_array('user_shifts_admin', $privileges)) { $html .= '<li class="list-group-item">' . button( page_link_to('user_shifts') . '&shift_id=' . $shift['SID'], - _("Add more angels"), + _('Add more angels'), 'btn-xs' ) . '</li>'; } @@ -138,7 +138,7 @@ class ShiftCalendarShiftRenderer } return [ $shift_signup_state, - "" + '' ]; } @@ -156,12 +156,12 @@ class ShiftCalendarShiftRenderer { $entry_list = []; foreach ($shift_entries as $entry) { - $style = $entry['freeloaded'] ? " text-decoration: line-through;" : ''; - $entry_list[] = "<span style=\"$style\">" . User_Nick_render($entry) . "</span>"; + $style = $entry['freeloaded'] ? ' text-decoration: line-through;' : ''; + $entry_list[] = '<span style="' . $style . '">' . User_Nick_render($entry) . '</span>'; } $shift_signup_state = Shift_signup_allowed($user, $shift, $angeltype, null, null, $angeltype, $shift_entries); $inner_text = sprintf( - ngettext("%d helper needed", "%d helpers needed", $shift_signup_state->getFreeEntries()), + ngettext('%d helper needed', '%d helpers needed', $shift_signup_state->getFreeEntries()), $shift_signup_state->getFreeEntries() ); @@ -211,7 +211,7 @@ class ShiftCalendarShiftRenderer $shifts_row = '<li class="list-group-item">'; $shifts_row .= '<strong>' . AngelType_name_render($angeltype) . ':</strong> '; - $shifts_row .= join(", ", $entry_list); + $shifts_row .= join(', ', $entry_list); $shifts_row .= '</li>'; return [ $shift_signup_state, @@ -229,7 +229,7 @@ class ShiftCalendarShiftRenderer { global $privileges; - $header_buttons = ""; + $header_buttons = ''; if (in_array('admin_shifts', $privileges)) { $header_buttons = '<div class="pull-right">' . table_buttons([ button(page_link_to('user_shifts') . '&edit_shift=' . $shift['SID'], glyph('edit'), 'btn-xs'), |