Skip to content

Commit cf15c78

Browse files
committed
task: fix code style
1 parent 3d77d81 commit cf15c78

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

app/Core/Support/CarbonMacros.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ public function __construct(
4343
public string $dbTimezone = 'UTC'
4444
) {
4545

46-
if($userLanguage == "nl_NL") {
46+
if ($userLanguage == 'nl_NL') {
4747
$language = app()->make(Language::class);
48-
$translator = \Carbon\Translator::get("nl_NL");
48+
$translator = \Carbon\Translator::get('nl_NL');
4949
$translator->setTranslations([
5050
'weekdays_short' => explode(',', $language->__('language.dayNamesShort')),
5151
'weekdays_min' => explode(',', $language->__('language.dayNamesMin')),
5252
'months_short' => explode(',', $language->__('language.monthNamesShort')),
53-
'mmm_suffix' => ''
53+
'mmm_suffix' => '',
5454
]);
55-
$translator = \Carbon\Translator::get("nl");
55+
$translator = \Carbon\Translator::get('nl');
5656
$translator->setTranslations([
5757
'weekdays_short' => explode(',', $language->__('language.dayNamesShort')),
5858
'weekdays_min' => explode(',', $language->__('language.dayNamesMin')),
5959
'months_short' => explode(',', $language->__('language.monthNamesShort')),
60-
'mmm_suffix' => ''
60+
'mmm_suffix' => '',
6161
]);
6262
}
6363

app/Domain/Tickets/Templates/submodules/timesheet.sub.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@
7777
foreach ($ticketHours as $hours) {
7878
$sum = $sum + $hours['summe'];
7979
try {
80-
echo "labels.push('" . dtHelper()->parseDbDateTime($hours['utc'] . " 00:00:00")->setToUserTimezone()->format(
81-
"Y-m-d"
82-
) . "');
80+
echo "labels.push('".dtHelper()->parseDbDateTime($hours['utc'].' 00:00:00')->setToUserTimezone()->format(
81+
'Y-m-d'
82+
)."');
8383
";
84-
echo 'd2.push(' . $sum . ');
84+
echo 'd2.push('.$sum.');
8585
';
86-
echo 'd3.push(' . $ticket->planHours . ');
86+
echo 'd3.push('.$ticket->planHours.');
8787
';
88-
}catch (\Exception $e){
89-
//not much we can do at this point. Ignore the datapoint
88+
} catch (\Exception $e) {
89+
// not much we can do at this point. Ignore the datapoint
9090
}
9191
} ?>
9292

app/Domain/Timesheets/Controllers/ShowMy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function run(): Response
6666
if (! empty($_POST['startDate'])) {
6767
try {
6868
$fromDate = dtHelper()->parseUserDateTime($_POST['startDate'])->setToDbTimezone();
69-
}catch (\Exception $e) {
69+
} catch (\Exception $e) {
7070
Log::warning($e);
7171
Log::warning('User timezone: '.session('usersettings.timezone'));
7272
Log::warning('User dateTime format: '.session('usersettings.date_format'));

app/Domain/Widgets/Services/Widgets.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function getActiveWidgets(int $userId): array
185185
$widgets = [];
186186
foreach ($unserializedData as $key => $widget) {
187187

188-
if(isset($widget['id']) === false) {
188+
if (isset($widget['id']) === false) {
189189
continue;
190190
}
191191

0 commit comments

Comments
 (0)