Completed
Push — master ( 6d1120...3e38c4 )
by Michal
10s
created
app/presenters/DefaultPresenter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             'svg' => 'image/svg+xml',
45 45
             'otf' => 'application/x-font-opentype',
46 46
         ];
47
-        $path = __DIR__ . '/../../www/' . $file;
47
+        $path = __DIR__.'/../../www/'.$file;
48 48
         $extension = pathinfo($path, PATHINFO_EXTENSION);
49 49
         $contentType = isset($contentTypes[$extension]) ? $contentTypes[$extension] : 'text/plain';
50 50
         $httpResponse->setContentType($contentType);
Please login to merge, or discard this patch.
app/Core/Translator/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             return $message;
51 51
         }
52 52
         foreach ($params as $key => $value) {
53
-            $message = str_replace('%' . $key . '%', $value, $message);
53
+            $message = str_replace('%'.$key.'%', $value, $message);
54 54
         }
55 55
         return $message;
56 56
     }
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
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $databaseForm->addFieldsToForm($form);
44 44
         $form->addSubmit('save', 'Save');
45 45
         $form->onSuccess[] = [$databaseForm, 'submit'];
46
-        $form->onSuccess[] = function () {
46
+        $form->onSuccess[] = function() {
47 47
             $this->presenter->redirect('Database:default', $this->driver->type());
48 48
         };
49 49
         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
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $itemForm->addFieldsToForm($form);
53 53
         $form->addSubmit('save', 'Save');
54 54
         $form->onSuccess[] = [$itemForm, 'submit'];
55
-        $form->onSuccess[] = function () {
55
+        $form->onSuccess[] = function() {
56 56
             $this->presenter->redirect('Item:default', $this->driver->type(), $this->database, $this->type, $this->table);
57 57
         };
58 58
         return $form;
Please login to merge, or discard this patch.
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 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/MySql/MySqlDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if (strpos($credentials['server'], ':') !== false) {
43 43
             list($host, $port) = explode(':', $credentials['server'], 2);
44 44
         }
45
-        $dsn = 'mysql:;host=' . $host . ';port=' . $port . ';charset=utf8';
45
+        $dsn = 'mysql:;host='.$host.';port='.$port.';charset=utf8';
46 46
         try {
47 47
             $this->connection = new PDO($dsn, $credentials['user'], $credentials['password']);
48 48
         } catch (PDOException $e) {
Please login to merge, or discard this patch.