Skip to content

Commit 9820ff4

Browse files
committed
PHPCS fixes
1 parent 4aa955c commit 9820ff4

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

classes/FunctionProphecy.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717
*/
1818
final class FunctionProphecy implements ProphecyInterface
1919
{
20-
20+
2121
/**
2222
* @var Prophet The prophet.
2323
*/
2424
private $prophet;
25-
25+
2626
/**
2727
* @var string The namespace.
2828
*/
2929
private $namespace;
30-
30+
3131
/**
3232
* @var Revelation[] The delegated prophecies.
3333
*/
3434
private $revelations = [];
35-
35+
3636
/**
3737
* Sets the prophet.
3838
*
@@ -44,7 +44,7 @@ public function __construct($namespace, Prophet $prophet)
4444
$this->prophet = $prophet;
4545
$this->namespace = $namespace;
4646
}
47-
47+
4848
/**
4949
* Creates a new function prophecy using the specified function name
5050
* and arguments.
@@ -62,7 +62,7 @@ public function __call($functionName, array $arguments)
6262
$this->revelations[] = new Revelation($this->namespace, $functionName, $prophecy);
6363
return $prophecy->__call(MockDelegateFunctionBuilder::METHOD, $arguments);
6464
}
65-
65+
6666
/**
6767
* Reveals the function prophecies.
6868
*

classes/PHPProphet.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class PHPProphet
3939
* @var Prophet The prophet.
4040
*/
4141
private $prophet;
42-
42+
4343
/**
4444
* Builds the prophet.
4545
*
@@ -50,12 +50,12 @@ public function __construct(Prophet $prophet = null)
5050
if (is_null($prophet)) {
5151
$prophet = new Prophet();
5252
}
53-
53+
5454
$revealer = new ReferencePreservingRevealer(self::getProperty($prophet, "revealer"));
5555
$util = self::getProperty($prophet, "util");
5656
$this->prophet = new Prophet($prophet->getDoubler(), $revealer, $util);
5757
}
58-
58+
5959
/**
6060
* Creates a new function prophecy for a given namespace.
6161
*
@@ -67,7 +67,7 @@ public function prophesize($namespace)
6767
{
6868
return new FunctionProphecy($namespace, $this->prophet);
6969
}
70-
70+
7171
/**
7272
* Checks all predictions defined by prophecies of this Prophet.
7373
*
@@ -81,7 +81,7 @@ public function checkPredictions()
8181
Mock::disableAll();
8282
$this->prophet->checkPredictions();
8383
}
84-
84+
8585
/**
8686
* Defines the function prophecy in the given namespace.
8787
*
@@ -110,7 +110,7 @@ public static function define($namespace, $name)
110110
->build()
111111
->define();
112112
}
113-
113+
114114
/**
115115
* Returns a private property of a prophet.
116116
*

classes/ReferencePreservingRevealer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616
final class ReferencePreservingRevealer implements RevealerInterface
1717
{
18-
18+
1919
/**
2020
* @var RevealerInterface The subject.
2121
*/
2222
private $revealer;
23-
23+
2424
/**
2525
* Sets the subject.
2626
*

classes/Revelation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class Revelation implements ProphecyInterface
3131
* @var ProphecyInterface The prophecy.
3232
*/
3333
private $prophecy;
34-
34+
3535
/**
3636
* Builds the revelation.
3737
*
@@ -45,7 +45,7 @@ public function __construct($namespace, $functionName, ProphecyInterface $prophe
4545
$this->functionName = $functionName;
4646
$this->prophecy = $prophecy;
4747
}
48-
48+
4949
/**
5050
* Reveals the function prophecy.
5151
*

tests/PHPProphetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
final class PHPProphetTest extends AbstractMockTest
1717
{
18-
18+
1919
/**
2020
* @var PHPProphet The SUT.
2121
*/

tests/RegressionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace phpmock\prophecy;
44

55
use PHPUnit\Framework\TestCase;
6-
use \Prophecy\Prophet;
6+
use Prophecy\Prophet;
77

88
/**
99
* Regression tests for Prophecy.
@@ -27,7 +27,7 @@ public function expectingWithoutOptionalParameter()
2727
$prophecy = $prophet->prophesize(OptionalParameterHolder::class);
2828
$prophecy->call("arg1")->willReturn("mocked");
2929
$mock = $prophecy->reveal();
30-
30+
3131
$this->assertEquals("mocked", $mock->call("arg1"));
3232
$prophet->checkPredictions();
3333
}

0 commit comments

Comments
 (0)