Completed
Pull Request — master (#28)
by Michal
02:28
created
app/Drivers/MySql/Forms/MySqlDatabaseForm.php 1 patch
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.
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 1 patch
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.
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 1 patch
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.
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/bootstrap.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,30 +5,30 @@
 block discarded – undo
5 5
 use RadekDostal\NetteComponents\DateTimePicker\TbDatePicker;
6 6
 use RadekDostal\NetteComponents\DateTimePicker\TbDateTimePicker;
7 7
 
8
-require __DIR__ . '/../vendor/autoload.php';
8
+require __DIR__.'/../vendor/autoload.php';
9 9
 
10 10
 umask(0);
11 11
 
12 12
 $configurator = new Configurator();
13 13
 
14 14
 $host = filter_input(INPUT_SERVER, 'HTTP_HOST');
15
-$debug = (bool)preg_match('/localhost|devel/', $host);
15
+$debug = (bool) preg_match('/localhost|devel/', $host);
16 16
 
17 17
 $configurator->setDebugMode($debug);
18
-$configurator->enableDebugger(__DIR__ . '/../log');
19
-$configurator->setTempDirectory(__DIR__ . '/../temp');
18
+$configurator->enableDebugger(__DIR__.'/../log');
19
+$configurator->setTempDirectory(__DIR__.'/../temp');
20 20
 
21
-$configurator->addConfig(__DIR__ . '/config/config.neon');
21
+$configurator->addConfig(__DIR__.'/config/config.neon');
22 22
 $container = $configurator->createContainer();
23 23
 
24
-Form::extensionMethod('addDatePicker', function (Form $form, $name, $label, $maxLength = null) {
24
+Form::extensionMethod('addDatePicker', function(Form $form, $name, $label, $maxLength = null) {
25 25
     $datePicker = new TbDatePicker($label, $maxLength);
26 26
     $datePicker->setFormat('Y-m-d');
27 27
     $datePicker->setAttribute('class', 'datepicker');
28 28
     return $form[$name] = $datePicker;
29 29
 });
30 30
 
31
-Form::extensionMethod('addDateTimePicker', function (Form $form, $name, $label, $maxLength = null) {
31
+Form::extensionMethod('addDateTimePicker', function(Form $form, $name, $label, $maxLength = null) {
32 32
     $dateTimePicker = new TbDateTimePicker($label, $maxLength);
33 33
     $dateTimePicker->setFormat('Y-m-d H:i:s');
34 34
     $dateTimePicker->setAttribute('class', 'datetimepicker');
Please login to merge, or discard this patch.
app/Core/Utils/Multisort.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
         foreach ($data as $key => $row) {
14 14
             foreach ($row as $column => $value) {
15
-                $col = '__' . $column . '__';
15
+                $col = '__'.$column.'__';
16 16
                 if (!isset($$col)) {
17 17
                     $$col = [];
18 18
                 }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $args = [];
24 24
         foreach ($sorting as $sort) {
25 25
             foreach ($sort as $key => $direction) {
26
-                $col = '__' . $key . '__';
26
+                $col = '__'.$key.'__';
27 27
                 if (!isset($$col)) {
28 28
                     continue;
29 29
                 }
Please login to merge, or discard this patch.