Skip to content

Commit 7502353

Browse files
committed
Minor fix
1 parent c8942f0 commit 7502353

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MagicCallPatch implements ClassPatchInterface
2929

3030
public function __construct(MethodTagRetrieverInterface $tagRetriever = null)
3131
{
32-
$this->tagRetriever = (null === $tagRetriever) ? new ClassAndInterfaceTagRetriever() : $tagRetriever;
32+
$this->tagRetriever = null === $tagRetriever ? new ClassAndInterfaceTagRetriever() : $tagRetriever;
3333
}
3434

3535
/**

src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
*/
2020
final class ClassAndInterfaceTagRetriever implements MethodTagRetrieverInterface
2121
{
22-
/**
23-
* @var MethodTagRetrieverInterface
24-
*/
2522
private $classRetriever;
2623

2724
public function __construct(MethodTagRetrieverInterface $classRetriever = null)
@@ -32,7 +29,7 @@ public function __construct(MethodTagRetrieverInterface $classRetriever = null)
3229
return;
3330
}
3431

35-
$this->classRetriever = (class_exists('phpDocumentor\Reflection\DocBlockFactory') && class_exists('phpDocumentor\Reflection\Types\ContextFactory'))
32+
$this->classRetriever = class_exists('phpDocumentor\Reflection\DocBlockFactory') && class_exists('phpDocumentor\Reflection\Types\ContextFactory')
3633
? new ClassTagRetriever()
3734
: new LegacyClassTagRetriever()
3835
;

0 commit comments

Comments
 (0)