Completed
Push — master ( c87aa3...57f4b6 )
by Stefano
02:27
created
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($args) {
Please login to merge, or discard this patch.
classes/Email/Smtp.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
     fwrite($this->socket, $payload);
58 58
   }
59 59
 
60
+  /**
61
+   * @param integer $code
62
+   */
60 63
   protected function expectCode($code){
61 64
 
62 65
     $this->lastMessage = '';
@@ -98,6 +101,9 @@  discard block
 block discarded – undo
98 101
     $this->attachments[] = $file;
99 102
   }
100 103
 
104
+  /**
105
+   * @param string $body
106
+   */
101 107
   protected function SMTPmail($to,$subject,$body,$heads=''){
102 108
     $this->connect();
103 109
     $this->expectCode(220);
Please login to merge, or discard this patch.
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/FileSystem/Native.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
         return $this->exists($path) ? file_get_contents($this->realPath($path)) : false;
28 28
     }
29 29
 
30
+    /**
31
+     * @param string|false $data
32
+     */
30 33
     public function write($path, $data){
31 34
         $r_path = $this->realPath($path);
32 35
         if ( ! is_dir($r_dir = dirname($r_path)) ) @mkdir($r_dir,0775,true);
Please login to merge, or discard this patch.
classes/HTTP.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
   protected static $headers     = [];
19 19
   protected static $last_info   = null;
20 20
 
21
+  /**
22
+   * @param string $method
23
+   */
21 24
   protected static function request($method, $url, $data=[], array $headers=[], $data_as_json=false, $username=null, $password = null){
22 25
     $http_method = strtoupper($method);
23 26
     $ch = curl_init($url);
@@ -97,6 +100,9 @@  discard block
 block discarded – undo
97 100
     return static::request('get',$url,$data,$headers,false,$username,$password);
98 101
   }
99 102
 
103
+  /**
104
+   * @param string $url
105
+   */
100 106
   public static function post($url,$data=null,array $headers=[], $username = null, $password = null){
101 107
     return static::request('post',$url,$data,$headers,static::$json_data,$username,$password);
102 108
   }
Please login to merge, or discard this patch.
classes/Session.php 1 patch
Doc Comments   +4 added lines, -5 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){
@@ -45,7 +44,7 @@  discard block
 block discarded – undo
45 44
 	 * @access public
46 45
 	 * @static
47 46
 	 * @param mixed $key The variable name
48
-	 * @return mixed The variable value
47
+	 * @return string The variable value
49 48
 	 */
50 49
 	static public function get($key,$default=null){
51 50
                 if (($active = static::active()) && isset($_SESSION[$key])) {
@@ -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/Email/Ses.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
     fwrite($this->socket, $payload);
58 58
   }
59 59
 
60
+  /**
61
+   * @param integer $code
62
+   */
60 63
   protected function expectCode($code){
61 64
 
62 65
     $this->lastMessage = '';
@@ -98,6 +101,9 @@  discard block
 block discarded – undo
98 101
     $this->attachments[] = $file;
99 102
   }
100 103
 
104
+  /**
105
+   * @param string $body
106
+   */
101 107
   protected function SMTPmail($to,$subject,$body,$heads=''){
102 108
     $this->connect();
103 109
     $this->expectCode(220);
Please login to merge, or discard this patch.
classes/Route.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -198,7 +198,6 @@  discard block
 block discarded – undo
198 198
 
199 199
     /**
200 200
      * Bind a middleware callback to invoked before the route definition
201
-     * @param  callable $before The callback to be invoked ($this is binded to the route object).
202 201
      * @return Route
203 202
      */
204 203
     public function & before($callback){
@@ -318,7 +317,7 @@  discard block
 block discarded – undo
318 317
      * @param  string  $pattern The URL schema with the named parameters
319 318
      * @param  string  $URL The URL to process, if omitted the current request URI will be used.
320 319
      * @param  boolean $cut If true don't limit the matching to the whole URL (used for group pattern extraction)
321
-     * @return array The extracted variables
320
+     * @return callable The extracted variables
322 321
      */
323 322
     protected static function extractVariablesFromURL($pattern,$URL=null,$cut=false){
324 323
         $URL     = $URL ?: Request::URI();
Please login to merge, or discard this patch.
classes/View.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * Load a Template Handler
32
-     * @param  class $handler The template handler class instance
32
+     * @param  View\Adapter $handler The template handler class instance
33 33
      */
34 34
     public static function using(View\Adapter &$handler){
35 35
       static::$handler = $handler;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     /**
71 71
      * Returns the handler instance
72
-     * @return mixed
72
+     * @return View\Adapter
73 73
      */
74 74
     public static function & handler(){
75 75
       return static::$handler;
Please login to merge, or discard this patch.