@@ -52,28 +52,28 @@ function dispatch($request)
5252 return $ space ->$ method ($ request );
5353 }
5454
55- /**
56- * Prepare the result of method execution into ajax-readable format
57- *
58- * @param boolean $result - result of method execution
59- * @param array $data - data to be replied
60- * @param string $message - replied message
61- * @param array $extra - extra data
62- */
55+ /**
56+ * Prepare the result of method execution into ajax-readable format
57+ *
58+ * @param boolean $result - result of method execution
59+ * @param array $data - data to be replied
60+ * @param string $message - replied message
61+ * @param array $extra - extra data
62+ */
6363 function reply ($ result , $ data , $ message = '' , $ extra = array ())
6464 {
6565 return json_encode (array ('result ' => $ result ,
66- 'data ' => $ data ,
67- 'message ' => $ message ,
68- 'extra ' => $ extra ,
69- 'errors ' => $ this ->errors
70- ));
66+ 'data ' => $ data ,
67+ 'message ' => $ message ,
68+ 'extra ' => $ extra ,
69+ 'errors ' => $ this ->errors
70+ ));
7171 }
7272
73- /**
74- * TODO: delete this method
75- * @deprecated
76- */
73+ /**
74+ * TODO: delete this method
75+ * @deprecated
76+ */
7777 static function makeReply ($ reply )
7878 {
7979 print $ reply ;
@@ -92,7 +92,7 @@ static function generalError($error)
9292 self ::renderGlobalError (Message::ERROR , Message::GENERAL_ERROR , $ error );
9393 }
9494
95- /**
95+ /**
9696 * Generate protection error
9797 * @param Exception $error
9898 */
@@ -101,7 +101,7 @@ static function protectionError($error)
101101 self ::renderGlobalError (Message::ERROR , Message::PROTECTION_ERROR , $ error );
102102 }
103103
104- /**
104+ /**
105105 * Generate system error
106106 * @param Exception $error
107107 */
@@ -110,7 +110,7 @@ static function systemError($error)
110110 self ::renderGlobalError (Message::ERROR , Message::SYSTEM_ERROR , $ error );
111111 }
112112
113- /**
113+ /**
114114 * Prepare and render the error
115115 * @param Exception $error
116116 */
0 commit comments