@@ -180,12 +180,12 @@ |
||
180 | 180 | |
181 | 181 | $count = 0; |
182 | 182 | |
183 | - $path = realpath(__DIR__ . '/../'); |
|
183 | + $path = realpath(__DIR__.'/../'); |
|
184 | 184 | |
185 | 185 | while ($count++ < 5) { |
186 | 186 | $dir = "{$path}/configuration/"; |
187 | 187 | if (is_dir($dir)) { |
188 | - foreach (glob($dir . '*.php') as $file) { |
|
188 | + foreach (glob($dir.'*.php') as $file) { |
|
189 | 189 | $configArray = array_merge_recursive($configArray, include $file); |
190 | 190 | } |
191 | 191 | break; |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | } |
196 | 196 | |
197 | - public static function resolveClass( $class, $prefix = null) |
|
197 | + public static function resolveClass($class, $prefix = null) |
|
198 | 198 | { |
199 | 199 | $origClass = $class; |
200 | 200 | if ($prefix !== null) { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | } |
209 | 209 | |
210 | 210 | foreach (self::$baseNamespaces as $namespace) { |
211 | - $fqClass = $namespace . '\\' . $class; |
|
211 | + $fqClass = $namespace.'\\'.$class; |
|
212 | 212 | if (class_exists($fqClass)) { |
213 | 213 | return $fqClass; |
214 | 214 | } |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | try { |
494 | 494 | $this->byXpath(sprintf('//%s[contains(., "%s")]', $node, addslashes($text))); |
495 | 495 | } catch (\Exception $e) { |
496 | - $this->fail('The body did not contain the text: ' . $text); |
|
496 | + $this->fail('The body did not contain the text: '.$text); |
|
497 | 497 | } |
498 | 498 | } |
499 | 499 | |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | $this->webdriver->byXpath(sprintf('//body[contains(., "%s")]', $text)); |
504 | 504 | // If the element is not found then an exception will be thrown |
505 | 505 | } catch (\Exception $e) { |
506 | - $this->fail('The body did not contain the text: ' . $text); |
|
506 | + $this->fail('The body did not contain the text: '.$text); |
|
507 | 507 | } |
508 | 508 | |
509 | 509 | } |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | { |
513 | 513 | try { |
514 | 514 | $this->webdriver->byXpath(sprintf('//body[contains(., "%s")]', $text)); |
515 | - $this->fail('The page contains the words: ' . $text); |
|
515 | + $this->fail('The page contains the words: '.$text); |
|
516 | 516 | } catch (NoSuchElementException $e) { |
517 | 517 | // Exception thrown is a success |
518 | 518 | } |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | { |
553 | 553 | |
554 | 554 | if ($parentElementSelector !== null) { |
555 | - $xpathTemplate = $parentElementSelector . $xpathTemplate; |
|
555 | + $xpathTemplate = $parentElementSelector.$xpathTemplate; |
|
556 | 556 | } |
557 | 557 | if ($specificNodeType !== null) { |
558 | 558 | return $this->byXpath(sprintf($xpathTemplate, $specificNodeType, $this->getTranslator()->translatePlaceholders($text))); |
@@ -565,7 +565,7 @@ discard block |
||
565 | 565 | } |
566 | 566 | } |
567 | 567 | // This is here for consistency with the other by* methods |
568 | - WebDriverException::throwException(7, 'Could not find element with text: ' . $this->getTranslator()->translatePlaceholders($text), []); |
|
568 | + WebDriverException::throwException(7, 'Could not find element with text: '.$this->getTranslator()->translatePlaceholders($text), []); |
|
569 | 569 | } |
570 | 570 | |
571 | 571 | /** |