@@ -150,8 +150,8 @@ abstract class REST_Controller extends CI_Controller {
150150 const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511 ;
151151
152152 /**
153- * This defines the rest format.
154- * Must be overridden it in a controller so that it is set.
153+ * This defines the rest format
154+ * Must be overridden it in a controller so that it is set
155155 *
156156 * @var string|NULL
157157 */
@@ -269,7 +269,7 @@ abstract class REST_Controller extends CI_Controller {
269269 protected $ _args = [];
270270
271271 /**
272- * If the request is allowed based on the API key provided.
272+ * If the request is allowed based on the API key provided
273273 *
274274 * @var bool
275275 */
@@ -323,7 +323,7 @@ abstract class REST_Controller extends CI_Controller {
323323 * Enable XSS flag
324324 * Determines whether the XSS filter is always active when
325325 * GET, OPTIONS, HEAD, POST, PUT, DELETE and PATCH data is encountered.
326- * Set automatically based on config setting.
326+ * Set automatically based on config setting
327327 *
328328 * @var bool
329329 */
@@ -560,11 +560,11 @@ public function __destruct()
560560 /**
561561 * Requests are not made to methods directly, the request will be for
562562 * an "object". This simply maps the object and method to the correct
563- * Controller method.
563+ * Controller method
564564 *
565565 * @access public
566566 * @param string $object_called
567- * @param array $arguments The arguments passed to the controller method.
567+ * @param array $arguments The arguments passed to the controller method
568568 */
569569 public function _remap ($ object_called , $ arguments )
570570 {
@@ -588,7 +588,7 @@ public function _remap($object_called, $arguments)
588588 // Use keys for this method?
589589 $ use_key = !(isset ($ this ->methods [$ controller_method ]['key ' ]) && $ this ->methods [$ controller_method ]['key ' ] === FALSE );
590590
591- // They provided a key, but it wasn't valid, so get them out of here.
591+ // They provided a key, but it wasn't valid, so get them out of here
592592 if ($ this ->config ->item ('rest_enable_keys ' ) && $ use_key && $ this ->_allow === FALSE )
593593 {
594594 if ($ this ->config ->item ('rest_enable_logging ' ) && $ log_method )
@@ -602,7 +602,7 @@ public function _remap($object_called, $arguments)
602602 ], self ::HTTP_FORBIDDEN );
603603 }
604604
605- // Check to see if this key has access to the requested controller.
605+ // Check to see if this key has access to the requested controller
606606 if ($ this ->config ->item ('rest_enable_keys ' ) && $ use_key && empty ($ this ->rest ->key ) === FALSE && $ this ->_check_access () === FALSE )
607607 {
608608 if ($ this ->config ->item ('rest_enable_logging ' ) && $ log_method )
@@ -713,7 +713,7 @@ public function response($data = NULL, $http_code = NULL, $continue = FALSE)
713713 $ this ->output ->set_content_type ($ this ->_supported_formats [$ this ->response ->format ], strtolower ($ this ->config ->item ('charset ' )));
714714 $ output = $ this ->format ->factory ($ data )->{'to_ ' . $ this ->response ->format }();
715715
716- // An array must be parsed as a string, so as not to cause an array to string error.
716+ // An array must be parsed as a string, so as not to cause an array to string error
717717 // Json is the most appropriate form for such a datatype
718718 if ($ this ->response ->format === 'array ' )
719719 {
@@ -763,7 +763,7 @@ public function response($data = NULL, $http_code = NULL, $continue = FALSE)
763763 * Takes mixed data and optionally a status code, then creates the response
764764 * within the buffers of the Output class. The response is sent to the client
765765 * lately by the framework, after the current controller's method termination.
766- * All the hooks after the controller's method termination are executable.
766+ * All the hooks after the controller's method termination are executable
767767 *
768768 * @access public
769769 * @param array|NULL $data Data to output to the user
@@ -904,7 +904,7 @@ protected function _detect_method()
904904
905905 if (empty ($ method ))
906906 {
907- // Get the request method as a lowercase string.
907+ // Get the request method as a lowercase string
908908 $ method = $ this ->input ->method ();
909909 }
910910
@@ -948,7 +948,7 @@ protected function _detect_api_key()
948948
949949 /*
950950 * If "is private key" is enabled, compare the ip address with the list
951- * of valid ip addresses stored in the database.
951+ * of valid ip addresses stored in the database
952952 */
953953 if (empty ($ row ->is_private_key ) === FALSE )
954954 {
@@ -973,7 +973,7 @@ protected function _detect_api_key()
973973 }
974974 else
975975 {
976- // There should be at least one IP address for this private key.
976+ // There should be at least one IP address for this private key
977977 return FALSE ;
978978 }
979979 }
@@ -1617,7 +1617,7 @@ public function query($key = NULL, $xss_clean = NULL)
16171617
16181618 /**
16191619 * Sanitizes data so that Cross Site Scripting Hacks can be
1620- * prevented.
1620+ * prevented
16211621 *
16221622 * @access protected
16231623 * @param string $value Input data
0 commit comments