@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function renderAdd() |
| 72 | 72 | { |
| 73 | - return view($this->viewpath.'.add', $this->viewData()); |
|
| 73 | + return view($this->viewpath . '.add', $this->viewData()); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function renderEdit() |
| 82 | 82 | { |
| 83 | - return view($this->viewpath.'.edit', $this->viewData()); |
|
| 83 | + return view($this->viewpath . '.edit', $this->viewData()); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | public function renderClone() |
| 92 | 92 | { |
| 93 | - if (view()->exists($this->viewpath.'.clone')) { |
|
| 94 | - view($this->viewpath.'.clone', $this->viewData()); |
|
| 93 | + if (view()->exists($this->viewpath . '.clone')) { |
|
| 94 | + view($this->viewpath . '.clone', $this->viewData()); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - return view($this->viewpath.'.edit', $this->viewData()); |
|
| 97 | + return view($this->viewpath . '.edit', $this->viewData()); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function renderView() |
| 106 | 106 | { |
| 107 | - return view($this->viewpath.'.view', $this->viewData()); |
|
| 107 | + return view($this->viewpath . '.view', $this->viewData()); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -134,10 +134,10 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | public function getFieldOptions() |
| 136 | 136 | { |
| 137 | - if (method_exists($this->getModelManager(), $method = camel_case('get_'.$this->getAttribute().'_options'))) { |
|
| 137 | + if (method_exists($this->getModelManager(), $method = camel_case('get_' . $this->getAttribute() . '_options'))) { |
|
| 138 | 138 | // First check for a method of options based on getAttributeNameOptions() |
| 139 | 139 | $this->field['options'] = $this->getModelManager()->$method(); |
| 140 | - } elseif (isset($this->field['options']) && is_string($this->field['options']) && method_exists($this->getModelManager(), $method = camel_case('get_'.$this->field['options'].'_options'))) { |
|
| 140 | + } elseif (isset($this->field['options']) && is_string($this->field['options']) && method_exists($this->getModelManager(), $method = camel_case('get_' . $this->field['options'] . '_options'))) { |
|
| 141 | 141 | // Check if Options is a string and if so, check for a method |
| 142 | 142 | // of options based on getDefinedOptions() |
| 143 | 143 | $this->field['options'] = $this->getModelManager()->$method(); |
@@ -40,16 +40,16 @@ |
||
| 40 | 40 | return $this->view; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - if (view()->exists('admin.'.$this->urlPrefix().'.index')) { |
|
| 44 | - return 'admin.'.$this->urlPrefix().'.index'; |
|
| 43 | + if (view()->exists('admin.' . $this->urlPrefix() . '.index')) { |
|
| 44 | + return 'admin.' . $this->urlPrefix() . '.index'; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if (view()->exists('admin.'.$this->urlPrefix())) { |
|
| 48 | - return 'admin.'.$this->urlPrefix(); |
|
| 47 | + if (view()->exists('admin.' . $this->urlPrefix())) { |
|
| 48 | + return 'admin.' . $this->urlPrefix(); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - if (view()->exists('flare::'.$this->view)) { |
|
| 52 | - return 'flare::'.$this->view; |
|
| 51 | + if (view()->exists('flare::' . $this->view)) { |
|
| 52 | + return 'flare::' . $this->view; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | return parent::getView(); |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | // parameter represents the DataTables column identifier. In this case simple |
| 30 | 30 | // indexes |
| 31 | 31 | $columns = array( |
| 32 | - array('db' => 'id', 'dt' => 0), |
|
| 33 | - array('db' => 'firstname', 'dt' => 1), |
|
| 34 | - array('db' => 'surname', 'dt' => 2), |
|
| 35 | - array('db' => 'zip', 'dt' => 3), |
|
| 36 | - array('db' => 'country', 'dt' => 4), |
|
| 32 | + array('db' => 'id', 'dt' => 0), |
|
| 33 | + array('db' => 'firstname', 'dt' => 1), |
|
| 34 | + array('db' => 'surname', 'dt' => 2), |
|
| 35 | + array('db' => 'zip', 'dt' => 3), |
|
| 36 | + array('db' => 'country', 'dt' => 4), |
|
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | // SQL server connection information |