Completed
Push — master ( d186d6...185d7b )
by Joram van den
05:08 queued 01:41
created
lib/Ajde/Core/Route.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@
 block discarded – undo
79 79
         return $this->_originalRoute;
80 80
     }
81 81
 
82
+    /**
83
+     * @param string $route
84
+     */
82 85
     public function setRoute($route)
83 86
     {
84 87
         $this->_route = $route;
Please login to merge, or discard this patch.
lib/Ajde/Fs/Directory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
         }
15 15
     }
16 16
 
17
+    /**
18
+     * @param string $dir
19
+     */
17 20
     public static function truncate($dir)
18 21
     {
19 22
         self::delete($dir, true);
Please login to merge, or discard this patch.
lib/Ajde/Http/Curl.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      *
117 117
      * @param string $url
118 118
      * @param bool|string $toFile
119
-     * @param bool|array $header
119
+     * @param string[] $header
120 120
      * @return string
121 121
      * @throws Exception
122 122
      */
@@ -222,6 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
     /**
224 224
      * @source http://stackoverflow.com/a/5498992/938297
225
+     * @param resource $ch
225 226
      */
226 227
     private static function _curl_exec_follow(&$ch, $redirects = 20, $curlopt_header = false)
227 228
     {
Please login to merge, or discard this patch.
lib/Ajde/Model.php 1 patch
Doc Comments   +16 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     }
177 177
 
178 178
     /**
179
-     * @return Ajde_Db_Adapter_Abstract
179
+     * @return Ajde_Db_PDO
180 180
      */
181 181
     public function getConnection()
182 182
     {
@@ -224,6 +224,9 @@  discard block
 block discarded – undo
224 224
         return $this->loadByFields([$pk => $value]);
225 225
     }
226 226
 
227
+    /**
228
+     * @param string $field
229
+     */
227 230
     public function loadByField($field, $value)
228 231
     {
229 232
         return $this->loadByFields([$field => $value]);
@@ -429,7 +432,7 @@  discard block
 block discarded – undo
429 432
 
430 433
     /**
431 434
      *
432
-     * @param array $fields
435
+     * @param string[] $fields
433 436
      */
434 437
     public function setEncryptedFields($fields)
435 438
     {
@@ -734,6 +737,9 @@  discard block
 block discarded – undo
734 737
         return new $parentModelName();
735 738
     }
736 739
 
740
+    /**
741
+     * @param string $column
742
+     */
737 743
     public function getParentTable($column)
738 744
     {
739 745
         $fk = $this->getTable()->getFK($column);
@@ -864,6 +870,9 @@  discard block
 block discarded – undo
864 870
 
865 871
     // TREE SORT FUNCTIONS
866 872
 
873
+    /**
874
+     * @param string $collectionName
875
+     */
867 876
     public function sortTree($collectionName, $parentField = 'parent', $levelField = 'level', $sortField = 'sort')
868 877
     {
869 878
         $collection = new $collectionName();
@@ -874,6 +883,11 @@  discard block
 block discarded – undo
874 883
         $this->_recurseChildren($collection, $collectionName, $parentField, $levelField, $sortField);
875 884
     }
876 885
 
886
+    /**
887
+     * @param string $parentField
888
+     * @param string $levelField
889
+     * @param string $sortField
890
+     */
877 891
     private function _recurseChildren(
878 892
         $collection,
879 893
         $collectionName,
Please login to merge, or discard this patch.
lib/Ajde/Template.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@  discard block
 block discarded – undo
5 5
     protected $_contents = null;
6 6
     protected $_table = [];
7 7
 
8
+    /**
9
+     * @param string $base
10
+     */
8 11
     public function  __construct($base, $action, $format = 'html')
9 12
     {
10 13
         $this->set('base', $base);
@@ -34,6 +37,9 @@  discard block
 block discarded – undo
34 37
         $this->setFileinfo();
35 38
     }
36 39
 
40
+    /**
41
+     * @param string $action
42
+     */
37 43
     public function setAction($action)
38 44
     {
39 45
         $this->set('action', $action);
@@ -113,6 +119,9 @@  discard block
 block discarded – undo
113 119
         return $this->get('parser');
114 120
     }
115 121
 
122
+    /**
123
+     * @param string $base
124
+     */
116 125
     public static function exist($base, $action, $format = 'html')
117 126
     {
118 127
         return self::_getFileInfo($base, $action, $format);
Please login to merge, or discard this patch.
lib/Ajde/Cache.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
         $this->_enabled = false;
42 42
     }
43 43
 
44
+    /**
45
+     * @return resource|null
46
+     */
44 47
     public function getHashContext()
45 48
     {
46 49
         if (!isset($this->_hashContext)) {
@@ -76,6 +79,9 @@  discard block
 block discarded – undo
76 79
         return $this->_hashFinal;
77 80
     }
78 81
 
82
+    /**
83
+     * @param integer $timestamp
84
+     */
79 85
     public function addLastModified($timestamp)
80 86
     {
81 87
         $this->_lastModified[] = $timestamp;
@@ -148,7 +154,7 @@  discard block
 block discarded – undo
148 154
      * Remember a cached value in the cache directory as a file
149 155
      *
150 156
      * @param string $key
151
-     * @param callable $callback
157
+     * @param Closure $callback
152 158
      * @param int $ttl in seconds, defaults to 3600 (one hour)
153 159
      * @return mixed
154 160
      */
Please login to merge, or discard this patch.
lib/Ajde/Collection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -425,6 +425,9 @@
 block discarded – undo
425 425
         return Ajde_Db_PDOStatement::getEmulatedSql($this->getSql(), $this->getFilterValues());
426 426
     }
427 427
 
428
+    /**
429
+     * @param string $queryPart
430
+     */
428 431
     public function getFilter($queryPart)
429 432
     {
430 433
         $arguments = [];
Please login to merge, or discard this patch.
lib/Ajde/Exception/Handler.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -196,6 +196,9 @@  discard block
 block discarded – undo
196 196
         return $type;
197 197
     }
198 198
 
199
+    /**
200
+     * @return string
201
+     */
199 202
     public static function getExceptionChannelMap(Exception $exception)
200 203
     {
201 204
         if ($exception instanceof ErrorException) {
@@ -211,6 +214,9 @@  discard block
 block discarded – undo
211 214
         }
212 215
     }
213 216
 
217
+    /**
218
+     * @return string
219
+     */
214 220
     public static function getExceptionLevelMap(Exception $exception)
215 221
     {
216 222
         if ($exception instanceof ErrorException) {
@@ -226,6 +232,9 @@  discard block
 block discarded – undo
226 232
         }
227 233
     }
228 234
 
235
+    /**
236
+     * @param integer $type
237
+     */
229 238
     public static function getErrorType($type)
230 239
     {
231 240
         switch ($type) {
@@ -266,6 +275,11 @@  discard block
 block discarded – undo
266 275
 
267 276
     static $firstApplicationFileExpanded = false;
268 277
 
278
+    /**
279
+     * @param string $filename
280
+     * @param integer $line
281
+     * @param string $arguments
282
+     */
269 283
     protected static function embedScript($filename = null, $line = null, $arguments = null, $expand = false)
270 284
     {
271 285
         $lineOffset = 5;
Please login to merge, or discard this patch.
lib/Ajde/Fs/File.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@
 block discarded – undo
5 5
     const TYPE_EXTENSION = 'ext';
6 6
     const TYPE_MIMETYPE = 'mime';
7 7
 
8
+    /**
9
+     * @param string $filename
10
+     */
8 11
     public static function getMimeType($filename)
9 12
     {
10 13
         $realpath = realpath($filename);
Please login to merge, or discard this patch.