Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/src/Reflection/ReflectionLanguageConstruct.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
120 */ | 120 */ |
121 public function getParameters() | 121 public function getParameters() |
122 { | 122 { |
123 $params = []; | 123 $params = []; |
124 foreach (self::$languageConstructs[$this->keyword] as $parameter => $opts) { | 124 foreach (self::$languageConstructs[$this->keyword] as $parameter => $opts) { |
125 array_push($params, new ReflectionLanguageConstructParameter($this->keyword, $parameter, $opts)); | 125 \array_push($params, new ReflectionLanguageConstructParameter($this->keyword, $parameter, $opts)); |
126 } | 126 } |
127 | 127 |
128 return $params; | 128 return $params; |
129 } | 129 } |
130 | 130 |
157 * | 157 * |
158 * @return bool | 158 * @return bool |
159 */ | 159 */ |
160 public static function isLanguageConstruct($keyword) | 160 public static function isLanguageConstruct($keyword) |
161 { | 161 { |
162 return array_key_exists($keyword, self::$languageConstructs); | 162 return \array_key_exists($keyword, self::$languageConstructs); |
163 } | 163 } |
164 } | 164 } |