Completed
Push — master ( ffd41a...2b11e2 )
by Kevin
10:48 queued 07:21
created
lib/AbstractTestCase.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         }
197 197
     }
198 198
 
199
-    public static function resolveClass( $class, $prefix = null)
199
+    public static function resolveClass($class, $prefix = null)
200 200
     {
201 201
         $origClass = $class;
202 202
         if ($prefix !== null) {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         }
211 211
 
212 212
         foreach (self::$baseNamespaces as $namespace) {
213
-            $fqClass = $namespace . '\\' . $class;
213
+            $fqClass = $namespace.'\\'.$class;
214 214
             try {
215 215
                 if (class_exists($fqClass)) {
216 216
                     return $fqClass;
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
         try {
498 498
             $this->byXpath(sprintf('//%s[contains(., "%s")]', $node, addslashes($text)));
499 499
         } catch (\Exception $e) {
500
-            $this->fail('The body did not contain the text: ' . $text);
500
+            $this->fail('The body did not contain the text: '.$text);
501 501
         }
502 502
     }
503 503
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
             $this->webdriver->byXpath(sprintf('//body[contains(., "%s")]', $text));
508 508
             // If the element is not found then an exception will be thrown
509 509
         } catch (\Exception $e) {
510
-            $this->fail('The body did not contain the text: ' . $text);
510
+            $this->fail('The body did not contain the text: '.$text);
511 511
         }
512 512
 
513 513
     }
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
     {
517 517
         try {
518 518
             $this->webdriver->byXpath(sprintf('//body[contains(., "%s")]', $text));
519
-            $this->fail('The page contains the words: ' . $text);
519
+            $this->fail('The page contains the words: '.$text);
520 520
         } catch (NoSuchElementException $e) {
521 521
             // Exception thrown is a success
522 522
         }
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
     {
557 557
 
558 558
         if ($parentElementSelector !== null) {
559
-            $xpathTemplate = $parentElementSelector . $xpathTemplate;
559
+            $xpathTemplate = $parentElementSelector.$xpathTemplate;
560 560
         }
561 561
         if ($specificNodeType !== null) {
562 562
             return $this->byXpath(sprintf($xpathTemplate, $specificNodeType, $this->getTranslator()->translatePlaceholders($text)));
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
             }
570 570
         }
571 571
         // This is here for consistency with the other by* methods
572
-        WebDriverException::throwException(7, 'Could not find element with text: ' . $this->getTranslator()->translatePlaceholders($text), []);
572
+        WebDriverException::throwException(7, 'Could not find element with text: '.$this->getTranslator()->translatePlaceholders($text), []);
573 573
     }
574 574
 
575 575
     /**
Please login to merge, or discard this patch.