Passed
Push — master ( 4ecc96...8ed46d )
by Hesham
04:35 queued 01:29
created
src/config/lumener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 return [
3 3
   "name" => "Lumener",
4 4
   "auto_login" => false,
5
-  "logout_cooldown" => 10,  // Time until auto login is enabled again (seconds)
5
+  "logout_cooldown" => 10, // Time until auto login is enabled again (seconds)
6 6
   // "logout_redirect" => "admin/dashboard",
7 7
   "storage" => base_path('storage/lumener'),
8 8
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     // This url format supports v4.2.5+
32 32
     "source" => "https://github.com/vrana/adminer/releases/download/v{version}/adminer-{version}.php",
33 33
     // These functions will be replaced by adminer_{name} to avoid conflicts
34
-    "rename_list" => ['redirect','cookie','view', 'exit', 'ob_flush'],
34
+    "rename_list" => ['redirect', 'cookie', 'view', 'exit', 'ob_flush'],
35 35
     // version can be exact (e.g. v4.7.1) if version_type is NOT "url"
36 36
     "version" => "https://api.github.com/repos/vrana/adminer/releases/latest",
37 37
     "version_type" => "url",
Please login to merge, or discard this patch.
src/logic/adminer_object.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             return config('lumener.name', 'Lumener');
46 46
         }
47 47
 
48
-        public function permanentLogin($j=false)
48
+        public function permanentLogin($j = false)
49 49
         {
50 50
             // key used for permanent login
51 51
             $key = config('lumener.adminer_perma_key');
Please login to merge, or discard this patch.
src/console/PluginCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             } else {
80 80
                 $this->error('Lumener: Could not retrieve plugin file. '
81 81
                 .
82
-                ($response ? "\r\n[{$response->getStatusCode()}] {$response->getReasonPhrase()} {(string)$response->getBody()}" : "Connection Failed.\r\n" . ShellHelper::$LastError));
82
+                ($response ? "\r\n[{$response->getStatusCode()}] {$response->getReasonPhrase()} {(string)$response->getBody()}" : "Connection Failed.\r\n".ShellHelper::$LastError));
83 83
                 return;
84 84
             }
85 85
         }
Please login to merge, or discard this patch.
src/console/StylizeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             } else {
71 71
                 $this->error('Lumener: Could not retrieve theme file. '
72 72
                 .
73
-                ($response ? "\r\n[{$response->getStatusCode()}] {$response->getReasonPhrase()} {(string)$response->getBody()}" : "Connection Failed.\r\n" . ShellHelper::$LastError));
73
+                ($response ? "\r\n[{$response->getStatusCode()}] {$response->getReasonPhrase()} {(string)$response->getBody()}" : "Connection Failed.\r\n".ShellHelper::$LastError));
74 74
                 return;
75 75
             }
76 76
         } else {
Please login to merge, or discard this patch.
src/helpers/ShellHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      *
16 16
      * @return bool|mixed|\Psr\Http\Message\ResponseInterface
17 17
      */
18
-    public static function get($uri, $params=[])
18
+    public static function get($uri, $params = [])
19 19
     {
20 20
         try {
21 21
             $client = new Client(); //GuzzleHttp\Client
Please login to merge, or discard this patch.
src/controllers/LumenerController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function __call($method, $params)
32 32
     {
33 33
         if (strncasecmp($method, "get", 3) === 0) {
34
-            $var = preg_replace_callback('/[A-Z]/', function ($c) {
34
+            $var = preg_replace_callback('/[A-Z]/', function($c) {
35 35
                 return '_'.strtolower($c[0]);
36 36
             }, lcfirst(substr($method, 3)));
37 37
             return $this->$var;
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         return $content;
137 137
     }
138 138
 
139
-    private function _runGetBuffer($files, $allowed_errors=[E_WARNING])
139
+    private function _runGetBuffer($files, $allowed_errors = [E_WARNING])
140 140
     {
141 141
         // Require files
142 142
         ob_implicit_flush(0);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         }
154 154
         $content = "";
155 155
         while ($level = ob_get_clean()) {
156
-            $content = $level . $content;
156
+            $content = $level.$content;
157 157
         }
158 158
         return $content;
159 159
     }
Please login to merge, or discard this patch.