Passed
Push — develop ( 8c60cf...7e01a8 )
by Paul
03:38
created
src/Parser/NodeParser/MethodNodeParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function invoke($node, NodeInterface $parent): void
35 35
     {
36
-        if (! $node instanceof Node\Stmt\ClassMethod || ! $parent instanceof InterfaceModelInterface) {
36
+        if (!$node instanceof Node\Stmt\ClassMethod || !$parent instanceof InterfaceModelInterface) {
37 37
             throw new Exception('MethodNodeParser is made to parse a method node');
38 38
         }
39 39
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $function->setVisibility(MethodVisibilityHelper::getVisibility($node));
43 43
 
44 44
         // If no private / protected methods parsing is required
45
-        if (! $function->isPublic() && ! $this->config->hasPrivateParsing()) {
45
+        if (!$function->isPublic() && !$this->config->hasPrivateParsing()) {
46 46
             return;
47 47
         }
48 48
 
Please login to merge, or discard this patch.
src/Configuration/BaseConfig.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,18 +56,18 @@  discard block
 block discarded – undo
56 56
     protected function validate($config): void
57 57
     {
58 58
         // Check that $config is an array
59
-        if (! Validator::arrayType()->validate($config)) {
59
+        if (!Validator::arrayType()->validate($config)) {
60 60
             throw new InvalidConfigException('The config must be an array.');
61 61
         }
62 62
 
63 63
         // Check boolean parameters
64
-        if (! Validator::key('interface', Validator::boolType())->validate($config)) {
64
+        if (!Validator::key('interface', Validator::boolType())->validate($config)) {
65 65
             throw new InvalidConfigException('"interface" parameter must be set as a boolean.');
66 66
         }
67
-        if (! Validator::key('private', Validator::boolType())->validate($config)) {
67
+        if (!Validator::key('private', Validator::boolType())->validate($config)) {
68 68
             throw new InvalidConfigException('"private" parameter must be set as a boolean.');
69 69
         }
70
-        if (! Validator::key('auto', Validator::boolType())->validate($config)) {
70
+        if (!Validator::key('auto', Validator::boolType())->validate($config)) {
71 71
             throw new InvalidConfigException('"auto" parameter must be set as a boolean.');
72 72
         }
73 73
 
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
     private function validatePhpdoc($config): void
85 85
     {
86 86
         // Check that dirs key exists
87
-        if (! Validator::key('phpdoc', Validator::arrayType())->validate($config)) {
87
+        if (!Validator::key('phpdoc', Validator::arrayType())->validate($config)) {
88 88
             throw new InvalidConfigException('"phpdoc" parameter is not an array.');
89 89
         }
90 90
         // Validate each phpdoc
91
-        if (! Validator::arrayVal()
91
+        if (!Validator::arrayVal()
92 92
             ->each(Validator::stringType(), Validator::stringType())->validate($config['phpdoc'])
93 93
         ) {
94 94
             throw new InvalidConfigException('Some annotation in "phpdoc" parameter are not strings.');
Please login to merge, or discard this patch.