diff --git a/composer.json b/composer.json index 2a8ba8d9..006a3204 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "docusign/esign-client": ">=2.0", "predis/predis": ">=1.0", "nesbot/carbon": ">=1.34", - "laravel/framework": "9.*" + "laravel/framework": "11.*" }, "suggest": { "guzzlehttp/guzzle": ">=6.0", diff --git a/src/Checkers/Base.php b/src/Checkers/Base.php index f7de6a67..5dd8d776 100644 --- a/src/Checkers/Base.php +++ b/src/Checkers/Base.php @@ -33,7 +33,7 @@ protected function checkAndStoreTime() /** * Create base directory for files. * - * @param $fileName + * @param $fileName */ protected function makeDir($fileName) { @@ -69,7 +69,7 @@ protected function makeHealthyResult() /** * Make a result from an exception. * - * @param $exception + * @param $exception * @return Result */ protected function makeResultFromException($exception) @@ -78,7 +78,7 @@ protected function makeResultFromException($exception) } /** - * @param $resources + * @param $resources * @return mixed */ public function healthy($resources) @@ -87,7 +87,7 @@ public function healthy($resources) } /** - * @param $resources + * @param $resources * @return mixed */ public function message($resources) @@ -98,7 +98,7 @@ public function message($resources) /** * Save result to database. * - * @param $result + * @param $result * @return */ protected function saveToDatabase($result) @@ -109,7 +109,7 @@ protected function saveToDatabase($result) } /** - * @param $healthy + * @param $healthy */ public function setHealthy($healthy) { @@ -117,7 +117,7 @@ public function setHealthy($healthy) } /** - * @param $message + * @param $message */ public function setMessage($message) { @@ -153,7 +153,7 @@ public function load() /** * Persist to database cache file. * - * @param $data + * @param $data */ public function persist($data = null) { @@ -183,7 +183,7 @@ protected function getFileName() /** * Target setter. * - * @param $target + * @param $target * @return $this */ public function setTarget($target) @@ -196,7 +196,7 @@ public function setTarget($target) /** * Check the target. * - * @param $target + * @param $target * @return \PragmaRX\Health\Support\Result */ public function checkTarget() @@ -211,7 +211,7 @@ public function checkTarget() /** * Get the total elapsed time for this resource. * - * @param $target + * @param $target * @return string */ public function getTotalTime() diff --git a/src/Checkers/Broadcasting.php b/src/Checkers/Broadcasting.php index 7d07facd..97405a1e 100644 --- a/src/Checkers/Broadcasting.php +++ b/src/Checkers/Broadcasting.php @@ -80,7 +80,7 @@ protected function createPingRow() /** * Parse date. * - * @param $date + * @param $date * @return Carbon */ protected function parseDate($date) @@ -91,7 +91,7 @@ protected function parseDate($date) /** * Create and persist pong. * - * @param $secret + * @param $secret */ public function pong($secret) { diff --git a/src/Checkers/Certificate.php b/src/Checkers/Certificate.php index 7b010844..39efb627 100644 --- a/src/Checkers/Certificate.php +++ b/src/Checkers/Certificate.php @@ -165,7 +165,7 @@ public function checkCertificateWithPhp($host) } /** - * @param $host + * @param $host * @return string|string[] */ protected function makeCommand($host) diff --git a/src/Checkers/Contract.php b/src/Checkers/Contract.php index 1bb0fe1c..3a05089a 100644 --- a/src/Checkers/Contract.php +++ b/src/Checkers/Contract.php @@ -10,13 +10,13 @@ interface Contract public function check(); /** - * @param $resources + * @param $resources * @return mixed */ public function healthy($resources); /** - * @param $resources + * @param $resources * @return mixed */ public function message($resources); diff --git a/src/Checkers/DirectoryAndFilePresence.php b/src/Checkers/DirectoryAndFilePresence.php index 5ef9e2ff..1e3f28bb 100644 --- a/src/Checkers/DirectoryAndFilePresence.php +++ b/src/Checkers/DirectoryAndFilePresence.php @@ -156,7 +156,7 @@ public function getCheckers($checker) /** * Check if a file exists. * - * @param $file + * @param $file * @return bool|string */ public function fileExists($file) @@ -171,7 +171,7 @@ public function fileExists($file) /** * Check if a file does not exists. * - * @param $file + * @param $file * @return bool|string */ public function fileDoesNotExists($file) @@ -186,7 +186,7 @@ public function fileDoesNotExists($file) /** * Check if a path is a directory. * - * @param $file + * @param $file * @return bool|string */ public function isDirectory($file) diff --git a/src/Checkers/Docusign.php b/src/Checkers/Docusign.php index 7cd1033a..55f8bc1b 100644 --- a/src/Checkers/Docusign.php +++ b/src/Checkers/Docusign.php @@ -40,7 +40,7 @@ private function getAccountIdFromLogin($login) } /** - * @param $config + * @param $config * @return ApiClient */ protected function getApiClient($config) @@ -49,7 +49,7 @@ protected function getApiClient($config) } /** - * @param $config + * @param $config * @return AuthenticationApi */ protected function getAuthApi($config) @@ -77,7 +77,7 @@ protected function getConfig() } /** - * @param $config + * @param $config * @return \DocuSign\eSign\Model\LoginInformation */ protected function getLoginInformation($config) diff --git a/src/Checkers/Filesystem.php b/src/Checkers/Filesystem.php index 7ae76a70..39bfed66 100644 --- a/src/Checkers/Filesystem.php +++ b/src/Checkers/Filesystem.php @@ -34,8 +34,8 @@ public function check() } /** - * @param $name - * @param $content + * @param $name + * @param $content * @param null $folder * @return string */ diff --git a/src/Checkers/Health.php b/src/Checkers/Health.php index f1d9b1d9..6e417a73 100644 --- a/src/Checkers/Health.php +++ b/src/Checkers/Health.php @@ -24,8 +24,8 @@ public function check() /** * Compute health. * - * @param $previous - * @param $resource + * @param $previous + * @param $resource * @return bool */ private function computeHealth($previous, $resource) @@ -38,7 +38,7 @@ private function computeHealth($previous, $resource) /** * Compute health for targets. * - * @param $resource + * @param $resource * @return bool */ private function computeHealthForAllTargets($resource) diff --git a/src/Checkers/HealthPanel.php b/src/Checkers/HealthPanel.php index a89ad2e9..1d1e8dd2 100644 --- a/src/Checkers/HealthPanel.php +++ b/src/Checkers/HealthPanel.php @@ -126,7 +126,7 @@ public function checkHealthPanel($url) /** * Send an http request and fetch the panel json. * - * @param $url + * @param $url * @return mixed|\Psr\Http\Message\ResponseInterface * * @throws \GuzzleHttp\Exception\GuzzleException diff --git a/src/Checkers/Http.php b/src/Checkers/Http.php index d542eea2..e8a1f946 100644 --- a/src/Checkers/Http.php +++ b/src/Checkers/Http.php @@ -78,7 +78,7 @@ private function getResourceUrlArray() /** * Check web pages. * - * @param $url + * @param $url * @param bool $ssl * @return mixed */ @@ -102,8 +102,8 @@ private function checkUrl($url, $ssl = false, $parameters = []) /** * Send an http request and fetch the response. * - * @param $url - * @param $ssl + * @param $url + * @param $ssl * @return mixed|\Psr\Http\Message\ResponseInterface * * @throws \GuzzleHttp\Exception\GuzzleException @@ -122,7 +122,7 @@ private function fetchResponse($url, $ssl, $parameters = []) /** * Get http connection options. * - * @param $ssl + * @param $ssl * @return array */ protected function getConnectionOptions($ssl) @@ -175,8 +175,8 @@ private function getRoundtripTimeout() /** * Make a url with a proper scheme. * - * @param $url - * @param $secure + * @param $url + * @param $secure * @return mixed */ private function makeUrlWithScheme($url, $secure) @@ -203,8 +203,8 @@ private function onStatsCallback() /** * Send a request and get the result. * - * @param $url - * @param $ssl + * @param $url + * @param $ssl * @return bool * * @internal param $response diff --git a/src/Checkers/NotInDebugMode.php b/src/Checkers/NotInDebugMode.php index 660daf6a..97402f92 100644 --- a/src/Checkers/NotInDebugMode.php +++ b/src/Checkers/NotInDebugMode.php @@ -65,7 +65,7 @@ protected function getCurrentUptime() /** * Normalize uptime matches. * - * @param $matches + * @param $matches * @return \Illuminate\Support\Collection */ protected function normalizeMatches($matches) @@ -93,7 +93,7 @@ protected function normalizeMatches($matches) /** * Parse the uptime string. * - * @param $system_string + * @param $system_string * @return array */ protected function parseUptimeString($system_string) @@ -117,7 +117,7 @@ protected function parseUptimeString($system_string) /** * Convert uptime to seconds. * - * @param $date + * @param $date * @return int */ protected function uptimeInSeconds($date) @@ -131,8 +131,8 @@ protected function uptimeInSeconds($date) /** * Make uptime message. * - * @param $current - * @param $saved + * @param $current + * @param $saved * @return string */ protected function makeMessage($current, $saved = null) @@ -147,7 +147,7 @@ protected function makeMessage($current, $saved = null) /** * Convert uptime to human readable string. * - * @param $uptime + * @param $uptime * @return string */ public function toUptimeString($uptime) diff --git a/src/Checkers/Ping.php b/src/Checkers/Ping.php index 4c947f3f..d016a210 100644 --- a/src/Checkers/Ping.php +++ b/src/Checkers/Ping.php @@ -58,7 +58,7 @@ public function ping($hostname, $timeout = 5, $ttl = 128) } /** - * @param $hostname + * @param $hostname * @return mixed */ protected function hosnameAndIp($hostname, $ipAdress) diff --git a/src/Checkers/PortCheck.php b/src/Checkers/PortCheck.php index a40973da..122416c2 100644 --- a/src/Checkers/PortCheck.php +++ b/src/Checkers/PortCheck.php @@ -27,7 +27,7 @@ public function check() /** * Get hostname and IP. * - * @param $hostname + * @param $hostname * @return mixed */ protected function hosnameAndIp($hostname, $ipAdress) @@ -69,7 +69,7 @@ public function portCheck($ipAddress, $port, $timeout) } /** - * @param $ipAddress + * @param $ipAddress * @return bool */ protected function portIsNotConnectable($ipAddress) diff --git a/src/Checkers/Process.php b/src/Checkers/Process.php index f97e93e8..0f8efe7e 100644 --- a/src/Checkers/Process.php +++ b/src/Checkers/Process.php @@ -74,7 +74,7 @@ private function countRunningProcesses() } /** - * @param $file + * @param $file * @return bool */ private function checkPidFileExistence($file) @@ -89,7 +89,7 @@ private function checkPidFileExistence($file) } /** - * @param $file + * @param $file * @return bool */ private function checkPidFileLockState($file) diff --git a/src/Checkers/ServerUptime.php b/src/Checkers/ServerUptime.php index 633acf96..95487bf6 100644 --- a/src/Checkers/ServerUptime.php +++ b/src/Checkers/ServerUptime.php @@ -70,7 +70,7 @@ protected function getCurrentUptime() /** * Normalize uptime matches. * - * @param $matches + * @param $matches * @return \Illuminate\Support\Collection */ protected function normalizeMatches($matches) @@ -98,7 +98,7 @@ protected function normalizeMatches($matches) /** * Parse the uptime string. * - * @param $system_string + * @param $system_string * @return array */ protected function parseUptimeString($system_string) @@ -122,7 +122,7 @@ protected function parseUptimeString($system_string) /** * Convert uptime to seconds. * - * @param $date + * @param $date * @return int */ protected function uptimeInSeconds($date) @@ -136,8 +136,8 @@ protected function uptimeInSeconds($date) /** * Make uptime message. * - * @param $current - * @param $saved + * @param $current + * @param $saved * @return string */ protected function makeMessage($current, $saved = null) @@ -152,7 +152,7 @@ protected function makeMessage($current, $saved = null) /** * Convert uptime to human readable string. * - * @param $uptime + * @param $uptime * @return string */ public function toUptimeString($uptime) diff --git a/src/Commands.php b/src/Commands.php index 4871d515..b5219a09 100644 --- a/src/Commands.php +++ b/src/Commands.php @@ -15,10 +15,10 @@ class Commands * More information: https://nagios-plugins.org/doc/guidelines.html#AEN78 */ const EXIT_CODES = [ - result::OK => 0, // Healthy. - result::WARNING => 1, - result::CRITICAL => 2, // Not healthy. - result::UNKNOWN => 3, + result::OK => 0, // Healthy. + result::WARNING => 1, + result::CRITICAL => 2, // Not healthy. + result::UNKNOWN => 3, ]; /** @@ -37,7 +37,7 @@ public function __construct(HealthService $healthService) } /** - * @param $rows + * @param $rows * @return \Illuminate\Support\Collection|\IlluminateAgnostic\Arr\Support\Collection|\IlluminateAgnostic\Collection\Support\Collection|\IlluminateAgnostic\Str\Support\Collection|\Tightenco\Collect\Support\Collection|\Vanilla\Support\Collection * * @throws \Exception @@ -156,7 +156,7 @@ public function check(Command $command = null): int * Format input to textual table. * * @param Command|null $command - * @param $columns + * @param $columns * @param \Illuminate\Contracts\Support\Arrayable|array $rows */ private function table($command, $columns, $rows) @@ -170,7 +170,7 @@ private function table($command, $columns, $rows) * Write a string as information output. * * @param Command|null $command - * @param $string + * @param $string */ private function info($command, $string) { @@ -183,7 +183,7 @@ private function info($command, $string) * Write a string as information output. * * @param Command|null $command - * @param $string + * @param $string */ private function error($command, $string) { @@ -196,7 +196,7 @@ private function error($command, $string) * Write a string as information output. * * @param Command|null $command - * @param $string + * @param $string */ private function warn($command, $string) { diff --git a/src/Http/Controllers/Broadcasting.php b/src/Http/Controllers/Broadcasting.php index 3fda91bf..5226fa9f 100644 --- a/src/Http/Controllers/Broadcasting.php +++ b/src/Http/Controllers/Broadcasting.php @@ -17,7 +17,7 @@ public function callback($secret, Request $request) } /** - * @param $resource + * @param $resource * @return mixed */ protected function instantiateChecker($resource) diff --git a/src/Http/Controllers/Health.php b/src/Http/Controllers/Health.php index c369b938..f91a1c4f 100644 --- a/src/Http/Controllers/Health.php +++ b/src/Http/Controllers/Health.php @@ -44,7 +44,7 @@ public function check() /** * Check and get one resource. * - * @param $slug + * @param $slug * @return mixed * * @throws \Exception diff --git a/src/Notifications/HealthStatus.php b/src/Notifications/HealthStatus.php index 92ce00d2..cc83640d 100644 --- a/src/Notifications/HealthStatus.php +++ b/src/Notifications/HealthStatus.php @@ -25,7 +25,7 @@ class HealthStatus extends Notification /** * Create a new notification instance. * - * @param $item + * @param $item */ public function __construct($item, $channel) { @@ -37,7 +37,7 @@ public function __construct($item, $channel) /** * Get sender instance. * - * @param $name + * @param $name * @return \Illuminate\Foundation\Application|mixed */ private function getSenderInstance($name) @@ -64,7 +64,7 @@ public function via() /** * Magic getter. * - * @param $name + * @param $name * @return null */ public function __get($name) @@ -75,8 +75,8 @@ public function __get($name) } /** - * @param $name - * @param $parameters + * @param $name + * @param $parameters * @return mixed */ public function __call($name, $parameters) @@ -92,7 +92,7 @@ public function __call($name, $parameters) /** * Create Slack message. * - * @param $notifiable + * @param $notifiable * @return SlackMessage */ public function toSlack($notifiable) @@ -114,7 +114,7 @@ public function toSlack($notifiable) /** * Create Mail message. * - * @param $notifiable + * @param $notifiable * @return MailMessage */ public function toMail($notifiable) @@ -133,7 +133,7 @@ public function toMail($notifiable) /** * Get the action message. * - * @param $item + * @param $item * @return \Illuminate\Config\Repository|mixed */ private function getActionMessage($item) diff --git a/src/Service.php b/src/Service.php index 4dbd754f..a9f0c241 100644 --- a/src/Service.php +++ b/src/Service.php @@ -47,7 +47,7 @@ public function checkResources($force = false) /** * Check one resource. * - * @param $slug + * @param $slug * @return array * * @throws \Exception @@ -96,7 +96,7 @@ public function getSilentChecker() /** * Make a string result of all resources. * - * @param $string + * @param $string * @param string Result::status $resultStatus * @return string */ @@ -121,7 +121,7 @@ private function makeString($string, $resultStatus) /** * Check and get a resource. * - * @param $name + * @param $name * @return mixed * * @throws \Exception @@ -134,7 +134,7 @@ public function resource($slug) /** * Set the action. * - * @param $action + * @param $action */ public function setAction($action) { diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index f3f0df9e..090a102f 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -180,8 +180,8 @@ private function getCacheClosure() /** * Get the resource checker closure for instantiation. * - * @param $resourceLoader - * @param $cache + * @param $resourceLoader + * @param $cache * @return \Closure */ private function getResourceCheckerClosure($resourceLoader, $cache) @@ -218,8 +218,8 @@ private function instantiateCommands() /** * Instantiate the main service. * - * @param $resourceChecker - * @param $cache + * @param $resourceChecker + * @param $cache * @return Service */ private function instantiateService($resourceChecker, $cache) diff --git a/src/Support/Resource.php b/src/Support/Resource.php index eda5ad50..77c844fb 100644 --- a/src/Support/Resource.php +++ b/src/Support/Resource.php @@ -221,7 +221,7 @@ public function check($action = 'resource', $caller = 'console') /** * Check global resources. * - * @param $resources + * @param $resources * @return resource */ public function checkGlobal($resources) @@ -353,7 +353,7 @@ public function setCurrentCaller(string $currentCaller) /** * Resources setter. * - * @param $resources + * @param $resources * @return resource */ protected function setResources($resources) diff --git a/src/Support/ResourceChecker.php b/src/Support/ResourceChecker.php index e8e31ed0..279bdcb2 100644 --- a/src/Support/ResourceChecker.php +++ b/src/Support/ResourceChecker.php @@ -120,7 +120,7 @@ public function checkResources($force = false) /** * Check a resource. * - * @param $resource + * @param $resource * @return array * * @throws Exception @@ -231,7 +231,7 @@ protected function getGlobalResources() /** * Get a resource by slug. * - * @param $slug + * @param $slug * @return mixed * * @throws Exception @@ -246,8 +246,8 @@ public function getResourceBySlug($slug) /** * Make the result array. * - * @param $exception - * @param $resourceChecker + * @param $exception + * @param $resourceChecker * @return array */ protected function makeResult($exception, $resourceChecker) @@ -355,7 +355,7 @@ public function makeResource($resource) /** * Sort resources. * - * @param $resources + * @param $resources * @return \Illuminate\Support\Collection */ protected function sortResources($resources) diff --git a/src/Support/ResourceLoader.php b/src/Support/ResourceLoader.php index 9a9d207e..66f66eb6 100644 --- a/src/Support/ResourceLoader.php +++ b/src/Support/ResourceLoader.php @@ -33,7 +33,7 @@ public function __construct(Yaml $yaml) /** * Get enabled resources. * - * @param $resources + * @param $resources * @return \Illuminate\Support\Collection * * @throws \Exception @@ -157,7 +157,7 @@ private function loadResourcesFiles() /** * Remove extension from file name. * - * @param $key + * @param $key * @return string */ private function removeExtension($key) @@ -168,7 +168,7 @@ private function removeExtension($key) /** * Sanitize resource key. * - * @param $key + * @param $key * @return string */ private function sanitizeKey($key) @@ -179,7 +179,7 @@ private function sanitizeKey($key) /** * Sanitize resources. * - * @param $resources + * @param $resources * @return \Illuminate\Support\Collection */ private function sanitizeResources($resources) diff --git a/src/Support/Target.php b/src/Support/Target.php index 09ec4f54..abd21c42 100644 --- a/src/Support/Target.php +++ b/src/Support/Target.php @@ -61,8 +61,8 @@ protected function exceptionResult($exception) /** * Target factory. * - * @param $resource - * @param $data + * @param $resource + * @param $data * @return Target */ public static function factory($resource, $data, $name = null) @@ -143,8 +143,8 @@ public function getResult() /** * Make target name. * - * @param $data - * @param $name + * @param $data + * @param $name * @return string */ protected static function makeName($data, $name) @@ -171,7 +171,7 @@ protected function moveChecksBackToTarget() /** * Make a result. * - * @param $result + * @param $result * @return Result */ protected function result($result) diff --git a/src/Support/Traits/ImportProperties.php b/src/Support/Traits/ImportProperties.php index a678c049..9fbae730 100644 --- a/src/Support/Traits/ImportProperties.php +++ b/src/Support/Traits/ImportProperties.php @@ -9,7 +9,7 @@ trait ImportProperties /** * Import all collection items to object properties. * - * @param $data + * @param $data */ public function importProperties($data) { diff --git a/src/Support/Traits/Routing.php b/src/Support/Traits/Routing.php index 7f2db4e1..acd344ae 100644 --- a/src/Support/Traits/Routing.php +++ b/src/Support/Traits/Routing.php @@ -5,7 +5,7 @@ trait Routing { /** - * @param $route + * @param $route * @param null $name */ protected function registerRoute($route, $name = null) diff --git a/src/Support/Traits/ToArray.php b/src/Support/Traits/ToArray.php index 7e893c4b..24df78d9 100644 --- a/src/Support/Traits/ToArray.php +++ b/src/Support/Traits/ToArray.php @@ -13,7 +13,7 @@ trait ToArray /** * Reset depth and convert object to array. * - * @param $subject + * @param $subject * @param int $maxDepth * @return array|null */ @@ -29,7 +29,7 @@ public function __toArray($subject, $maxDepth = 3) /** * Convert object to array. * - * @param $subject + * @param $subject * @return array|null */ public function ___toArray($subject) diff --git a/src/Support/helpers.php b/src/Support/helpers.php index 1e9f5ac3..5fdd4cce 100644 --- a/src/Support/helpers.php +++ b/src/Support/helpers.php @@ -6,7 +6,7 @@ /** * Instantiate a class. * - * @param $abstract + * @param $abstract * @param array $parameters * @return object */ @@ -57,7 +57,7 @@ function package_resources_dir() /** * Check if string is absolute path. * - * @param $path + * @param $path * @return string */ function is_absolute_path($path)