@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $lang = $this->lang; |
| 46 | 46 | $data = $misc->getDatabaseAccessor(); |
| 47 | 47 | |
| 48 | - $renderCastContext = function ($val) use ($lang) { |
|
| 48 | + $renderCastContext = function($val) use ($lang) { |
|
| 49 | 49 | switch ($val) { |
| 50 | 50 | case 'e':return $lang['strno']; |
| 51 | 51 | case 'a':return $lang['strinassignment']; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param $parser |
| 37 | 37 | * @param $cdata |
| 38 | 38 | */ |
| 39 | - $_charHandler = function ($parser, $cdata) use (&$state, &$curr_col_val) { |
|
| 39 | + $_charHandler = function($parser, $cdata) use (&$state, &$curr_col_val) { |
|
| 40 | 40 | if ($state == 'COLUMN') { |
| 41 | 41 | $curr_col_val .= $cdata; |
| 42 | 42 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * @param $name |
| 50 | 50 | * @param $attrs |
| 51 | 51 | */ |
| 52 | - $_startElement = function ($parser, $name, $attrs) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null) { |
|
| 52 | + $_startElement = function($parser, $name, $attrs) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null) { |
|
| 53 | 53 | switch ($name) { |
| 54 | 54 | case 'DATA': |
| 55 | 55 | if ($state != 'XML') { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * @param $parser |
| 113 | 113 | * @param $name |
| 114 | 114 | */ |
| 115 | - $_endElement = function ($parser, $name) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null, &$curr_col_val) { |
|
| 115 | + $_endElement = function($parser, $name) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null, &$curr_col_val) { |
|
| 116 | 116 | switch ($name) { |
| 117 | 117 | case 'DATA': |
| 118 | 118 | $state = 'READ_DATA'; |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | */ |
| 6 | 6 | require_once './src/lib.inc.php'; |
| 7 | 7 | |
| 8 | -$app->post('/redirect[/{subject}]', function ($request, $response, $args) { |
|
| 8 | +$app->post('/redirect[/{subject}]', function($request, $response, $args) { |
|
| 9 | 9 | $body = $response->getBody(); |
| 10 | 10 | $query_string = $request->getUri()->getQuery(); |
| 11 | 11 | $misc = $this->misc; |
@@ -50,33 +50,33 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | }); |
| 52 | 52 | |
| 53 | -$app->get('/redirect[/{subject}]', function ($request, $response, $args) { |
|
| 53 | +$app->get('/redirect[/{subject}]', function($request, $response, $args) { |
|
| 54 | 54 | $subject = (isset($args['subject'])) ? $args['subject'] : 'root'; |
| 55 | 55 | $destinationurl = $this->utils->getDestinationWithLastTab($subject); |
| 56 | 56 | return $response->withStatus(302)->withHeader('Location', $destinationurl); |
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | -$app->get('/src/views/browser', function ($request, $response, $args) { |
|
| 59 | +$app->get('/src/views/browser', function($request, $response, $args) { |
|
| 60 | 60 | $controller = new \PHPPgAdmin\Controller\BrowserController($this, true); |
| 61 | 61 | return $controller->render(); |
| 62 | 62 | }); |
| 63 | 63 | |
| 64 | -$app->get('/src/views/login', function ($request, $response, $args) { |
|
| 64 | +$app->get('/src/views/login', function($request, $response, $args) { |
|
| 65 | 65 | $controller = new \PHPPgAdmin\Controller\LoginController($this, true); |
| 66 | 66 | return $controller->render(); |
| 67 | 67 | }); |
| 68 | 68 | |
| 69 | -$app->get('/src/views/servers', function ($request, $response, $args) { |
|
| 69 | +$app->get('/src/views/servers', function($request, $response, $args) { |
|
| 70 | 70 | $controller = new \PHPPgAdmin\Controller\ServersController($this, true); |
| 71 | 71 | return $controller->render(); |
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | -$app->get('/src/views/intro', function ($request, $response, $args) { |
|
| 74 | +$app->get('/src/views/intro', function($request, $response, $args) { |
|
| 75 | 75 | $controller = new \PHPPgAdmin\Controller\IntroController($this, true); |
| 76 | 76 | return $controller->render(); |
| 77 | 77 | }); |
| 78 | 78 | |
| 79 | -$app->map(['GET', 'POST'], '/src/views/{subject}', function ($request, $response, $args) { |
|
| 79 | +$app->map(['GET', 'POST'], '/src/views/{subject}', function($request, $response, $args) { |
|
| 80 | 80 | if ($this->misc->getServerId() === null) { |
| 81 | 81 | return $response->withStatus(302)->withHeader('Location', SUBFOLDER . '/src/views/servers'); |
| 82 | 82 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return $controller->render(); |
| 95 | 95 | }); |
| 96 | 96 | |
| 97 | -$app->get('/[{subject}]', function ($request, $response, $args) { |
|
| 97 | +$app->get('/[{subject}]', function($request, $response, $args) { |
|
| 98 | 98 | $subject = (isset($args['subject'])) ? $args['subject'] : 'intro'; |
| 99 | 99 | $_server_info = $this->misc->getServerInfo(); |
| 100 | 100 | $query_string = $request->getUri()->getQuery(); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | namespace PHPPgAdmin; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * A class that implements the plugin's system |
|
| 7 | - */ |
|
| 6 | + * A class that implements the plugin's system |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | class PluginManager |
| 10 | 10 | { |
@@ -28,11 +28,11 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Register the plugins |
| 31 | - * |
|
| 32 | - * @param \Slim\Container $container |
|
| 33 | - * @internal param $this ->language - Language that have been used. |
|
| 34 | - * @throws \Interop\Container\Exception\ContainerException |
|
| 35 | - * @throws \Slim\Exception\ContainerValueNotFoundException |
|
| 31 | + * |
|
| 32 | + * @param \Slim\Container $container |
|
| 33 | + * @internal param $this ->language - Language that have been used. |
|
| 34 | + * @throws \Interop\Container\Exception\ContainerException |
|
| 35 | + * @throws \Slim\Exception\ContainerValueNotFoundException |
|
| 36 | 36 | */ |
| 37 | 37 | public function __construct(\Slim\Container $container) |
| 38 | 38 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Add a plugin in the list of plugins to manage |
| 71 | - * |
|
| 71 | + * |
|
| 72 | 72 | * @param $plugin - Instance from plugin |
| 73 | 73 | */ |
| 74 | 74 | public function add_plugin($plugin) |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * Execute the plugins hook functions when needed. |
| 109 | - * |
|
| 109 | + * |
|
| 110 | 110 | * @param $hook - The place where the function will be called |
| 111 | 111 | * @param $function_args - An array reference with arguments to give to called function |
| 112 | 112 | */ |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * Execute a plugin's action |
| 129 | - * |
|
| 129 | + * |
|
| 130 | 130 | * @param $plugin_name - The plugin name. |
| 131 | 131 | * @param $action - action that will be executed. |
| 132 | 132 | */ |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 9.6 documentation |
|
| 7 | - * |
|
| 8 | - */ |
|
| 6 | + * Help links for PostgreSQL 9.6 documentation |
|
| 7 | + * |
|
| 8 | + */ |
|
| 9 | 9 | class PostgresDoc96 extends PostgresDoc95 |
| 10 | 10 | { |
| 11 | 11 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 8.4 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 8.4 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc84 extends PostgresDoc83 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 8.0 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc80.php,v 1.5 2005/02/16 10:27:44 jollytoad Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 8.0 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc80.php,v 1.5 2005/02/16 10:27:44 jollytoad Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc80 extends PostgresDoc74 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 9.0 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 9.0 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc90 extends PostgresDoc84 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 9.1 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 9.1 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc91 extends PostgresDoc90 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |