@@ -29,11 +29,11 @@ discard block |
||
| 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 |
@@ -50,9 +50,9 @@ discard block |
||
| 50 | 50 | * server-side, there is no need to edit below this line. |
| 51 | 51 | */ |
| 52 | 52 | |
| 53 | -require( '../../../../examples/server_side/scripts/ssp.class.php' ); |
|
| 53 | +require('../../../../examples/server_side/scripts/ssp.class.php'); |
|
| 54 | 54 | |
| 55 | 55 | echo json_encode( |
| 56 | - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) |
|
| 56 | + SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns) |
|
| 57 | 57 | ); |
| 58 | 58 | |
@@ -46,16 +46,16 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | // Load & Publish views. |
| 49 | - $this->loadViewsFrom(__DIR__ . '/../Resources/views', $namespace); |
|
| 49 | + $this->loadViewsFrom(__DIR__.'/../Resources/views', $namespace); |
|
| 50 | 50 | $this->publishes([ |
| 51 | - __DIR__ . '/../Resources/views' => base_path('resources/views/vendor/' . $namespace), |
|
| 51 | + __DIR__.'/../Resources/views' => base_path('resources/views/vendor/'.$namespace), |
|
| 52 | 52 | ], 'views'); |
| 53 | 53 | |
| 54 | 54 | // Load translations. |
| 55 | - $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'dashboard'); |
|
| 55 | + $this->loadTranslationsFrom(__DIR__.'/../Resources/lang', 'dashboard'); |
|
| 56 | 56 | |
| 57 | 57 | // Publish config. |
| 58 | - $config = realpath(__DIR__ . '/../config.php'); |
|
| 58 | + $config = realpath(__DIR__.'/../config.php'); |
|
| 59 | 59 | |
| 60 | 60 | $this->mergeConfigFrom($config, 'laraflock.dashboard'); |
| 61 | 61 | |
@@ -65,11 +65,11 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | // Use package routes. |
| 67 | 67 | if (config('laraflock.dashboard.routes')) { |
| 68 | - include __DIR__ . '/../routes.php'; |
|
| 68 | + include __DIR__.'/../routes.php'; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | // Publish migrations. |
| 72 | - $migrations = realpath(__DIR__ . '/../Database/Migrations'); |
|
| 72 | + $migrations = realpath(__DIR__.'/../Database/Migrations'); |
|
| 73 | 73 | |
| 74 | 74 | $this->publishes([ |
| 75 | 75 | $migrations => database_path('/migrations'), |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | // Publish assets. |
| 79 | 79 | $this->publishes([ |
| 80 | - __DIR__ . '/../Resources/assets' => public_path('vendor/laraflock'), |
|
| 80 | + __DIR__.'/../Resources/assets' => public_path('vendor/laraflock'), |
|
| 81 | 81 | ], 'public'); |
| 82 | 82 | |
| 83 | 83 | // Setup interfaces. |
@@ -191,22 +191,22 @@ discard block |
||
| 191 | 191 | protected function setupConsoleCommands() |
| 192 | 192 | { |
| 193 | 193 | // Share dashboard:install command with the application. |
| 194 | - $this->app['dashboard::install'] = $this->app->share(function () { |
|
| 194 | + $this->app['dashboard::install'] = $this->app->share(function() { |
|
| 195 | 195 | return new InstallerCommand(); |
| 196 | 196 | }); |
| 197 | 197 | |
| 198 | 198 | // Share dashboard:setup command with the application. |
| 199 | - $this->app['dashboard::setup'] = $this->app->share(function () { |
|
| 199 | + $this->app['dashboard::setup'] = $this->app->share(function() { |
|
| 200 | 200 | return new SetupCommand(); |
| 201 | 201 | }); |
| 202 | 202 | |
| 203 | 203 | // Share dashboard:fresh command with the application. |
| 204 | - $this->app['dashboard::fresh'] = $this->app->share(function () { |
|
| 204 | + $this->app['dashboard::fresh'] = $this->app->share(function() { |
|
| 205 | 205 | return new FreshCommand(); |
| 206 | 206 | }); |
| 207 | 207 | |
| 208 | 208 | // Share dashboard:uninstall command with the application. |
| 209 | - $this->app['dashboard::uninstall'] = $this->app->share(function () { |
|
| 209 | + $this->app['dashboard::uninstall'] = $this->app->share(function() { |
|
| 210 | 210 | return new UninstallCommand(); |
| 211 | 211 | }); |
| 212 | 212 | |