@@ -194,7 +194,7 @@ private function assembleTestPhp($testObject)
194194 $ hookPhp = $ this ->generateHooksPhp ($ testObject ->getHooks ());
195195 $ testsPhp = $ this ->generateTestPhp ($ testObject );
196196 } catch (TestReferenceException $ e ) {
197- throw new TestReferenceException ($ e ->getMessage (). " in Test \"" . $ testObject ->getName () . "\"" );
197+ throw new TestReferenceException ($ e ->getMessage () . " in Test \"" . $ testObject ->getName () . "\"" );
198198 }
199199
200200 $ cestPhp = "<?php \n" ;
@@ -252,7 +252,7 @@ private function assembleAllTestPhp($testManifest, $nodes, array $testsToIgnore)
252252 private function debug ($ messages )
253253 {
254254 if ($ this ->debug && $ messages ) {
255- $ messages = (array ) $ messages ;
255+ $ messages = (array )$ messages ;
256256 foreach ($ messages as $ message ) {
257257 $ this ->consoleOutput ->writeln ($ message );
258258 }
@@ -316,9 +316,9 @@ private function generateAnnotationsPhp($annotationsObject, $isMethod = false)
316316 continue ;
317317 }
318318 if (!$ isMethod ) {
319- $ annotationsPhp .= $ this ->generateClassAnnotations ($ annotationType , $ annotationName );
319+ $ annotationsPhp .= $ this ->generateClassAnnotations ($ annotationType , $ annotationName );
320320 } else {
321- $ annotationsPhp .= $ this ->generateMethodAnnotations ($ annotationType , $ annotationName );
321+ $ annotationsPhp .= $ this ->generateMethodAnnotations ($ annotationType , $ annotationName );
322322 }
323323 }
324324
@@ -544,10 +544,9 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
544544 // validate the param array is in the correct format
545545 $ this ->validateParameterArray ($ customActionAttributes ['parameterArray ' ]);
546546
547- $ parameterArray = "[ " . $ this ->addUniquenessToParamArray (
548- $ customActionAttributes ['parameterArray ' ]
549- )
550- . "] " ;
547+ $ parameterArray = "[ " ;
548+ $ parameterArray .= $ this ->addUniquenessToParamArray ($ customActionAttributes ['parameterArray ' ]);
549+ $ parameterArray .= "] " ;
551550 }
552551
553552 if (isset ($ customActionAttributes ['requiredAction ' ])) {
@@ -1186,12 +1185,9 @@ public function generateStepsPhp($actionObjects, $hookObject = false, $actor = "
11861185 break ;
11871186 case "field " :
11881187 $ fieldKey = $ actionObject ->getCustomActionAttributes ()['key ' ];
1189- $ argRef = "\t\t\$" . str_replace (
1190- ucfirst ($ fieldKey ),
1191- "" ,
1192- $ stepKey
1193- ) . "Fields[' {$ fieldKey }'] = $ {input}; \n" ;
1194- $ testSteps .= $ this ->resolveTestVariable ($ argRef , [$ input ], $ actionObject ->getActionOrigin ());
1188+ $ argRef = "\t\t\$" ;
1189+ $ argRef .= str_replace (ucfirst ($ fieldKey ), "" , $ stepKey ) . "Fields[' {$ fieldKey }'] = $ {input}; \n" ;
1190+ $ testSteps .= $ this ->resolveTestVariable ($ argRef , [$ input ], $ actionObject ->getActionOrigin ());
11951191 break ;
11961192 default :
11971193 $ testSteps .= $ this ->wrapFunctionCall ($ actor , $ actionObject , $ selector , $ input , $ parameter );
@@ -1804,10 +1800,11 @@ private function stripQuotes($inStr)
18041800 private function validateXmlAttributesMutuallyExclusive ($ key , $ tagName , $ attributes )
18051801 {
18061802 $ rules = [
1807- ['attributes ' => [
1808- 'selector ' ,
1809- 'selectorArray ' ,
1810- ]
1803+ [
1804+ 'attributes ' => [
1805+ 'selector ' ,
1806+ 'selectorArray ' ,
1807+ ]
18111808 ],
18121809 [
18131810 'attributes ' => [
0 commit comments