Completed
Pull Request — master (#18)
by Michal
02:26
created
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
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 
16 16
     private $member;
17 17
 
18
+    /**
19
+     * @param string $key
20
+     */
18 21
     public function __construct(RedisProxy $connection, $key, $member)
19 22
     {
20 23
         $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/DatabaseSelect/DatabaseSelectControl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $this->template->driver = $this->driver;
30 30
         $this->template->actualDatabase = $this->database;
31
-        $this->template->setFile(__DIR__ . '/default.latte');
31
+        $this->template->setFile(__DIR__.'/default.latte');
32 32
         $this->template->render();
33 33
     }
34 34
 
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
         sort($databases);
39 39
         $form = new Form();
40 40
         $form->setRenderer(new BootstrapVerticalRenderer());
41
-        $form->addSelect('database', $this->translator->translate($this->driver->type() . '.database_select_control.database.label'), array_combine($databases, $databases))
42
-            ->setPrompt($this->translator->translate($this->driver->type() . '.database_select_control.database.prompt'))
43
-            ->setAttribute('onchange', 'window.location = \'' . $this->presenter->link('Table:default', $this->driver->type()) . '&database=\' + this.value')
41
+        $form->addSelect('database', $this->translator->translate($this->driver->type().'.database_select_control.database.label'), array_combine($databases, $databases))
42
+            ->setPrompt($this->translator->translate($this->driver->type().'.database_select_control.database.prompt'))
43
+            ->setAttribute('onchange', 'window.location = \''.$this->presenter->link('Table:default', $this->driver->type()).'&database=\' + this.value')
44 44
             ->setDefaultValue($this->database);
45 45
         return $form;
46 46
     }
Please login to merge, or discard this patch.
www/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$container = require __DIR__ . '/../app/bootstrap.php';
3
+$container = require __DIR__.'/../app/bootstrap.php';
4 4
 
5 5
 $container->getService('application')->run();
Please login to merge, or discard this patch.
app/Drivers/RabbitMQ/Forms/RabbitMQMessageForm.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
     private $queue;
15 15
 
16
+    /**
17
+     * @param string $queue
18
+     */
16 19
     public function __construct(AMQPStreamConnection $connection, $queue = null)
17 20
     {
18 21
         $this->connection = $connection;
Please login to merge, or discard this patch.
app/Drivers/Redis/Forms/RedisEditSetForm.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 
16 16
     private $member;
17 17
 
18
+    /**
19
+     * @param string $key
20
+     */
18 21
     public function __construct(RedisProxy $connection, $key, $member)
19 22
     {
20 23
         $this->connection = $connection;
Please login to merge, or discard this patch.
app/Core/Forms/DatabaseForm/DatabaseForm.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/Forms/ItemForm.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.