@@ -5,16 +5,16 @@ |
||
| 5 | 5 | |
| 6 | 6 | class VerifyCsrfToken extends BaseVerifier { |
| 7 | 7 | |
| 8 | - /** |
|
| 9 | - * Handle an incoming request. |
|
| 10 | - * |
|
| 11 | - * @param \Illuminate\Http\Request $request |
|
| 12 | - * @param \Closure $next |
|
| 13 | - * @return mixed |
|
| 14 | - */ |
|
| 15 | - public function handle($request, Closure $next) |
|
| 16 | - { |
|
| 17 | - return parent::handle($request, $next); |
|
| 18 | - } |
|
| 8 | + /** |
|
| 9 | + * Handle an incoming request. |
|
| 10 | + * |
|
| 11 | + * @param \Illuminate\Http\Request $request |
|
| 12 | + * @param \Closure $next |
|
| 13 | + * @return mixed |
|
| 14 | + */ |
|
| 15 | + public function handle($request, Closure $next) |
|
| 16 | + { |
|
| 17 | + return parent::handle($request, $next); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | 20 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | public function scopeByElement($query, Model $model) |
| 55 | 55 | { |
| 56 | 56 | return $query->where($this->getTable() . '.' . $this->getModelColumn(), '=', $model->getTable()) |
| 57 | - ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey()); |
|
| 57 | + ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey()); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | } |
@@ -53,8 +53,8 @@ |
||
| 53 | 53 | |
| 54 | 54 | public function scopeByElement($query, Model $model) |
| 55 | 55 | { |
| 56 | - return $query->where($this->getTable() . '.' . $this->getModelColumn(), '=', $model->getTable()) |
|
| 57 | - ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey()); |
|
| 56 | + return $query->where($this->getTable().'.'.$this->getModelColumn(), '=', $model->getTable()) |
|
| 57 | + ->where($this->getTable().'.'.$this->getIdSourceColumn(), '=', $model->getKey()); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | |
| 37 | 37 | |
| 38 | - if($model->email != ''){ |
|
| 38 | + if ($model->email != '') { |
|
| 39 | 39 | $model->unlock(); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use Illuminate\Database\Eloquent\Scope; |
| 6 | 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | 7 | |
| 8 | -class StatusScope implements Scope{ |
|
| 8 | +class StatusScope implements Scope { |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * All of the extensions to be added to the builder. |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: mfrancois |
|
| 5 | - * Date: 6/02/2015 |
|
| 6 | - * Time: 4:37 PM |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: mfrancois |
|
| 5 | + * Date: 6/02/2015 |
|
| 6 | + * Time: 4:37 PM |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Distilleries\Expendable\Exporter; |
| 10 | 10 | |
@@ -31,10 +31,10 @@ discard block |
||
| 31 | 31 | $iso = app()->getLocale(); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - $builder->whereExists(function ($query) use ($model, $iso) { |
|
| 34 | + $builder->whereExists(function($query) use ($model, $iso) { |
|
| 35 | 35 | $query->select(\DB::raw(1)) |
| 36 | 36 | ->from($model->getQualifiedTable()) |
| 37 | - ->whereRaw($model->getTable() . '.' . $model->getKeyName() . ' = ' . $model->getQualifiedIdElementColumn()) |
|
| 37 | + ->whereRaw($model->getTable().'.'.$model->getKeyName().' = '.$model->getQualifiedIdElementColumn()) |
|
| 38 | 38 | ->where($model->getQualifiedIsoColumn(), $iso) |
| 39 | 39 | ->where($model->getQualifiedModelColumn(), $model->getTable()); |
| 40 | 40 | }); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | protected function addWithoutTranslation(Builder $builder) |
| 68 | 68 | { |
| 69 | - $builder->macro('withoutTranslation', function (Builder $builder) { |
|
| 69 | + $builder->macro('withoutTranslation', function(Builder $builder) { |
|
| 70 | 70 | return $builder->withoutGlobalScope($this); |
| 71 | 71 | }); |
| 72 | 72 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $translation = new Translation; |
| 39 | 39 | |
| 40 | - return $translation->getTable() . '.' . $translation->getIsoColumn(); |
|
| 40 | + return $translation->getTable().'.'.$translation->getIsoColumn(); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | $translation = new Translation; |
| 51 | 51 | |
| 52 | - return $translation->getTable() . '.' . $translation->getIdElementColumn(); |
|
| 52 | + return $translation->getTable().'.'.$translation->getIdElementColumn(); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | $translation = new Translation; |
| 63 | 63 | |
| 64 | - return $translation->getTable() . '.' . $translation->getModelColumn(); |
|
| 64 | + return $translation->getTable().'.'.$translation->getModelColumn(); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | $translation = new Translation; |
| 75 | 75 | |
| 76 | - return $translation->getTable() . '.' . $translation->getIdSourceColumn(); |
|
| 76 | + return $translation->getTable().'.'.$translation->getIdSourceColumn(); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -59,12 +59,12 @@ |
||
| 59 | 59 | if (!$result->isEmpty()) |
| 60 | 60 | { |
| 61 | 61 | $exporter = app($data['type']); |
| 62 | - $file = $exporter->export($result->toArray(), $data['range']['start'] . ' ' . $data['range']['end']); |
|
| 62 | + $file = $exporter->export($result->toArray(), $data['range']['start'].' '.$data['range']['end']); |
|
| 63 | 63 | |
| 64 | 64 | return $file; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - return redirect()->to(action('\\' . get_class($this) . '@getExport')); |
|
| 67 | + return redirect()->to(action('\\'.get_class($this).'@getExport')); |
|
| 68 | 68 | |
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | \ No newline at end of file |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | return redirect()->back()->with(Message::WARNING, [trans('expendable::errors.file_not_found')]); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - $contract = ucfirst(app('files')->extension($file)) . 'ImporterContract'; |
|
| 60 | + $contract = ucfirst(app('files')->extension($file)).'ImporterContract'; |
|
| 61 | 61 | $exporter = app($contract); |
| 62 | 62 | $data = $exporter->getArrayDataFromFile($file); |
| 63 | 63 | |