| @@ -127,10 +127,10 @@ | ||
| 127 | 127 | /** |
| 128 | 128 | * Return option $name value |
| 129 | 129 | * |
| 130 | 130 | * @param string $name Name of the option. |
| 131 | - * @param string $default Add default value. | |
| 132 | - * @return array An array of options. | |
| 131 | + * @param mixed $default Add default value. | |
| 132 | + * @return mixed The value of the option. | |
| 133 | 133 | */ |
| 134 | 134 | public function get_option($name, $default = '') { |
| 135 | 135 | if (!array_key_exists($name, $this->options)) return $default; |
| 136 | 136 | return $this->options[$name]; |
| @@ -138,10 +138,10 @@ | ||
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | 140 | * Set option $name value. |
| 141 | 141 | * |
| 142 | - * @param string $name The name of the option. | |
| 143 | - * @param string $value The value of the option. | |
| 142 | + * @param mixed $name The name of the option. | |
| 143 | + * @param mixed $value The value of the option. | |
| 144 | 144 | */ |
| 145 | 145 | public function set_option($name, $value = '') { |
| 146 | 146 | if (is_array($name)) { |
| 147 | 147 | $this->options = array_merge($this->options, $name); |
| @@ -163,12 +163,12 @@ | ||
| 163 | 163 | * @param string $message |
| 164 | 164 | * @param array $context |
| 165 | 165 | * @return string |
| 166 | 166 | */ |
| 167 | - protected function interpolate($message, array $context = array()) { | |
| 167 | + protected function interpolate($message, $context = array()) { | |
| 168 | 168 | $replace = array(); |
| 169 | 169 | foreach ($context as $key => $val) { |
| 170 | - // Check that the value can be casted to string. | |
| 170 | + // Check that the value can be cast to string. | |
| 171 | 171 | if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) { |
| 172 | 172 | $replace['{' . $key . '}'] = $val; |
| 173 | 173 | } |
| 174 | 174 | } |