Completed
Push — master ( 7bfc6c...554965 )
by Joram van den
03:50
created
lib/Ajde/Model/ValidatorAbstract.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
         return $this->_model;
35 35
     }
36 36
 
37
+    /**
38
+     * @param Ajde_Model $model
39
+     */
37 40
     public function setModel($model)
38 41
     {
39 42
         $this->_model = $model;
@@ -84,6 +87,9 @@  discard block
 block discarded – undo
84 87
         return $this->_value;
85 88
     }
86 89
 
90
+    /**
91
+     * @param string|null $value
92
+     */
87 93
     public function validate($fieldOptions, $value)
88 94
     {
89 95
         $this->_value = $value;
Please login to merge, or discard this patch.
lib/Ajde/Publisher.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
         $this->_url = $url;
28 28
     }
29 29
 
30
+    /**
31
+     * @return string
32
+     */
30 33
     public function getTitle()
31 34
     {
32 35
         return $this->_title;
@@ -42,6 +45,9 @@  discard block
 block discarded – undo
42 45
         return $this->_message;
43 46
     }
44 47
 
48
+    /**
49
+     * @return string
50
+     */
45 51
     public function getUrl()
46 52
     {
47 53
         return $this->_url;
Please login to merge, or discard this patch.
lib/Ajde/Resource/Image.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
         $this->_type = $this->extension();
28 28
     }
29 29
 
30
+    /**
31
+     * @param integer $width
32
+     */
30 33
     public function getUrl($width = null, $height = null, $crop = false)
31 34
     {
32 35
         $this->setWidth($width);
@@ -169,6 +172,9 @@  discard block
 block discarded – undo
169 172
         return $this->getGeneratedFilename();
170 173
     }
171 174
 
175
+    /**
176
+     * @param boolean $crop
177
+     */
172 178
     public function getGeneratedFilename($width = null, $height = null, $crop = null)
