Apply fixes from StyleCI (#13208)

This commit is contained in:
Jellyfrog
2021-09-08 23:35:56 +02:00
committed by GitHub
co-authored by GitHub
parent c6d2385c3a
commit 26b95c0ccc
370 changed files with 1667 additions and 1667 deletions
+15 -15
View File
@@ -68,9 +68,9 @@ class ModuleTestHelper
/**
* ModuleTester constructor.
* @param array|string $modules
* @param string $os
* @param string $variant
* @param array|string $modules
* @param string $os
* @param string $variant
* @throws InvalidModuleException
*/
public function __construct($modules, $os, $variant = '')
@@ -246,7 +246,7 @@ class ModuleTestHelper
* Each entry contains [$os, $variant, $valid_modules]
* $valid_modules is an array of selected modules this os has test data for
*
* @param array $modules
* @param array $modules
* @return array
* @throws InvalidModuleException
*/
@@ -295,7 +295,7 @@ class ModuleTestHelper
/**
* Given a json filename or basename, extract os and variant
*
* @param string $os_file Either a filename or the basename
* @param string $os_file Either a filename or the basename
* @return array [$os, $variant]
*/
public static function extractVariant($os_file)
@@ -317,7 +317,7 @@ class ModuleTestHelper
* Generate a module list. Try to take dependencies into account.
* Probably needs to be more robust
*
* @param array $modules
* @param array $modules
* @return array
* @throws InvalidModuleException
*/
@@ -512,8 +512,8 @@ class ModuleTestHelper
* Run discovery and polling against snmpsim data and create a database dump
* Save the dumped data to tests/data/<os>.json
*
* @param Snmpsim $snmpsim
* @param bool $no_save
* @param Snmpsim $snmpsim
* @param bool $no_save
* @return array|null
* @throws FileNotFoundException
*/
@@ -643,8 +643,8 @@ class ModuleTestHelper
}
/**
* @param string $output poller or discovery output
* @param string $type poller|disco identified by "#### Load disco module" string
* @param string $output poller or discovery output
* @param string $type poller|disco identified by "#### Load disco module" string
* @return array
*/
private function extractModuleOutput($output, $type)
@@ -675,9 +675,9 @@ class ModuleTestHelper
* Dump the current database data for the module to an array
* Mostly used for testing
*
* @param int $device_id The test device id
* @param array $modules to capture data for (should be a list of modules that were actually run)
* @param string $key a key to store the data under the module key (usually discovery or poller)
* @param int $device_id The test device id
* @param array $modules to capture data for (should be a list of modules that were actually run)
* @param string $key a key to store the data under the module key (usually discovery or poller)
* @return array The dumped data keyed by module -> table
*/
public function dumpDb($device_id, $modules, $key = null)
@@ -774,7 +774,7 @@ class ModuleTestHelper
* Get the output from the last discovery that was run
* If module was specified, only return that module's output
*
* @param null $module
* @param null $module
* @return mixed
*/
public function getDiscoveryOutput($module = null)
@@ -794,7 +794,7 @@ class ModuleTestHelper
* Get output from the last poller that was run
* If module was specified, only return that module's output
*
* @param null $module
* @param null $module
* @return mixed
*/
public function getPollerOutput($module = null)