From 218355dd1829f78a86fb73fa863e6b4fa7b6b56c Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 29 Sep 2017 14:13:10 +0200 Subject: [PATCH] Fix not working SomeType[string] in code docs --- application/controllers/GraphController.php | 2 +- application/forms/TimeRangePicker/CommonForm.php | 4 ++-- application/forms/TimeRangePicker/TimeRangePickerTrait.php | 2 +- library/Graphite/Graphing/MetricsQuery.php | 2 +- library/Graphite/Graphing/Templates.php | 4 ++-- library/Graphite/Util/MacroTemplate.php | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/application/controllers/GraphController.php b/application/controllers/GraphController.php index ef9c1d4..5fb2d85 100644 --- a/application/controllers/GraphController.php +++ b/application/controllers/GraphController.php @@ -31,7 +31,7 @@ class GraphController extends MonitoringAwareController /** * The URL parameters for the graph * - * @var string[string] + * @var string[] */ protected $graphParams = []; diff --git a/application/forms/TimeRangePicker/CommonForm.php b/application/forms/TimeRangePicker/CommonForm.php index 2934de3..22539fd 100644 --- a/application/forms/TimeRangePicker/CommonForm.php +++ b/application/forms/TimeRangePicker/CommonForm.php @@ -15,7 +15,7 @@ class CommonForm extends Form * * One month equals 30 days and one year equals 365.25 days. This should cover enough cases. * - * @var int[string] + * @var int[] */ protected $rangeFactors = [ 'minutes' => 60, @@ -29,7 +29,7 @@ class CommonForm extends Form /** * The elements' default values * - * @var string[string]|null + * @var string[]|null */ protected $defaultFormData; diff --git a/application/forms/TimeRangePicker/TimeRangePickerTrait.php b/application/forms/TimeRangePicker/TimeRangePickerTrait.php index cb4f0bd..fb98413 100644 --- a/application/forms/TimeRangePicker/TimeRangePickerTrait.php +++ b/application/forms/TimeRangePicker/TimeRangePickerTrait.php @@ -16,7 +16,7 @@ trait TimeRangePickerTrait } /** - * @return string[string] + * @return string[] */ public static function getAbsoluteRangeParameters() { diff --git a/library/Graphite/Graphing/MetricsQuery.php b/library/Graphite/Graphing/MetricsQuery.php index b164132..b924689 100644 --- a/library/Graphite/Graphing/MetricsQuery.php +++ b/library/Graphite/Graphing/MetricsQuery.php @@ -32,7 +32,7 @@ class MetricsQuery implements Queryable, Filterable, Fetchable /** * Extension of {@link base} * - * @var string[string] + * @var string[] */ protected $filter = []; diff --git a/library/Graphite/Graphing/Templates.php b/library/Graphite/Graphing/Templates.php index 551c8be..17a5cc9 100644 --- a/library/Graphite/Graphing/Templates.php +++ b/library/Graphite/Graphing/Templates.php @@ -20,7 +20,7 @@ class Templates /** * All templates by their name * - * @var Template[string] + * @var Template[] */ protected $templates = []; @@ -280,7 +280,7 @@ class Templates /** * Get all loaded templates by their name * - * @return Template[string] + * @return Template[] */ public function getTemplates() { diff --git a/library/Graphite/Util/MacroTemplate.php b/library/Graphite/Util/MacroTemplate.php index 2e9e428..cf54ab3 100644 --- a/library/Graphite/Util/MacroTemplate.php +++ b/library/Graphite/Util/MacroTemplate.php @@ -52,7 +52,7 @@ class MacroTemplate /** * Return a string based on this template with the macros resolved from the given variables * - * @param string[string] $variables + * @param string[] $variables * @param string $default The default value for missing variables. * By default the macro just isn't replaced. * @@ -91,7 +91,7 @@ class MacroTemplate * * @param string $resolved A result of {@link resolve()} * - * @return string[string]|false Variables as passed to {@link resolve()} if successful + * @return string[]|false Variables as passed to {@link resolve()} if successful */ public function reverseResolve($resolved) {