Apply fixes from StyleCI (#13224)

This commit is contained in:
Jellyfrog
2021-09-10 20:09:53 +02:00
committed by GitHub
parent ad52701603
commit 258505ed44
1036 changed files with 1269 additions and 19 deletions

View File

@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2020 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
@@ -49,6 +50,7 @@ abstract class BaseDatastore implements DatastoreContract
/**
* Record statistics for operation
*
* @param Measurement $stat
*/
protected function recordStatistic(Measurement $stat)

View File

@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2018 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
@@ -61,6 +62,7 @@ class Datastore
/**
* Datastore constructor.
*
* @param array $datastores Implement DatastoreInterface
*/
public function __construct($datastores)

View File

@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2020 Tony Murray
* @copyright 2017 Falk Stern <https://github.com/fstern/>
* @author Tony Murray <murraytony@gmail.com>

View File

@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2020 Tony Murray
* @copyright 2014 Neil Lathwood <https://github.com/laf/ http://www.lathwood.co.uk/fa>
* @author Tony Murray <murraytony@gmail.com>

View File

@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2020 Tony Murray
* @copyright 2017 Yacine Benamsili <https://github.com/yac01/librenms.git>
* @author Tony Murray <murraytony@gmail.com>

View File

@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2020 Tony Murray
* @copyright 2014 Neil Lathwood <https://github.com/laf/ http://www.lathwood.co.uk/fa>
* @author Tony Murray <murraytony@gmail.com>

View File

@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @link https://www.librenms.org
*
* @copyright 2018 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
@@ -187,6 +188,7 @@ class Rrd extends BaseDatastore
* Where $options is an array, each entry which is not a number is replaced with "U"
*
* @internal
*
* @param string $filename
* @param array $data
* @return array|string
@@ -351,10 +353,12 @@ class Rrd extends BaseDatastore
* Generates and pipes a command to rrdtool
*
* @internal
*
* @param string $command create, update, updatev, graph, graphv, dump, restore, fetch, tune, first, last, lastupdate, info, resize, xport, flushcached
* @param string $filename The full patth to the rrd file
* @param string $options rrdtool command options
* @return array the output of stdout and stderr in an array
*
* @throws \Exception thrown when the rrdtool process(s) cannot be started
*/
private function command($command, $filename, $options)
@@ -410,10 +414,12 @@ class Rrd extends BaseDatastore
* Determines if --daemon and -O should be used
*
* @internal
*
* @param string $command The base rrdtool command. Usually create, update, last.
* @param string $filename The full path to the rrd file
* @param string $options Options for the command possibly including the rrd definition
* @return string returns a full command ready to be piped to rrdtool
*
* @throws FileExistsException if rrdtool <1.4.3 and the rrd file exists locally
*/
public function buildCommand($command, $filename, $options)
@@ -529,6 +535,7 @@ class Rrd extends BaseDatastore
/**
* Remove RRD file(s). Use with care as this permanently deletes rrd data.
*
* @param string $hostname rrd subfolder (hostname)
* @param string $prefix start of rrd file name all files matching will be deleted
*/
@@ -551,6 +558,7 @@ class Rrd extends BaseDatastore
*
* @param string $options
* @return string
*
* @throws \LibreNMS\Exceptions\FileExistsException
* @throws \LibreNMS\Exceptions\RrdGraphException
*/