@@ -46,25 +46,25 @@ class PHPRestSQL {
4646 * The HTTP request data sent (if any).
4747 * @var str
4848 */
49- var $ requestData = NULL ;
49+ var $ requestData = null ;
5050
5151 /**
5252 * The URL extension stripped off of the request URL
5353 * @var str
5454 */
55- var $ extension = NULL ;
55+ var $ extension = null ;
5656
5757 /**
5858 * The database table to query.
5959 * @var str
6060 */
61- var $ table = NULL ;
61+ var $ table = null ;
6262
6363 /**
6464 * The primary key of the database row to query.
6565 * @var str[]
6666 */
67- var $ uid = NULL ;
67+ var $ uid = null ;
6868
6969 /**
7070 * Array of strings to convert into the HTTP response.
@@ -75,15 +75,15 @@ class PHPRestSQL {
7575 /**
7676 * Type of display, database, table or row.
7777 */
78- var $ display = NULL ;
78+ var $ display = null ;
7979
8080 /**
8181 * Constructor. Parses the configuration file "phprestsql.ini", grabs any request data sent, records the HTTP
8282 * request method used and parses the request URL to find out the requested table name and primary key values.
8383 * @param str iniFile Configuration file to use
8484 */
8585 function PHPRestSQL ($ iniFile = 'phprestsql.ini ' ) {
86- $ this ->config = parse_ini_file ($ iniFile , TRUE );
86+ $ this ->config = parse_ini_file ($ iniFile , true );
8787
8888 if (isset ($ _SERVER ['REQUEST_URI ' ]) && isset ($ _SERVER ['REQUEST_METHOD ' ])) {
8989
@@ -101,7 +101,7 @@ function PHPRestSQL($iniFile = 'phprestsql.ini') {
101101
102102 $ lastPart = array_pop ($ urlParts );
103103 $ dotPosition = strpos ($ lastPart , '. ' );
104- if ($ dotPosition !== FALSE ) {
104+ if ($ dotPosition !== false ) {
105105 $ this ->extension = substr ($ lastPart , $ dotPosition + 1 );
106106 $ lastPart = substr ($ lastPart , 0 , $ dotPosition );
107107 }
@@ -519,7 +519,7 @@ function generateResponseData() {
519519 /**
520520 * Send a HTTP 201 response header.
521521 */
522- function created ($ url = FALSE ) {
522+ function created ($ url = false ) {
523523 header ('HTTP/1.0 201 Created ' );
524524 if ($ url ) {
525525 header ('Location: ' .$ url );
0 commit comments