173 179
     {
174 180
         if (
@@ -311,6 +317,9 @@  discard block
 block discarded – undo
311 317
         return $this->resize($height, $width, true);
312 318
     }
313 319
 
320
+    /**
321
+     * @param string $target
322
+     */
314 323
     public function save($target)
315 324
     {
316 325
         switch ($this->_type) {
@@ -374,6 +383,14 @@  discard block
 block discarded – undo
374 383
         return $path_info['filename'];
375 384
     }
376 385
 
386
+    /**
387
+     * @param resource $dst_image
388
+     * @param resource|null $src_image
389
+     * @param integer $dst_x
390
+     * @param integer $dst_y
391
+     * @param integer $src_x
392
+     * @param integer $src_y
393
+     */
377 394
     protected function fastimagecopyresampled(
378 395
         &$dst_image,
379 396
         $src_image,
Please login to merge, or discard this patch.
lib/Ajde/Resource/Local/Compressor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
         return $this->get('base');
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $base
56
+     */
54 57
     public function setBase($base)
55 58
     {
56 59
         $this->set('base', $base);
Please login to merge, or discard this patch.
lib/Ajde/Resource/Local/Compressor/lib/Closure.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -280,6 +280,9 @@  discard block
 block discarded – undo
280 280
 
281 281
     // ----- Privates -----
282 282
 
283
+    /**
284
+     * @param string $cache_file
285
+     */
283 286
     function _isRecompileNeeded($cache_file)
284 287
     {
285 288
         // If there is no cache file, we obviously need to recompile.
@@ -486,6 +489,9 @@  discard block
 block discarded – undo
486 489
         return $data;
487 490
     }
488 491
 
492
+    /**
493
+     * @param string $data
494
+     */
489 495
     function _unchunk($data)
490 496
     {
491 497
         $fp = 0;
@@ -502,6 +508,9 @@  discard block
 block discarded – undo
502 508
         return $outData;
503 509
     }
504 510
 
511
+    /**
512
+     * @param string $data
513
+     */
505 514
     function _parseXml($data)
506 515
     {
507 516
         $xml = new SimpleXMLElement($data);
@@ -509,6 +518,9 @@  discard block
 block discarded – undo
509 518
         return $this->_parseXmlHelper($xml);
510 519
     }
511 520
 
521
+    /**
522
+     * @param SimpleXMLElement $xml
523
+     */
512 524
     function _parseXmlHelper($xml)
513 525
     {
514 526
         $tree = null;
Please login to merge, or discard this patch.
lib/Ajde/Resource/Local/Compressor/lib/Packer.php 1 patch
Doc Comments   +37 added lines patch added patch discarded remove patch
@@ -118,6 +118,10 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     // apply all parsing routines
121
+
122
+    /**
123
+     * @param string $script
124
+     */
121 125
     private function _pack($script)
122 126
     {
123 127
         for ($i = 0; isset($this->_parsers[$i]); $i++) {
@@ -130,6 +134,9 @@  discard block
 block discarded – undo
130 134
     // keep a list of parsing functions, they'll be executed all at once
131 135
     private $_parsers = [];
132 136
 
137
+    /**
138
+     * @param string $parser
139
+     */
133 140
     private function _addParser($parser)
134 141
     {
135 142
         $this->_parsers[] = $parser;
@@ -225,6 +232,10 @@  discard block
 block discarded – undo
225 232
         }
226 233
     }
227 234
 
235
+    /**
236
+     * @param string $regexp
237
+     * @param string $encode
238
+     */
228 239
     private function _analyze($script, $regexp, $encode)
229 240
     {
230 241
         // analyse
@@ -407,6 +418,10 @@  discard block
 block discarded – undo
407 418
     }
408 419
 
409 420
     // mmm.. ..which one do i need ??
421
+
422
+    /**
423
+     * @param integer $ascii
424
+     */
410 425
     private function _getEncoder($ascii)
411 426
     {
412 427
         return $ascii > 10 ? $ascii > 36 ? $ascii > 62 ?
@@ -456,6 +471,9 @@  discard block
 block discarded – undo
456 471
         return $res . chr(($charCode % $this->_encoding) + 161);
457 472
     }
458 473
 
474
+    /**
475
+     * @param string $string
476
+     */
459 477
     private function _safeRegExp($string)
460 478
     {
461 479
         return '/' . preg_replace('/\$/', '\\\$', $string) . '/';
@@ -487,6 +505,9 @@  discard block
 block discarded – undo
487 505
         return '\x' . ((string)dechex(ord($match)));
488 506
     }
489 507
 
508
+    /**
509
+     * @param string $aName
510
+     */
490 511
     private function _getJSFunction($aName)
491 512
     {
492 513
         if (defined('self::JSFUNCTION' . $aName)) {
@@ -611,6 +632,9 @@  discard block
 block discarded – undo
611 632
     private $QUOTE = '/\'/';
612 633
     private $DELETED = '/\\x01[^\\x01]*\\x01/';//g
613 634
 
635
+    /**
636
+     * @param string $expression
637
+     */
614 638
     public function add($expression, $replacement = '')
615 639
     {
616 640
         // count the number of sub-expressions
@@ -761,6 +785,10 @@  discard block
 block discarded – undo
761 785
     private $buffer;
762 786
 
763 787
     // encode escaped characters
788
+
789
+    /**
790
+     * @param string $escapeChar
791
+     */
764 792
     private function _escape($string, $escapeChar)
765 793
     {
766 794
         if ($escapeChar) {
@@ -784,6 +812,10 @@  discard block
 block discarded – undo
784 812
     }
785 813
 
786 814
     // decode escaped characters
815
+
816
+    /**
817
+     * @param string $escapeChar
818
+     */
787 819
     private function _unescape($string, $escapeChar)
788 820
     {
789 821
         if ($escapeChar) {
@@ -815,6 +847,11 @@  discard block
 block discarded – undo
815 847
         return $this->buffer['escapeChar'] . $temp;
816 848
     }
817 849
 
850
+    /**
851
+     * @param string $string
852
+     *
853
+     * @return string
854
+     */
818 855
     private function _internalEscape($string)
819 856
     {
820 857
         return preg_replace($this->ESCAPE, '', $string);
Please login to merge, or discard this patch.
lib/Ajde/Session.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -127,6 +127,9 @@
 block discarded – undo
127 127
         Ajde_Cache::getInstance()->updateHash($this->hash());
128 128
     }
129 129
 
130
+    /**
131
+     * @param string $name
132
+     */
130 133
     public function setModel($name, $object)
131 134
     {
132 135
         $this->set($name, serialize($object));
Please login to merge, or discard this patch.
lib/Ajde/Shop/Cart.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     /**
19 19
      *
20
-     * @return UserModel
20
+     * @return boolean
21 21
      */
22 22
     public function loadCurrent()
23 23
     {
Please login to merge, or discard this patch.
lib/Ajde/Shop/Cart/Item.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,10 @@  discard block
 block discarded – undo
45 45
         return $cart;
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $entity
50
+     * @param integer $id
51
+     */
48 52
     public function load($entity, $id)
49 53
     {
50 54
         return $this->loadByFields([
@@ -59,11 +63,17 @@  discard block
 block discarded – undo
59 63
         return (int)parent::getQty();
60 64
     }
61 65
 
66
+    /**
67
+     * @param integer $qty
68
+     */
62 69
     public function addQty($qty)
63 70
     {
64 71
         $this->setQty($this->getQty() + (int)$qty);
65 72
     }
66 73
 
74
+    /**
75
+     * @param string $entityName
76
+     */
67 77
     public function setEntityById($entityName, $id)
68 78
     {
69 79
         try {
@@ -107,7 +117,7 @@  discard block
 block discarded – undo
107 117
 
108 118
     /**
109 119
      *
110
-     * @param string $entity
120
+     * @param string $entityName
111 121
      * @return Ajde_Model
112 122
      */
113 123
     protected function _getEntityModel($entityName)
Please login to merge, or discard this patch.