comparison vendor/symfony/routing/Route.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
312 * 312 *
313 * @return bool true if the option is set, false otherwise 313 * @return bool true if the option is set, false otherwise
314 */ 314 */
315 public function hasOption($name) 315 public function hasOption($name)
316 { 316 {
317 return array_key_exists($name, $this->options); 317 return \array_key_exists($name, $this->options);
318 } 318 }
319 319
320 /** 320 /**
321 * Returns the defaults. 321 * Returns the defaults.
322 * 322 *
381 * 381 *
382 * @return bool true if the default value is set, false otherwise 382 * @return bool true if the default value is set, false otherwise
383 */ 383 */
384 public function hasDefault($name) 384 public function hasDefault($name)
385 { 385 {
386 return array_key_exists($name, $this->defaults); 386 return \array_key_exists($name, $this->defaults);
387 } 387 }
388 388
389 /** 389 /**
390 * Sets a default value. 390 * Sets a default value.
391 * 391 *
466 * 466 *
467 * @return bool true if a requirement is specified, false otherwise 467 * @return bool true if a requirement is specified, false otherwise
468 */ 468 */
469 public function hasRequirement($key) 469 public function hasRequirement($key)
470 { 470 {
471 return array_key_exists($key, $this->requirements); 471 return \array_key_exists($key, $this->requirements);
472 } 472 }
473 473
474 /** 474 /**
475 * Sets a requirement for the given key. 475 * Sets a requirement for the given key.
476 * 476 *