comparison vendor/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
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 [new SelectorNode(new ElementNode(null, '*'))];
42 } 42 }
43 43
44 return array(); 44 return [];
45 } 45 }
46 } 46 }