Passed
Push — master ( d7aea6...81059b )
by Dmitry
02:40
created
src/Actor/I.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         if (method_exists($actor, $name)) {
27 27
             return $actor->{$name}(...$arguments);
28 28
         }
29
-        throw new \BadMethodCallException("Method {$name} does not exist at " . self::class);
29
+        throw new \BadMethodCallException("Method {$name} does not exist at ".self::class);
30 30
     }
31 31
 
32 32
     private static function getActor(): SpecActor {
Please login to merge, or discard this patch.
src/Expectation/Internal/Step.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function toString() {
36 36
         $stepResult = $this->isChecked() ? "[\u{2713}] " : '[-] ';
37 37
 
38
-        return $stepResult . $this->name;
38
+        return $stepResult.$this->name;
39 39
     }
40 40
 
41 41
     protected function isChecked() {
Please login to merge, or discard this patch.
src/Expectation/Internal/ObjectExceptionMatcher.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,21 +19,21 @@  discard block
 block discarded – undo
19 19
 
20 20
     public function withMessage($message) {
21 21
         $this->startStep('has message "' . $message . '"')
22
-             ->expectExceptionMessage($message);
22
+                ->expectExceptionMessage($message);
23 23
 
24 24
         return $this;
25 25
     }
26 26
 
27 27
     public function withMessageMatchesPattern($messagePattern) {
28 28
         $this->startStep('has message matching pattern "' . $messagePattern . '"')
29
-             ->expectExceptionMessageRegExp($messagePattern);
29
+                ->expectExceptionMessageRegExp($messagePattern);
30 30
 
31 31
         return $this;
32 32
     }
33 33
 
34 34
     public function withCode($code) {
35 35
         $this->startStep('has code "' . $code . '"')
36
-             ->expectExceptionCode($code);
36
+                ->expectExceptionCode($code);
37 37
 
38 38
         return $this;
39 39
     }
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
         $exceptionClassOrObject = $this->exceptionClassOrObject;
54 54
         if (is_string($exceptionClassOrObject)) {
55 55
             $this->startStep('throws exception "' . $exceptionClassOrObject . '"')
56
-                 ->expectException($this->exceptionClassOrObject);
56
+                    ->expectException($this->exceptionClassOrObject);
57 57
         } else {
58 58
             $this->startStep('throws exception "' . get_class($exceptionClassOrObject) . '"')
59
-                 ->expectExceptionObject($this->exceptionClassOrObject);
59
+                    ->expectExceptionObject($this->exceptionClassOrObject);
60 60
         }
61 61
 
62 62
         call_user_func_array($callback, [$this->getActualValue()]);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
     public $exceptionClassOrObject;
19 19
 
20 20
     public function withMessage($message) {
21
-        $this->startStep('has message "' . $message . '"')
21
+        $this->startStep('has message "'.$message.'"')
22 22
              ->expectExceptionMessage($message);
23 23
 
24 24
         return $this;
25 25
     }
26 26
 
27 27
     public function withMessageMatchesPattern($messagePattern) {
28
-        $this->startStep('has message matching pattern "' . $messagePattern . '"')
28
+        $this->startStep('has message matching pattern "'.$messagePattern.'"')
29 29
              ->expectExceptionMessageRegExp($messagePattern);
30 30
 
31 31
         return $this;
32 32
     }
33 33
 
34 34
     public function withCode($code) {
35
-        $this->startStep('has code "' . $code . '"')
35
+        $this->startStep('has code "'.$code.'"')
36 36
              ->expectExceptionCode($code);
37 37
 
38 38
         return $this;
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
     public function when(callable $callback) {
53 53
         $exceptionClassOrObject = $this->exceptionClassOrObject;
54 54
         if (is_string($exceptionClassOrObject)) {
55
-            $this->startStep('throws exception "' . $exceptionClassOrObject . '"')
55
+            $this->startStep('throws exception "'.$exceptionClassOrObject.'"')
56 56
                  ->expectException($this->exceptionClassOrObject);
57 57
         } else {
58
-            $this->startStep('throws exception "' . get_class($exceptionClassOrObject) . '"')
58
+            $this->startStep('throws exception "'.get_class($exceptionClassOrObject).'"')
59 59
                  ->expectExceptionObject($this->exceptionClassOrObject);
60 60
         }
61 61
 
Please login to merge, or discard this patch.