Completed
Pull Request — master (#30)
by Michal
06:38 queued 01:51
created
app/Core/Forms/TableForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $tableForm->addFieldsToForm($form);
50 50
         $form->addSubmit('save', 'Save');
51 51
         $form->onSuccess[] = [$tableForm, 'submit'];
52
-        $form->onSuccess[] = function () {
52
+        $form->onSuccess[] = function() {
53 53
             $this->presenter->redirect('Table:default', $this->driver->type(), $this->database);
54 54
         };
55 55
         return $form;
Please login to merge, or discard this patch.
app/Core/Driver/AbstractDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     public function name()
36 36
     {
37
-        return $this->type() . '.name';
37
+        return $this->type().'.name';
38 38
     }
39 39
 
40 40
     /**
Please login to merge, or discard this patch.
app/Drivers/Memcache/MemcacheDataManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             return $count;
65 65
         }
66 66
 
67
-        $stats = $this->connection->getExtendedStats('cachedump', (int)$table);
67
+        $stats = $this->connection->getExtendedStats('cachedump', (int) $table);
68 68
         $keys = isset($stats[$this->database]) ? $stats[$this->database] : [];
69 69
         return count($keys);
70 70
     }
Please login to merge, or discard this patch.
app/Drivers/MySql/Forms/MySqlDatabaseForm.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@
 block discarded – undo
47 47
     public function submit(Form $form, ArrayHash $values)
48 48
     {
49 49
         if ($this->database) {
50
-            $query = 'ALTER DATABASE ' . $this->database;
50
+            $query = 'ALTER DATABASE '.$this->database;
51 51
         } else {
52
-            $query = 'CREATE DATABASE ' . $values['name'];
52
+            $query = 'CREATE DATABASE '.$values['name'];
53 53
         }
54 54
         if ($values['charset']) {
55
-            $query .= ' CHARACTER SET ' . $values['charset'];
55
+            $query .= ' CHARACTER SET '.$values['charset'];
56 56
             if ($values['collation']) {
57
-                $query .= ' COLLATE ' . $values['collation'];
57
+                $query .= ' COLLATE '.$values['collation'];
58 58
             }
59 59
         }
60 60
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
     private $database;
15 15
 
16
+    /**
17
+     * @param string|null $database
18
+     */
16 19
     public function __construct(PDO $pdo, $database)
17 20
     {
18 21
         $this->pdo = $pdo;
Please login to merge, or discard this patch.
app/Drivers/Redis/Forms/RedisCreateHashForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function submit(Form $form, ArrayHash $values)
30 30
     {
31 31
         if ($this->connection->hlen($values['key']) > 0) {
32
-            $form->addError('Key "' . $values['key'] . '" already exists');
32
+            $form->addError('Key "'.$values['key'].'" already exists');
33 33
             return;
34 34
         }
35 35
         $this->connection->hset($values['key'], $values['field'], $values['value']);
Please login to merge, or discard this patch.
app/Drivers/Redis/Forms/RedisRenameHashForm.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function submit(Form $form, ArrayHash $values)
33 33
     {
34 34
         if (!$this->connection->rename($this->key, $values['new_key'])) {
35
-            $form->addError('Key "' . $this->key . '" doesn\'t exist');
35
+            $form->addError('Key "'.$this->key.'" doesn\'t exist');
36 36
             return;
37 37
         }
38 38
     }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
     private $key;
15 15
 
16
+    /**
17
+     * @param string $key
18
+     */
16 19
     public function __construct(RedisProxy $connection, $key)
17 20
     {
18 21
         $this->connection = $connection;
Please login to merge, or discard this patch.
app/components/VisualPaginator/VisualPaginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
         $this->template->steps = $steps;
71 71
         $this->template->paginator = $paginator;
72
-        $this->template->setFile(dirname(__FILE__) . '/' . $this->paginatorTemplate . '.latte');
72
+        $this->template->setFile(dirname(__FILE__).'/'.$this->paginatorTemplate.'.latte');
73 73
         $this->template->render();
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
app/components/TablesSideBar/TablesSideBarControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             $tables = [];
34 34
         }
35 35
         $this->template->tables = $tables;
36
-        $this->template->setFile(__DIR__ . '/default.latte');
36
+        $this->template->setFile(__DIR__.'/default.latte');
37 37
         $this->template->render();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
app/components/Breadcrumb/BreadcrumbControl.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $this->template->type = $this->type;
34 34
         $this->template->table = $this->table;
35 35
         $this->template->item = $this->item;
36
-        $this->template->setFile(__DIR__ . '/default.latte');
36
+        $this->template->setFile(__DIR__.'/default.latte');
37 37
         $this->template->render();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@
 block discarded – undo
18 18
 
19 19
     private $item;
20 20
 
21
+    /**
22
+     * @param string|null $driver
23
+     * @param string|null $databaseName
24
+     */
21 25
     public function __construct($driver, $database, $databaseName, $type, $table, $item)
22 26
     {
23 27
         parent::__construct();
Please login to merge, or discard this patch.