Skip to content

Apply fixes from StyleCI #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Helpers/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function getSentryUnresolvedIssues()
/**
* Get outdated packages from Composer.
*
* @param string $flag
* @param string $flag
* @return array
*/
public static function getComposerOutdatedPackages($flag = '--no-dev')
Expand Down
3 changes: 2 additions & 1 deletion app/Helpers/Cetak.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class Cetak
* @param int $template_id The template ID
* @param string|null $tanggal The date (optional)
* @param string|null $pengelola The manager (optional)
* @return string The filename of the saved document
* @return string The filename of the saved document
*
* @throws \Exception
*/
public static function cetak($jenis, $models, $filename, $template_id, $tanggal = null, $pengelola = null)
Expand Down
8 changes: 4 additions & 4 deletions app/Helpers/Fonnte.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function __construct()
/**
* Make a request to the Fonnte API.
*
* @param string $endpoint The API endpoint to call.
* @param array $params The parameters to send with the request.
* @param string $endpoint The API endpoint to call.
* @param array $params The parameters to send with the request.
* @return array The response from the API.
*/
protected function makeRequest($endpoint, $params = [])
Expand Down Expand Up @@ -63,8 +63,8 @@ protected function makeRequest($endpoint, $params = [])
/**
* Send a WhatsApp message using the Fonnte API.
*
* @param string $phoneNumber The phone number to send the message to.
* @param string $message The message to send.
* @param string $phoneNumber The phone number to send the message to.
* @param string $message The message to send.
* @return array The response from the API.
*/
public function sendWhatsAppMessage($phoneNumber, $message)
Expand Down
10 changes: 5 additions & 5 deletions app/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class Helper
/**
* Get the name of the last sheet in an Excel file.
*
* @param string $file The path to the Excel file.
* @param string $file The path to the Excel file.
* @return string The name of the last sheet.
*/
public static function getLastSheetName($file)
Expand All @@ -280,7 +280,7 @@ public static function getLastSheetName($file)
/**
* Format a phone number to a WhatsApp URL.
*
* @param string $telepon The phone number to format.
* @param string $telepon The phone number to format.
* @return string The formatted WhatsApp URL.
*/
public static function formatTelepon($telepon)
Expand All @@ -295,7 +295,7 @@ public static function formatTelepon($telepon)
/**
* Check if the current date is within a specific quarter.
*
* @param int $tw The quarter to check (1, 2, 3, or 4).
* @param int $tw The quarter to check (1, 2, 3, or 4).
* @return bool True if the current date is within the specified quarter, false otherwise.
*/
public static function is_triwulan($tw)
Expand All @@ -318,7 +318,7 @@ public static function is_triwulan($tw)
/**
* Check if the current date is within a specific cumulative quarter.
*
* @param int $tw The cumulative quarter to check (1, 2, 3, or 4).
* @param int $tw The cumulative quarter to check (1, 2, 3, or 4).
* @return bool True if the current date is within the specified cumulative quarter, false otherwise.
*/
public static function is_triwulan_kumulatif($tw)
Expand All @@ -341,7 +341,7 @@ public static function is_triwulan_kumulatif($tw)
/**
* Get the current quarter based on the given month.
*
* @param int $month The month to determine the quarter.
* @param int $month The month to determine the quarter.
* @return int The current quarter (1, 2, 3, or 4).
*/
public static function getTriwulanBerjalan($month)
Expand Down