Passed
Pull Request — master (#73)
by Felipe
06:17 queued 02:31
created
index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/classes/PluginManager.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
          */
Please login to merge, or discard this patch.
src/help/PostgresDoc96.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/help/PostgresDoc84.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.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)
Please login to merge, or discard this patch.
src/help/PostgresDoc80.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.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)
Please login to merge, or discard this patch.
src/help/PostgresDoc90.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.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)
Please login to merge, or discard this patch.
src/help/PostgresDoc91.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.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)
Please login to merge, or discard this patch.
src/help/PostgresDoc81.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.1 documentation
7
-     *
8
-     * $Id: PostgresDoc81.php,v 1.3 2006/12/28 04:26:55 xzilla Exp $
9
-     */
6
+ * Help links for PostgreSQL 8.1 documentation
7
+ *
8
+ * $Id: PostgresDoc81.php,v 1.3 2006/12/28 04:26:55 xzilla Exp $
9
+ */
10 10
     class PostgresDoc81 extends PostgresDoc80
11 11
     {
12 12
         public function __construct($conf, $major_version)
Please login to merge, or discard this patch.
src/help/PostgresDoc83.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.3 documentation
7
-     *
8
-     * $Id: PostgresDoc83.php,v 1.3 2008/03/17 21:35:48 ioguix Exp $
9
-     */
6
+ * Help links for PostgreSQL 8.3 documentation
7
+ *
8
+ * $Id: PostgresDoc83.php,v 1.3 2008/03/17 21:35:48 ioguix Exp $
9
+ */
10 10
     class PostgresDoc83 extends PostgresDoc82
11 11
     {
12 12
         public function __construct($conf, $major_version)
Please login to merge, or discard this patch.