@@ -58,7 +58,7 @@ public static function subtreeGet(&$root, &$partial, $jsonPath, $createInexisten
5858 } else {
5959 $ jsonPath = $ match [2 ];
6060 }
61- } else if (Language \ChildSelector::match ($ jsonPath , $ match )) {
61+ } elseif (Language \ChildSelector::match ($ jsonPath , $ match )) {
6262 $ contents = $ match [0 ];
6363 foreach ($ selection as &$ partial ) {
6464 list ($ result , $ newHasDiverged ) = Operation \SelectChildren::apply ($ root , $ partial , $ contents , $ createInexistent );
@@ -71,12 +71,12 @@ public static function subtreeGet(&$root, &$partial, $jsonPath, $createInexisten
7171 } else {
7272 $ jsonPath = $ match [1 ];
7373 }
74- } else if (preg_match (Language \Regex::RECURSIVE_SELECTOR , $ jsonPath , $ match )) {
74+ } elseif (preg_match (Language \Regex::RECURSIVE_SELECTOR , $ jsonPath , $ match )) {
7575 $ recursivePath = $ match [1 ];
7676 if ($ recursivePath [0 ] === '[ ' ) {
77- $ recursivePath = "$ $ recursivePath " ;
77+ $ recursivePath = "$ { $ recursivePath} " ;
7878 } else {
79- $ recursivePath = "$. $ recursivePath " ;
79+ $ recursivePath = "$. { $ recursivePath} " ;
8080 }
8181 foreach ($ selection as &$ partial ) {
8282 list ($ result , $ newHasDiverged ) = Operation \GetRecursive::apply ($ root , $ partial , $ recursivePath );
@@ -87,7 +87,7 @@ public static function subtreeGet(&$root, &$partial, $jsonPath, $createInexisten
8787 $ hasDiverged = $ hasDiverged || $ newHasDiverged ;
8888 break ;
8989 } else {
90- $ jsonPath = "" ;
90+ $ jsonPath = '' ;
9191 }
9292 } else {
9393 throw new \JsonPath \InvalidJsonPathException ($ jsonPath );
0 commit comments