Completed
Push — master ( fa1d20...599242 )
by Joao
02:54
created
src/Traits/Creation.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,9 @@
 block discarded – undo
25 25
         // create a event to happen on saving
26 26
         static::saving(function($table)  {
27 27
 
28
-            if ($user = Sentinel::check())
29
-                $table->created_by = Sentinel::getUser()->id;
28
+            if ($user = Sentinel::check()) {
29
+                            $table->created_by = Sentinel::getUser()->id;
30
+            }
30 31
 
31 32
         });
32 33
 
Please login to merge, or discard this patch.
src/Traits/CaptchaTrait.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,11 @@
 block discarded – undo
15 15
         $recaptcha = new ReCaptcha($secret);
16 16
         $resp = $recaptcha->verify($response, $remoteip);
17 17
 
18
-        if ($resp->isSuccess())
19
-            return true;
20
-        else
21
-            return false;
18
+        if ($resp->isSuccess()) {
19
+                    return true;
20
+        } else {
21
+                    return false;
22
+        }
22 23
     }
23 24
 
24 25
 }
25 26
\ No newline at end of file
Please login to merge, or discard this patch.
src/Database/Blueprint.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,8 +106,9 @@
 block discarded – undo
106 106
         // If no name was specified for this index, we will create one using a basic
107 107
         // convention of the table name, followed by the columns, followed by an
108 108
         // index type, such as primary or index, which makes the index unique.
109
-        if (is_null($index))
110
-            $index = $this->createIndexName($type, $columns);
109
+        if (is_null($index)) {
110
+                    $index = $this->createIndexName($type, $columns);
111
+        }
111 112
         return $this->addCommand($type, compact('index', 'columns', 'length'));
112 113
     }
113 114
 
Please login to merge, or discard this patch.
src/Database/MySqlGrammar.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,8 +122,7 @@
 block discarded – undo
122 122
                 if ( isset($command->length) )
123 123
                 {
124 124
                     $column .= "({$command->length})";
125
-                }
126
-                elseif ( 'string' == $blueprintColumn->type && $blueprintColumn->length > 255 )
125
+                } elseif ( 'string' == $blueprintColumn->type && $blueprintColumn->length > 255 )
127 126
                 {
128 127
                     $column .= '(255)';
129 128
                 }
Please login to merge, or discard this patch.