Skip to content
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

Apply fixes from StyleCI #1220

Merged
merged 1 commit into from
Jan 23, 2022
Merged
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
26 changes: 13 additions & 13 deletions Blacklight/utility/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public static function clearScreen(): void
* relative to the last occurrence of the specified character.
* The character selected may be retained or discarded.
*
* @param string $character the character to search for.
* @param string $string the string to search through.
* @param string $side determines whether text to the left or the right of the character is returned.
* @param string $character the character to search for.
* @param string $string the string to search through.
* @param string $side determines whether text to the left or the right of the character is returned.
* Options are: left, or right.
* @param bool $keep_character determines whether or not to keep the character.
* @param bool $keep_character determines whether or not to keep the character.
* Options are: true, or false.
* @return string
*/
Expand Down Expand Up @@ -201,7 +201,7 @@ public static function isGZipped($filename)
* Operates directly on the text string, but also returns the result for situations requiring a
* return value (use in ternary, etc.)/
*
* @param string $text String variable to strip.
* @param string $text String variable to strip.
* @return string The stripped variable.
*/
public static function stripNonPrintingChars(string &$text): string
Expand All @@ -214,7 +214,7 @@ public static function stripNonPrintingChars(string &$text): string
/**
* Unzip a gzip file, return the output. Return false on error / empty.
*
* @param string $filePath
* @param string $filePath
* @return bool|string
*/
public static function unzipGzipFile(string $filePath)
Expand Down Expand Up @@ -262,7 +262,7 @@ public static function setCoversConstant($path): void
* Creates an array to be used with stream_context_create() to verify openssl certificates
* when connecting to a tls or ssl connection when using stream functions (fopen/file_get_contents/etc).
*
* @param bool $forceIgnore Force ignoring of verification.
* @param bool $forceIgnore Force ignoring of verification.
* @return array
* @static
*/
Expand Down Expand Up @@ -296,7 +296,7 @@ public static function streamSslContextOptions(bool $forceIgnore = false): array
/**
* Set curl context options for verifying SSL certificates.
*
* @param bool $verify false = Ignore config.php and do not verify the openssl cert.
* @param bool $verify false = Ignore config.php and do not verify the openssl cert.
* true = Check config.php and verify based on those settings.
* If you know the certificate will be self-signed, pass false.
* @return array
Expand Down Expand Up @@ -450,7 +450,7 @@ public static function xmlToArray(\SimpleXMLElement $xml, array $options = []):
* Return file type/info using magic numbers.
* Try using `file` program where available, fallback to using PHP's finfo class.
*
* @param string $path Path to the file / folder to check.
* @param string $path Path to the file / folder to check.
* @return string File info. Empty string on failure.
*
* @throws \Exception
Expand Down Expand Up @@ -486,7 +486,7 @@ public function checkStatus($code): bool
/**
* Convert Code page 437 chars to UTF.
*
* @param string $string
* @param string $string
* @return string
*/
public static function cp437toUTF(string $string): string
Expand Down Expand Up @@ -545,7 +545,7 @@ public static function objectsIntoArray($arrObjData, array $arrSkipIndices = [])
/**
* Remove unsafe chars from a filename.
*
* @param string $filename
* @param string $filename
* @return string
*/
public static function safeFilename(string $filename): string
Expand All @@ -567,8 +567,8 @@ public static function responseXmlToObject($input): \SimpleXMLElement
/**
* Display error/error code.
*
* @param int $errorCode
* @param string $errorText
* @param int $errorCode
* @param string $errorText
*/
public static function showApiError(int $errorCode = 900, string $errorText = ''): void
{
Expand Down