From e4dac9f8000b7f3db26fb77e27ec27ccef4c0335 Mon Sep 17 00:00:00 2001
From: wmjulio <julio.martins@academico.ifpb.edu.br>
Date: Wed, 17 Oct 2018 15:28:24 -0300
Subject: [PATCH] Update getAllVeiculos.php

---
 WebServicePHP/getAllVeiculos.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/WebServicePHP/getAllVeiculos.php b/WebServicePHP/getAllVeiculos.php
index 754078b..497df40 100644
--- a/WebServicePHP/getAllVeiculos.php
+++ b/WebServicePHP/getAllVeiculos.php
@@ -1,7 +1,7 @@
 <?php 
 	//echo ($_SERVER['HTTP_ID']);
 
-	if($_SERVER['REQUEST_METHOD']=='POST' and $_SERVER['HTTP_PATH']=='getVeiculos'){
+	if ($_SERVER['REQUEST_METHOD']=='POST' and $_SERVER['HTTP_PATH']=='getVeiculos') {
 
 		//Importing Database Script 
 		require_once('dbConnect.php');
@@ -16,7 +16,7 @@
 		$result = array();
 		
 		//looping through all the records fetched
-		while($row = mysqli_fetch_array($r)){
+		while ($row = mysqli_fetch_array($r)) {
 			
 			//Pushing name and id in the blank array created 
 			array_push($result,array(
@@ -31,7 +31,7 @@
 		
 		mysqli_close($con);
 
-	}else{
+	} else {
 		echo "Acesso não autorizado.";
 		echo date('Y-m-d H:i:s');
 	}