Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LaercioSantana committed Jul 24, 2016
1 parent 6d48a84 commit 82f68fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/controllers/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function validateJson($json, $schemaPath){

}
/**
* @api {post} /routes Atualizar uma rota
* @api {put} /routes/:id Atualizar uma rota
* @apiName PutRoutes
* @apiGroup Routes
* @apiPermission tracker
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getToken(){
$validator = $this->validateJson($this->input->raw_input_stream, APPPATH.'/controllers/Schemas/UsersLogin.json');
if($validator->valid){
$this->loadModel();
$input = userFromJson($this->input->raw_input_stream);
$input = $this->userFromJson($this->input->raw_input_stream);

$user = $this->user_model->get($input);
unset($input->password);
Expand Down
1 change: 0 additions & 1 deletion application/models/Bus_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ private function popLastLocalizations($idRoute, $idBus){
->where("id_bus = {$idBus}")
->order_by("date", "asc")
->limit(1,0)->delete();
echo json_encode($r);
}
public function insertBus($idRoute, $bus){
$busData = new stdClass();
Expand Down

0 comments on commit 82f68fc

Please sign in to comment.