Skip to content
Snippets Groups Projects
Commit 803b7833 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4917: Code standards.

parent 14e17ba0
No related branches found
No related tags found
1 merge request!118Feature/istwcms 4917 ebremner upcoming dates
...@@ -68,7 +68,7 @@ class UWService implements UWServiceInterface { ...@@ -68,7 +68,7 @@ class UWService implements UWServiceInterface {
* The simplify_menu menu items. * The simplify_menu menu items.
* @param \Drupal\path_alias\AliasManager $pathAliasManager * @param \Drupal\path_alias\AliasManager $pathAliasManager
* The Drupal path alias manager. * The Drupal path alias manager.
* @parm \Symfony\Component\HttpFoundation\RequestStack $requestStack * @param \Symfony\Component\HttpFoundation\RequestStack $requestStack
* The request stack. * The request stack.
*/ */
public function __construct(EntityTypeManagerInterface $entityTypeManager, Connection $database, MenuItems $simplifyMenu, AliasManager $pathAliasManager, RequestStack $requestStack) { public function __construct(EntityTypeManagerInterface $entityTypeManager, Connection $database, MenuItems $simplifyMenu, AliasManager $pathAliasManager, RequestStack $requestStack) {
...@@ -663,7 +663,8 @@ class UWService implements UWServiceInterface { ...@@ -663,7 +663,8 @@ class UWService implements UWServiceInterface {
if ($date['duration'] < '1439') { if ($date['duration'] < '1439') {
$start_date = date('l, F j, Y g:i A', $date['value']); $start_date = date('l, F j, Y g:i A', $date['value']);
$end_date = date('g:i A', $date['end_value']); $end_date = date('g:i A', $date['end_value']);
} // This is not the day, get the start and end date with time. }
// This is not the day, get the start and end date with time.
else { else {
$start_date = date('l, F j, Y g:i A', $date['value']); $start_date = date('l, F j, Y g:i A', $date['value']);
$end_date = date('l, F j, Y g:i A', $date['end_value']); $end_date = date('l, F j, Y g:i A', $date['end_value']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment