Completed
Push — master ( caf349...3543bb )
by Stefano
02:57
created
classes/Errors.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@
 block discarded – undo
57 57
       return true;
58 58
     }
59 59
 
60
+    /**
61
+     * @param ErrorException $e
62
+     */
60 63
     public static function traceException($e){
61 64
       switch(self::$mode){
62 65
           case self::HTML :
Please login to merge, or discard this patch.
classes/SQL.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -101,6 +101,11 @@
 block discarded – undo
101 101
             $queries           = [],
102 102
             $last_exec_success = true;
103 103
 
104
+  /**
105
+   * @param string $dsn
106
+   * @param string $username
107
+   * @param string $password
108
+   */
104 109
   public function __construct($dsn, $username=null, $password=null, $options=[]){
105 110
     $this->connection = [
106 111
       'dsn'        => $dsn,
Please login to merge, or discard this patch.
classes/Session.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@  discard block
 block discarded – undo
32 32
 	 *
33 33
 	 * @access public
34 34
 	 * @static
35
-	 * @param string $key The session name
36 35
 	 * @return string The session value
37 36
 	 */
38 37
 	static public function name($name=null){
@@ -62,7 +61,7 @@  discard block
 block discarded – undo
62 61
 	 *
63 62
 	 * @access public
64 63
 	 * @static
65
-	 * @param mixed $key The variable name
64
+	 * @param string $key The variable name
66 65
 	 * @param mixed $value The variable value
67 66
 	 * @return void
68 67
 	 */
@@ -80,7 +79,7 @@  discard block
 block discarded – undo
80 79
 	 *
81 80
 	 * @access public
82 81
 	 * @static
83
-	 * @param mixed $key The variable name
82
+	 * @param string $key The variable name
84 83
 	 * @return void
85 84
 	 */
86 85
 	static public function delete($key){
@@ -107,7 +106,7 @@  discard block
 block discarded – undo
107 106
 	 *
108 107
 	 * @access public
109 108
 	 * @static
110
-	 * @return void
109
+	 * @return boolean
111 110
 	 */
112 111
 	static public function active(){
113 112
 		return session_status() == PHP_SESSION_ACTIVE;
Please login to merge, or discard this patch.
classes/FileSystem/Native.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
       return $this->exists($path) ? file_get_contents($this->realPath($path)) : false;
29 29
   }
30 30
 
31
+  /**
32
+   * @param string|false $data
33
+   */
31 34
   public function write($path, $data){
32 35
       $r_path = $this->realPath($path);
33 36
       if ( ! is_dir($r_dir = dirname($r_path)) ) @mkdir($r_dir,0775,true);
Please login to merge, or discard this patch.
classes/View/PHP.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@
 block discarded – undo
56 56
 class PHPContext {
57 57
   protected $data = [];
58 58
 
59
+  /**
60
+   * @param string $path
61
+   */
59 62
   public function __construct($data=[], $path=null){
60 63
       $this->data = $data;
61 64
   }
Please login to merge, or discard this patch.
classes/Request.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -92,6 +92,7 @@
 block discarded – undo
92 92
    * Returns all elements if you pass `null` as $key
93 93
    *
94 94
    * @param  string $key The name of the input value
95
+   * @param boolean $default
95 96
    *
96 97
    * @return Object The returned value or $default.
97 98
    */
Please login to merge, or discard this patch.
classes/Relation.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@  discard block
 block discarded – undo
17 17
    * This function can be used to get all options passing null, setting options passing an associative
18 18
    * array or retrieve a single value passing a string
19 19
    *
20
-   * @param  mixed $options The options passed to the relation layer.
21 20
    * @return mixed          All options array or a single value
22 21
    */
23 22
   protected static function & relationOptions(){
@@ -31,7 +30,7 @@  discard block
 block discarded – undo
31 30
    * The save callback interface is
32 31
    *   function($table, array $options)
33 32
    *
34
-   * @param  callable $callback The callback to use on model save
33
+   * @param string $plurality
35 34
    * @return callable           Current save callback
36 35
    */
37 36
   private static function relationAddRelationshipTo($link, $plurality, $extra=[]){
Please login to merge, or discard this patch.
classes/View.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     /**
23 23
      * Construct a new view based on the passed template
24
-     * @param  mixed $template The template path or an array of them.
24
+     * @param  string $template The template path or an array of them.
25 25
      */
26 26
     public function __construct($template){
27 27
       foreach ((array)$template as $templ){
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     /**
35 35
      * Load a Template Handler
36
-     * @param  class $handler The template handler class instance
36
+     * @param  View\Adapter $handler The template handler class instance
37 37
      */
38 38
     public static function using(View\Adapter $handler){
39 39
       static::$handler = $handler;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     /**
75 75
      * Returns the handler instance
76
-     * @return mixed
76
+     * @return View\Adapter
77 77
      */
78 78
     public static function & handler(){
79 79
       return static::$handler;
Please login to merge, or discard this patch.
classes/CLI.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     /**
117 117
      * Dispatch the router
118 118
      * @param  string[] $args The arguments array.
119
-     * @return boolean  True if route was correctly dispatched.
119
+     * @return null|boolean  True if route was correctly dispatched.
120 120
      */
121 121
     public static function run($args=null){
122 122
       if (PHP_SAPI != 'cli') return false;
Please login to merge, or discard this patch.