Passed
Pull Request — master (#73)
by Felipe
06:17 queued 02:31
created
src/help/PostgresDoc94.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
     namespace PHPPgAdmin\Help;
4 4
 
5 5
 /**
6
-     * Help links for PostgreSQL 9.4 documentation
7
-     *
8
-     * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $
9
-     */
6
+ * Help links for PostgreSQL 9.4 documentation
7
+ *
8
+ * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $
9
+ */
10 10
     class PostgresDoc94 extends PostgresDoc93
11 11
     {
12 12
         public function __construct($conf, $major_version)
Please login to merge, or discard this patch.
src/help/PostgresDoc82.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
     namespace PHPPgAdmin\Help;
4 4
 
5 5
 /**
6
-     * Help links for PostgreSQL 8.2 documentation
7
-     *
8
-     * $Id: PostgresDoc82.php,v 1.3 2007/11/30 15:27:26 soranzo Exp $
9
-     */
6
+ * Help links for PostgreSQL 8.2 documentation
7
+ *
8
+ * $Id: PostgresDoc82.php,v 1.3 2007/11/30 15:27:26 soranzo Exp $
9
+ */
10 10
     class PostgresDoc82 extends PostgresDoc81
11 11
     {
12 12
         public function __construct($conf, $major_version)
Please login to merge, or discard this patch.
src/controllers/ConstraintsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         $lang = $this->lang;
114 114
         $data = $misc->getDatabaseAccessor();
115 115
 
116
-        $cnPre = function (&$rowdata) use ($data) {
116
+        $cnPre = function(&$rowdata) use ($data) {
117 117
             if (is_null($rowdata->fields['consrc'])) {
118 118
                 $atts                           = $data->getAttributeNames($_REQUEST['table'], explode(' ', $rowdata->fields['indkey']));
119 119
                 $rowdata->fields['+definition'] = ($rowdata->fields['contype'] == 'u' ? 'UNIQUE (' : 'PRIMARY KEY (') . join(',', $atts) . ')';
Please login to merge, or discard this patch.
src/controllers/TblpropertiesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $lang = $this->lang;
99 99
         $data = $misc->getDatabaseAccessor();
100 100
 
101
-        $attPre = function (&$rowdata, $actions) use ($data) {
101
+        $attPre = function(&$rowdata, $actions) use ($data) {
102 102
             $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']);
103 103
             $attname                  = $rowdata->fields['attname'];
104 104
             $table                    = $_REQUEST['table'];
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             return $actions;
112 112
         };
113 113
 
114
-        $cstrRender = function ($s, $p) use ($misc, $data) {
114
+        $cstrRender = function($s, $p) use ($misc, $data) {
115 115
             $str = '';
116 116
             foreach ($p['keys'] as $k => $c) {
117 117
                 if (is_null($p['keys'][$k]['consrc'])) {
Please login to merge, or discard this patch.
src/database/Postgres84.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
     namespace PHPPgAdmin\Database;
4 4
 
5 5
 /**
6
-     * PostgreSQL 8.4 support
7
-     *
8
-     * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $
9
-     */
6
+ * PostgreSQL 8.4 support
7
+ *
8
+ * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $
9
+ */
10 10
 
11 11
     class Postgres84 extends Postgres90
12 12
     {
Please login to merge, or discard this patch.
src/database/Postgres80.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
     namespace PHPPgAdmin\Database;
4 4
 
5 5
 /**
6
-     * PostgreSQL 8.0 support
7
-     *
8
-     * $Id: Postgres80.php,v 1.28 2007/12/12 04:11:10 xzilla Exp $
9
-     */
6
+ * PostgreSQL 8.0 support
7
+ *
8
+ * $Id: Postgres80.php,v 1.28 2007/12/12 04:11:10 xzilla Exp $
9
+ */
10 10
 
11 11
     class Postgres80 extends Postgres81
12 12
     {
Please login to merge, or discard this patch.
src/database/Postgres82.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/database/Postgres74.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/lib.inc.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.