Completed
Push — develop ( f6c3a2 )
by Mathieu
05:07
created
src/Suricate/FormItem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
         return in_array($name, $this->objectHtmlProperties);
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $type
64
+     */
62 65
     public static function input($type, $name, $value = null, $label = null, $htmlAttributes = array())
63 66
     {
64 67
         $itemData           = array();
Please login to merge, or discard this patch.
src/Suricate/I18n.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
         return $langList;
43 43
     }
44 44
 
45
+    /**
46
+     * @param string $locale
47
+     */
45 48
     public function load($locale = null)
46 49
     {
47 50
         $filename    = app_path() . DIRECTORY_SEPARATOR
Please login to merge, or discard this patch.
src/Suricate/ImageFont.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@
 block discarded – undo
72 72
 
73 73
     }
74 74
 
75
+    /**
76
+     * @param resource $image
77
+     */
75 78
     public function apply(&$image, $x = 0, $y = 0)
76 79
     {
77 80
         $colorResource = $this->createColor($image);
Please login to merge, or discard this patch.
src/Suricate/Error.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@  discard block
 block discarded – undo
11 11
         'httpHandler'
12 12
         );
13 13
 
14
+    /**
15
+     * @param ErrorException $e
16
+     */
14 17
     public static function handleException($e, $context = null)
15 18
     {
16 19
         if ($e instanceof Exception\HttpException) {
@@ -99,6 +102,9 @@  discard block
 block discarded – undo
99 102
         exit(1);
100 103
     }
101 104
 
105
+    /**
106
+     * @param Exception\HttpException $e
107
+     */
102 108
     private function displayGenericHttpExceptionPage($e)
103 109
     {
104 110
         $response = Suricate::Request();
Please login to merge, or discard this patch.
src/Suricate/Collection.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -279,6 +279,9 @@  discard block
 block discarded – undo
279 279
         return array_search($value, $this->items, $strict);
280 280
     }
281 281
 
282
+    /**
283
+     * @param string $key
284
+     */
282 285
     public function has($key)
283 286
     {
284 287
         return $this->offsetExists($key);
@@ -289,6 +292,9 @@  discard block
 block discarded – undo
289 292
         return array_keys($this->items);
290 293
     }
291 294
 
295
+    /**
296
+     * @param integer $item
297
+     */
292 298
     public function prepend($item)
293 299
     {
294 300
         array_unshift($this->items, $item);
@@ -303,6 +309,10 @@  discard block
 block discarded – undo
303 309
         return $this;
304 310
     }
305 311
 
312
+    /**
313
+     * @param string $key
314
+     * @param integer $val
315
+     */
306 316
     public function put($key, $val)
307 317
     {
308 318
         $this->items[$key] = $val;
@@ -324,6 +334,9 @@  discard block
 block discarded – undo
324 334
         return new static(array_reverse($this->items));
325 335
     }
326 336
 
337
+    /**
338
+     * @param integer $initial
339
+     */
327 340
     public function reduce(callable $callback, $initial = null)
328 341
     {
329 342
         return array_reduce($this->items, $callback, $initial);
@@ -334,6 +347,9 @@  discard block
 block discarded – undo
334 347
         return new static(array_slice($this->items, $offset, $length, $preserveKeys));
335 348
     }
336 349
 
350
+    /**
351
+     * @param integer $limit
352
+     */
337 353
     public function take($limit = null)
338 354
     {
339 355
         if ($limit < 0) {
Please login to merge, or discard this patch.
src/Suricate/Middleware/HttpBasicAuth.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -67,6 +67,10 @@
 block discarded – undo
67 67
         return false;
68 68
     }
69 69
 
70
+    /**
71
+     * @param string $user
72
+     * @param string $password
73
+     */
70 74
     private function authenticateAgainstDatabase($user, $password)
71 75
     {
72 76
         return false;
Please login to merge, or discard this patch.