@@ -45,11 +45,11 @@ |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function getModule($name) { |
| 48 | - if(isset($this->modules[$name])){ |
|
| 48 | + if (isset($this->modules[$name])) { |
|
| 49 | 49 | return $this->modules[$name]; |
| 50 | 50 | } |
| 51 | - else{ |
|
| 52 | - throw new \Exception("Module '". $name. "' not found"); |
|
| 51 | + else { |
|
| 52 | + throw new \Exception("Module '".$name."' not found"); |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | public function getModule($name) { |
| 48 | 48 | if(isset($this->modules[$name])){ |
| 49 | 49 | return $this->modules[$name]; |
| 50 | - } |
|
| 51 | - else{ |
|
| 50 | + } else{ |
|
| 52 | 51 | throw new \Exception("Module '". $name. "' not found"); |
| 53 | 52 | } |
| 54 | 53 | } |
@@ -93,8 +93,9 @@ |
||
| 93 | 93 | foreach ($moduleStructure as $column => $typeOptions) { |
| 94 | 94 | $type = TypeResolver::getType($this->name, $column, $typeOptions); |
| 95 | 95 | $this->columnsData[$column] = $type; |
| 96 | - if ($type->isDisplay()) |
|
| 97 | - $this->displayColumns[] = $type; |
|
| 96 | + if ($type->isDisplay()) { |
|
| 97 | + $this->displayColumns[] = $type; |
|
| 98 | + } |
|
| 98 | 99 | } |
| 99 | 100 | |
| 100 | 101 | if (sizeof($this->displayColumns) == 0) { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | 'xs' => '200x200', |
| 26 | 26 | ], |
| 27 | 27 | 'events' => [ |
| 28 | - 'created','updated','deleted' |
|
| 28 | + 'created', 'updated', 'deleted' |
|
| 29 | 29 | ], |
| 30 | 30 | 'seed_rows' => 25, |
| 31 | 31 | 'listing_per_page' => 20, |