Completed
Push — master ( 96df1a...267f86 )
by Naveen
09:52
created
vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         if (null !== $class) {
52 52
             if (true === $class->isInterface()) {
53 53
                 throw new InvalidArgumentException(sprintf(
54
-                    "Could not reflect %s as a class, because it\n".
54
+                    "Could not reflect %s as a class, because it\n" .
55 55
                     "is interface - use the second argument instead.",
56 56
                     $class->getName()
57 57
                 ));
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
         foreach ($interfaces as $interface) {
64 64
             if (!$interface instanceof ReflectionClass) {
65 65
                 throw new InvalidArgumentException(sprintf(
66
-                    "[ReflectionClass \$interface1 [, ReflectionClass \$interface2]] array expected as\n".
66
+                    "[ReflectionClass \$interface1 [, ReflectionClass \$interface2]] array expected as\n" .
67 67
                     "a second argument to `ClassMirror::reflect(...)`, but got %s.",
68
-                    is_object($interface) ? get_class($interface).' class' : gettype($interface)
68
+                    is_object($interface) ? get_class($interface) . ' class' : gettype($interface)
69 69
                 ));
70 70
             }
71 71
             if (false === $interface->isInterface()) {
72 72
                 throw new InvalidArgumentException(sprintf(
73
-                    "Could not reflect %s as an interface, because it\n".
73
+                    "Could not reflect %s as an interface, because it\n" .
74 74
                     "is class - use the first argument instead.",
75 75
                     $interface->getName()
76 76
                 ));
Please login to merge, or discard this patch.
vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * @var MethodNode[]
29 29
      */
30
-    private $methods     = array();
30
+    private $methods = array();
31 31
 
32 32
     public function getParentClass()
33 33
     {
Please login to merge, or discard this patch.
vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
     {
171 171
         $this->code = sprintf(
172 172
             'return parent::%s(%s);', $this->getName(), implode(', ',
173
-                array_map(function (ArgumentNode $arg) { return '$'.$arg->getName(); }, $this->arguments)
173
+                array_map(function(ArgumentNode $arg) { return '$' . $arg->getName(); }, $this->arguments)
174 174
             )
175 175
         );
176 176
     }
Please login to merge, or discard this patch.
phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
     public function append(PredictionException $exception)
22 22
     {
23 23
         $message = $exception->getMessage();
24
-        $message = '  '.strtr($message, array("\n" => "\n  "))."\n";
24
+        $message = '  ' . strtr($message, array("\n" => "\n  ")) . "\n";
25 25
 
26
-        $this->message      = rtrim($this->message.$message);
26
+        $this->message      = rtrim($this->message . $message);
27 27
         $this->exceptions[] = $exception;
28 28
     }
29 29
 
Please login to merge, or discard this patch.
vendor/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
         if (count($methodCalls)) {
62 62
             throw new NoCallsException(sprintf(
63
-                "No calls have been made that match:\n".
64
-                "  %s->%s(%s)\n".
65
-                "but expected at least one.\n".
63
+                "No calls have been made that match:\n" .
64
+                "  %s->%s(%s)\n" .
65
+                "but expected at least one.\n" .
66 66
                 "Recorded `%s(...)` calls:\n%s",
67 67
 
68 68
                 get_class($object->reveal()),
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
         }
75 75
 
76 76
         throw new NoCallsException(sprintf(
77
-            "No calls have been made that match:\n".
78
-            "  %s->%s(%s)\n".
77
+            "No calls have been made that match:\n" .
78
+            "  %s->%s(%s)\n" .
79 79
             "but expected at least one.",
80 80
 
81 81
             get_class($object->reveal()),
Please login to merge, or discard this patch.
vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 
65 65
         if (count($calls)) {
66 66
             $message = sprintf(
67
-                "Expected exactly %d calls that match:\n".
68
-                "  %s->%s(%s)\n".
67
+                "Expected exactly %d calls that match:\n" .
68
+                "  %s->%s(%s)\n" .
69 69
                 "but %d were made:\n%s",
70 70
 
71 71
                 $this->times,
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
             );
78 78
         } elseif (count($methodCalls)) {
79 79
             $message = sprintf(
80
-                "Expected exactly %d calls that match:\n".
81
-                "  %s->%s(%s)\n".
82
-                "but none were made.\n".
80
+                "Expected exactly %d calls that match:\n" .
81
+                "  %s->%s(%s)\n" .
82
+                "but none were made.\n" .
83 83
                 "Recorded `%s(...)` calls:\n%s",
84 84
 
85 85
                 $this->times,
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
             );
92 92
         } else {
93 93
             $message = sprintf(
94
-                "Expected exactly %d calls that match:\n".
95
-                "  %s->%s(%s)\n".
94
+                "Expected exactly %d calls that match:\n" .
95
+                "  %s->%s(%s)\n" .
96 96
                 "but none were made.",
97 97
 
98 98
                 $this->times,
Please login to merge, or discard this patch.
vendor/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
         $verb = count($calls) === 1 ? 'was' : 'were';
55 55
 
56 56
         throw new UnexpectedCallsException(sprintf(
57
-            "No calls expected that match:\n".
58
-            "  %s->%s(%s)\n".
57
+            "No calls expected that match:\n" .
58
+            "  %s->%s(%s)\n" .
59 59
             "but %d %s made:\n%s",
60 60
             get_class($object->reveal()),
61 61
             $method->getMethodName(),
Please login to merge, or discard this patch.
vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         if (null === $double || !$double instanceof ProphecySubjectInterface) {
117 117
             throw new ObjectProphecyException(
118
-                "Generated double must implement ProphecySubjectInterface, but it does not.\n".
118
+                "Generated double must implement ProphecySubjectInterface, but it does not.\n" .
119 119
                 'It seems you have wrongly configured doubler without required ClassPatch.',
120 120
                 $this
121 121
             );
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $argumentsWildcard = $methodProphecy->getArgumentsWildcard();
140 140
         if (null === $argumentsWildcard) {
141 141
             throw new MethodProphecyException(sprintf(
142
-                "Can not add prophecy for a method `%s::%s()`\n".
142
+                "Can not add prophecy for a method `%s::%s()`\n" .
143 143
                 "as you did not specify arguments wildcard for it.",
144 144
                 get_class($this->reveal()),
145 145
                 $methodProphecy->getMethodName()
Please login to merge, or discard this patch.
vendor/phpspec/prophecy/src/Prophecy/Util/ExportUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
             );
177 177
         }
178 178
 
179
-        if (is_double($value) && (double)(integer) $value === $value) {
179
+        if (is_double($value) && (double) (integer) $value === $value) {
180 180
             return $value . '.0';
181 181
         }
182 182
 
Please login to merge, or discard this patch.