Completed
Push — master ( dc977e...b761a6 )
by Joao
02:33
created
src/Models/BaseUser.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,8 +240,9 @@
 block discarded – undo
240 240
     {
241 241
         $results = $this->belongsToMany('App\Menu', 'Menu_User', 'user', 'menu')->withTimestamps()->where('pos', $pos)->get();
242 242
 
243
-        foreach ($this->groups as $group)
244
-            $results->merge($group->menus->where('pos', $pos));
243
+        foreach ($this->groups as $group) {
244
+                    $results->merge($group->menus->where('pos', $pos));
245
+        }
245 246
 
246 247
         return $results;
247 248
     }
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
@@ -103,8 +103,9 @@
 block discarded – undo
103 103
         // If no name was specified for this index, we will create one using a basic
104 104
         // convention of the table name, followed by the columns, followed by an
105 105
         // index type, such as primary or index, which makes the index unique.
106
-        if (is_null($index))
107
-            $index = $this->createIndexName($type, $columns);
106
+        if (is_null($index)) {
107
+                    $index = $this->createIndexName($type, $columns);
108
+        }
108 109
         return $this->addCommand($type, compact('index', 'columns', 'length'));
109 110
     }
110 111
 
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
@@ -126,8 +126,7 @@
 block discarded – undo
126 126
                 if ( isset($command->length) )
127 127
                 {
128 128
                     $column .= "({$command->length})";
129
-                }
130
-                elseif ( 'string' == $blueprintColumn->type && $blueprintColumn->length > 255 )
129
+                } elseif ( 'string' == $blueprintColumn->type && $blueprintColumn->length > 255 )
131 130
                 {
132 131
                     $column .= '(255)';
133 132
                 }
Please login to merge, or discard this patch.