1 | <?php |
||
14 | class SiteAlias extends Config implements SiteAliasInterface |
||
15 | { |
||
16 | use SiteAliasTrait; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name; |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | public function __construct(array $data = null, $name = '', $env = '') |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function name() |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function exportConfig() |
||
50 | |||
51 | /** |
||
52 | * Reconfigure data exported from the form it is expected to be in |
||
53 | * inside an alias record to the form it is expected to be in when |
||
54 | * inside a configuration file. |
||
55 | */ |
||
56 | protected function remap($data) |
||
70 | |||
71 | /** |
||
72 | * Fetch the parameter-specific options from the 'alias-parameters' section of the alias. |
||
73 | * @param string $parameterName |
||
74 | * @return array |
||
75 | */ |
||
76 | protected function getParameterSpecificOptions($aliasData, $parameterName) |
||
83 | |||
84 | /** |
||
85 | * Convert the data in this record to the layout that was used |
||
86 | * in the legacy code, for backwards compatiblity. |
||
87 | */ |
||
88 | public function legacyRecord() |
||
101 | |||
102 | /** |
||
103 | * Conversion table from old to new option names. These all implicitly |
||
104 | * go in `options`, although they can come from different locations. |
||
105 | */ |
||
106 | protected function remapOptionTable() |
||
115 | } |
||
116 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.