@@ -240,8 +240,9 @@ |
||
| 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 | } |
@@ -103,8 +103,9 @@ |
||
| 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 | |
@@ -126,8 +126,7 @@ |
||
| 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 | } |