Browse Source

hide injected params

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
9cb3c8455e
2 changed files with 8 additions and 8 deletions
  1. 5
    7
      src/Doc/Business/DocBlock.php
  2. 3
    1
      src/Doc/Business/LuDocBusiness.php

+ 5
- 7
src/Doc/Business/DocBlock.php View File

@@ -93,13 +93,11 @@ class DocBlock {
93 93
                     $value = $matches[3];
94 94
                     $param_name = substr($param_name, 1);
95 95
 
96
-                    if (strpos($param_name, "_") !== 0) {
97
-                        $this->all_params[$param_name] = [
98
-                            "name" => $param_name,
99
-                            "type" => $param_type,
100
-                            "description" => $value
101
-                        ];
102
-                    }
96
+                    $this->all_params[$param_name] = [
97
+                        "name" => $param_name,
98
+                        "type" => $param_type,
99
+                        "description" => $value
100
+                    ];
103 101
                 }
104 102
             }
105 103
         }

+ 3
- 1
src/Doc/Business/LuDocBusiness.php View File

@@ -178,7 +178,9 @@ class LuDocBusiness
178 178
                 $p["annotations"] = "Optional. Default value: " . $param->getDefaultValue();
179 179
             }
180 180
 
181
-            $parameters[] = $p;
181
+            if (strpos($p["name"], "_") != 0) {
182
+                $parameters[] = $p;
183
+            }
182 184
         }
183 185
 
184 186
         self::printTwig("method.html", array(

Loading…
Cancel
Save