Skip to content

Commit 207b7d8

Browse files
author
Marco Cesarato
committed
style(cs): fix code standard and remove date copyright comments
1 parent cf63f95 commit 207b7d8

File tree

14 files changed

+19
-35
lines changed

14 files changed

+19
-35
lines changed

clients/APIClient.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Database Web API Client.
77
*
88
* @author Marco Cesarato <cesarato.developer@gmail.com>
9-
* @copyright Copyright (c) 2019
109
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
1110
*
1211
* @see https://github.com/marcocesarato/Database-Web-API

config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Config.
44
*
55
* @author Marco Cesarato <cesarato.developer@gmail.com>
6-
* @copyright Copyright (c) 2019
76
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
87
*
98
* @see https://github.com/marcocesarato/Database-Web-API

docs.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
$docs = [
44
'dataset' => [
5-
/**
6-
* @example
7-
* "example" => [
8-
* "id" => [
9-
* "description" => "Row identification",
10-
* "example" => "1",
11-
* ],
12-
* "guid" => [
13-
* "description" => "Standard row identification GUID",
14-
* "example" => "cc7c0e6f-2662-8451-1e70-5c61496c3f5f",
15-
* ],
16-
* ],
17-
*/
5+
/**
6+
* @example
7+
* "example" => [
8+
* "id" => [
9+
* "description" => "Row identification",
10+
* "example" => "1",
11+
* ],
12+
* "guid" => [
13+
* "description" => "Standard row identification GUID",
14+
* "example" => "cc7c0e6f-2662-8451-1e70-5c61496c3f5f",
15+
* ],
16+
* ],
17+
*/
1818
],
1919
];

includes/classes/Auth.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* Authentication Class.
1010
*
1111
* @author Marco Cesarato <cesarato.developer@gmail.com>
12-
* @copyright Copyright (c) 2019
1312
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
1413
*
1514
* @see https://github.com/marcocesarato/Database-Web-API
@@ -174,7 +173,7 @@ public function validate($query)
174173
],
175174
];
176175
$results = $this->hooks->apply_filters('auth_login', $results);
177-
die($this->api->render($results));
176+
exit($this->api->render($results));
178177
}
179178
}
180179
Response::error('Invalid authentication!', 401);

includes/classes/DatabaseErrors.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Database error parser Class.
77
*
88
* @author Marco Cesarato <cesarato.developer@gmail.com>
9-
* @copyright Copyright (c) 2019
109
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
1110
*
1211
* @see https://github.com/marcocesarato/Database-Web-API

includes/classes/Docs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Docs.
77
*
88
* @author Marco Cesarato <cesarato.developer@gmail.com>
9-
* @copyright Copyright (c) 2019
109
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
1110
*
1211
* @see https://github.com/marcocesarato/Database-Web-API

includes/classes/Dump.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Dump Class.
77
*
88
* @author Marco Cesarato <cesarato.developer@gmail.com>
9-
* @copyright Copyright (c) 2019
109
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
1110
*
1211
* @see https://github.com/marcocesarato/Database-Web-API
@@ -36,7 +35,7 @@ public static function fatal()
3635
{
3736
self::setHeader();
3837
$args = func_get_args();
39-
die(self::internalDump($args));
38+
exit(self::internalDump($args));
4039
}
4140

4241
/**
@@ -47,7 +46,7 @@ public static function clean()
4746
self::setHeader();
4847
ob_clean();
4948
$args = func_get_args();
50-
die(self::internalDump($args));
49+
exit(self::internalDump($args));
5150
}
5251

5352
/**

includes/classes/Response.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Response Class.
77
*
88
* @author Marco Cesarato <cesarato.developer@gmail.com>
9-
* @copyright Copyright (c) 2019
109
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
1110
*
1211
* @see https://github.com/marcocesarato/Database-Web-API

includes/compatibility.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Compatibility.
44
*
55
* @author Marco Cesarato <cesarato.developer@gmail.com>
6-
* @copyright Copyright (c) 2019
76
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
87
*
98
* @see https://github.com/marcocesarato/Database-Web-API

includes/functions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Functions.
44
*
55
* @author Marco Cesarato <cesarato.developer@gmail.com>
6-
* @copyright Copyright (c) 2019
76
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
87
*
98
* @see https://github.com/marcocesarato/Database-Web-API

0 commit comments

Comments
 (0)