Completed
Push — master ( e25cba...17602b )
by Chris
01:54
created
php/hamle/Field.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -110,6 +110,9 @@  discard block
 block discarded – undo
110 110
     }
111 111
   }
112 112
 
113
+  /**
114
+   * @return string
115
+   */
113 116
   function getValue() {
114 117
     if (!is_null($this->setValue)) return $this->setValue;
115 118
     if (isset($_REQUEST[$this->form . "_" . $this->name])) {
@@ -173,6 +176,9 @@  discard block
 block discarded – undo
173 176
     }
174 177
   }
175 178
 
179
+  /**
180
+   * @param boolean $submit
181
+   */
176 182
   function doProcess($submit) {
177 183
     if ($submit) {
178 184
       $value = $this->getValue();
Please login to merge, or discard this patch.
php/hamle/Scope.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
   /** @var Model[] Assoc array of Models by Scope Name */
18 18
   static $namedScopes = array();
19 19
 
20
+  /**
21
+   * @param Model $model
22
+   */
20 23
   static function add($model, $name = null) {
21 24
     if (!$model instanceOf Model)
22 25
       throw new Unsupported("Unsupported Model (".get_class($model)."), Needs to implement hamleModel Interface");
Please login to merge, or discard this patch.
php/hamle/Tag/Comment.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
 class Comment extends Tag {
31 31
   protected $commentstyle;
32 32
 
33
+  /**
34
+   * @param string $type
35
+   */
33 36
   function __construct($type) {
34 37
     if ($type == "/")
35 38
       $this->commentstyle = "HTML";
Please login to merge, or discard this patch.
php/hamle/Tag/DynHtml.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -33,6 +33,10 @@
 block discarded – undo
33 33
   protected $varname;
34 34
   protected $baseType;
35 35
 
36
+  /**
37
+   * @param string $tag
38
+   * @param string $id
39
+   */
36 40
   function __construct($tag, $class, $param, $id, $ref) {
37 41
     parent::__construct($tag, $class, $param, $id);
38 42
     $this->source[] = $ref;
Please login to merge, or discard this patch.
php/hamle/Tag/Filter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
    */
39 39
   protected $filter;
40 40
 
41
+  /**
42
+   * @param string $tag
43
+   */
41 44
   function __construct($tag) {
42 45
     parent::__construct();
43 46
     $this->type = ucfirst(strtolower($tag));
Please login to merge, or discard this patch.
php/hamle/Tag/Form.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
    */
39 39
   protected $form;
40 40
 
41
+  /**
42
+   * @param string $param
43
+   */
41 44
   function __construct($param) {
42 45
     parent::__construct();
43 46
     $param = explode(' ', $param);
Please login to merge, or discard this patch.
php/hamle/Tag/Snippet.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
 class Snippet extends Hamle\Tag {
31 31
   protected $path;
32 32
 
33
+  /**
34
+   * @param string $params
35
+   */
33 36
   function __construct($params) {
34 37
     parent::__construct();
35 38
     if (!preg_match('/^(append|content|prepend|replace)(?: (.*))?$/', $params, $m))
Please login to merge, or discard this patch.
php/hamle/Tag/Text.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -33,11 +33,17 @@
 block discarded – undo
33 33
 class Text extends Tag {
34 34
   protected $escape = true;
35 35
 
36
+  /**
37
+   * @param string $tag
38
+   */
36 39
   function __construct($tag) {
37 40
     parent::__construct();
38 41
     $this->escape = ($tag == "_");
39 42
   }
40 43
 
44
+  /**
45
+   * @param string $s
46
+   */
41 47
   function addContent($s, $strtype = H\Text::TOKEN_HTML) {
42 48
     if (trim($s)) {
43 49
       if ($this->escape) {
Please login to merge, or discard this patch.
php/hamle/Text/Comparison.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@
 block discarded – undo
33 33
   protected $param1, $param2, $operator;
34 34
   const REGEX_COMP_OPER = '(equals|notequal|notequals|less|greater|has|starts|contains|ends)';
35 35
 
36
+  /**
37
+   * @param string $s
38
+   */
36 39
   function __construct($s, $mode = self::TOKEN_CONTROL) {
37 40
     $m = array();
38 41
     if(preg_match('/^(.*) '.self::REGEX_COMP_OPER.' (.*)$/', $s, $m)) {
Please login to merge, or discard this patch.