Completed
Push — master ( 631929...5231d5 )
by Alexandr
02:39
created
src/Config/Schema/SchemaConfig.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
      */
29 29
     private $directiveList;
30 30
 
31
+    /**
32
+     * @param \Youshido\GraphQL\Schema\AbstractSchema $contextObject
33
+     */
31 34
     public function __construct(array $configData, $contextObject = null, $finalClass = false)
32 35
     {
33 36
         $this->typesList = new SchemaTypesList();
@@ -88,7 +91,7 @@  discard block
 block discarded – undo
88 91
     }
89 92
 
90 93
     /**
91
-     * @param $query AbstractObjectType
94
+     * @param ObjectType $query AbstractObjectType
92 95
      *
93 96
      * @return SchemaConfig
94 97
      */
Please login to merge, or discard this patch.
src/Parser/Ast/Directive.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@  discard block
 block discarded – undo
21 21
 
22 22
     /**
23 23
      * @param string         $name
24
-     * @param ValueInterface $value
25 24
      * @param Location       $location
26 25
      */
27 26
     public function __construct($name, array $arguments, Location $location)
@@ -33,7 +32,7 @@  discard block
 block discarded – undo
33 32
     }
34 33
 
35 34
     /**
36
-     * @return mixed
35
+     * @return string
37 36
      */
38 37
     public function getName()
39 38
     {
Please login to merge, or discard this patch.
src/Type/SchemaDirectivesList.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@  discard block
 block discarded – undo
41 41
     public function addDirective(DirectiveInterface $directive)
42 42
     {
43 43
         $directiveName = $this->getDirectiveName($directive);
44
-        if ($this->isDirectiveNameRegistered($directiveName)) return $this;
44
+        if ($this->isDirectiveNameRegistered($directiveName)) {
45
+            return $this;
46
+        }
45 47
 
46 48
         $this->directivesList[$directiveName] = $directive;
47 49
 
@@ -50,7 +52,9 @@  discard block
 block discarded – undo
50 52
 
51 53
     private function getDirectiveName($directive)
52 54
     {
53
-        if (is_string($directive)) return $directive;
55
+        if (is_string($directive)) {
56
+            return $directive;
57
+        }
54 58
         if (is_object($directive) && $directive instanceof DirectiveInterface) {
55 59
             return $directive->getName();
56 60
         }
Please login to merge, or discard this patch.
src/Config/Traits/DirectivesAwareConfigTrait.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@
 block discarded – undo
18 18
 
19 19
     public function buildDirectives()
20 20
     {
21
-        if ($this->_isDirectivesBuilt) return true;
21
+        if ($this->_isDirectivesBuilt) {
22
+            return true;
23
+        }
22 24
 
23 25
         if (!empty($this->data['directives'])) {
24 26
             $this->addDirectives($this->data['directives']);
Please login to merge, or discard this patch.