Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
35 * {@inheritdoc} | 35 * {@inheritdoc} |
36 */ | 36 */ |
37 public function parse($source) | 37 public function parse($source) |
38 { | 38 { |
39 // Matches an empty string | 39 // Matches an empty string |
40 if ($source == '') { | 40 if ('' == $source) { |
41 return array(new SelectorNode(new ElementNode(null, '*'))); | 41 return array(new SelectorNode(new ElementNode(null, '*'))); |
42 } | 42 } |
43 | 43 |
44 return array(); | 44 return array(); |
45 } | 45 } |