@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace PHPPgAdmin\Database; |
4 | 4 | |
5 | 5 | /** |
6 | - * PostgreSQL 8.2 support |
|
7 | - * |
|
8 | - * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $ |
|
9 | - */ |
|
6 | + * PostgreSQL 8.2 support |
|
7 | + * |
|
8 | + * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $ |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | class Postgres82 extends Postgres83 |
12 | 12 | { |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace PHPPgAdmin\Database; |
4 | 4 | |
5 | 5 | /** |
6 | - * A class that implements the DB interface for Postgres |
|
7 | - * Note: This class uses ADODB and returns RecordSets. |
|
8 | - * |
|
9 | - * $Id: Postgres74.php,v 1.72 2008/02/20 21:06:18 ioguix Exp $ |
|
10 | - */ |
|
6 | + * A class that implements the DB interface for Postgres |
|
7 | + * Note: This class uses ADODB and returns RecordSets. |
|
8 | + * |
|
9 | + * $Id: Postgres74.php,v 1.72 2008/02/20 21:06:18 ioguix Exp $ |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | class Postgres74 extends Postgres80 |
13 | 13 | { |
@@ -103,12 +103,12 @@ discard block |
||
103 | 103 | $container['requestobj'] = $container['request']; |
104 | 104 | $container['responseobj'] = $container['response']; |
105 | 105 | |
106 | -$container['utils'] = function ($c) { |
|
106 | +$container['utils'] = function($c) { |
|
107 | 107 | $utils = new \PHPPgAdmin\ContainerUtils($c); |
108 | 108 | return $utils; |
109 | 109 | }; |
110 | 110 | |
111 | -$container['conf'] = function ($c) use ($conf) { |
|
111 | +$container['conf'] = function($c) use ($conf) { |
|
112 | 112 | |
113 | 113 | //\Kint::dump($conf); |
114 | 114 | // Plugins are removed |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | return $conf; |
118 | 118 | }; |
119 | 119 | |
120 | -$container['lang'] = function ($c) { |
|
120 | +$container['lang'] = function($c) { |
|
121 | 121 | include_once BASE_PATH . '/src/translations.php'; |
122 | 122 | |
123 | 123 | $c['appLangFiles'] = $appLangFiles; |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | return $lang; |
128 | 128 | }; |
129 | 129 | |
130 | -$container['plugin_manager'] = function ($c) { |
|
130 | +$container['plugin_manager'] = function($c) { |
|
131 | 131 | $plugin_manager = new \PHPPgAdmin\PluginManager($c); |
132 | 132 | return $plugin_manager; |
133 | 133 | }; |
134 | 134 | |
135 | -$container['serializer'] = function ($c) { |
|
135 | +$container['serializer'] = function($c) { |
|
136 | 136 | $serializerbuilder = \JMS\Serializer\SerializerBuilder::create(); |
137 | 137 | $serializer = $serializerbuilder |
138 | 138 | ->setCacheDir(BASE_PATH . '/temp/jms') |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | }; |
143 | 143 | |
144 | 144 | // Create Misc class references |
145 | -$container['misc'] = function ($c) { |
|
145 | +$container['misc'] = function($c) { |
|
146 | 146 | $misc = new \PHPPgAdmin\Misc($c); |
147 | 147 | |
148 | 148 | $conf = $c->get('conf'); |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | }; |
241 | 241 | |
242 | 242 | // Register Twig View helper |
243 | -$container['view'] = function ($c) { |
|
243 | +$container['view'] = function($c) { |
|
244 | 244 | $conf = $c->get('conf'); |
245 | 245 | $misc = $c->misc; |
246 | 246 | |
@@ -276,8 +276,8 @@ discard block |
||
276 | 276 | return $view; |
277 | 277 | }; |
278 | 278 | |
279 | -$container['haltHandler'] = function ($c) { |
|
280 | - return function ($request, $response, $exits, $status = 500) use ($c) { |
|
279 | +$container['haltHandler'] = function($c) { |
|
280 | + return function($request, $response, $exits, $status = 500) use ($c) { |
|
281 | 281 | $title = 'PHPPgAdmin Error'; |
282 | 282 | |
283 | 283 | $html = '<p>The application could not run because of the following error:</p>'; |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | |
308 | 308 | // Set the requestobj and responseobj properties of the container |
309 | 309 | // as the value of $request and $response, which already contain the route |
310 | -$app->add(function ($request, $response, $next) { |
|
310 | +$app->add(function($request, $response, $next) { |
|
311 | 311 | $this['requestobj'] = $request; |
312 | 312 | $this['responseobj'] = $response; |
313 | 313 |