@@ -493,7 +493,7 @@ |
||
| 493 | 493 | |
| 494 | 494 | public function isSortableByWeight() |
| 495 | 495 | { |
| 496 | - return (bool) $this->getSortableWeightFieldName(); |
|
| 496 | + return (bool)$this->getSortableWeightFieldName(); |
|
| 497 | 497 | } |
| 498 | 498 | |
| 499 | 499 | public function isSortableByWeightActive() |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $query->where( |
| 43 | 43 | $this->field()->getRelationTitleField(), |
| 44 | 44 | $sign, |
| 45 | - $leftPart . $value . $rightPart |
|
| 45 | + $leftPart.$value.$rightPart |
|
| 46 | 46 | ); |
| 47 | 47 | }); |
| 48 | 48 | return; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $query->where( |
| 52 | 52 | $this->field->name(), |
| 53 | 53 | $sign, |
| 54 | - $leftPart . $value . $rightPart |
|
| 54 | + $leftPart.$value.$rightPart |
|
| 55 | 55 | ); |
| 56 | 56 | } |
| 57 | 57 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $view .= '_range'; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - return view('jarboe::crud.filters.'. $view, [ |
|
| 28 | + return view('jarboe::crud.filters.'.$view, [ |
|
| 29 | 29 | 'filter' => $this, |
| 30 | 30 | ])->render(); |
| 31 | 31 | } |
@@ -38,10 +38,10 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | if ($this->isRange()) { |
| 41 | - $model->when($value['from'] ?? null, function ($query, $value) { |
|
| 41 | + $model->when($value['from'] ?? null, function($query, $value) { |
|
| 42 | 42 | return $query->whereDate($this->field()->name(), '>=', $value); |
| 43 | 43 | }); |
| 44 | - $model->when($value['to'] ?? null, function ($query, $value) { |
|
| 44 | + $model->when($value['to'] ?? null, function($query, $value) { |
|
| 45 | 45 | return $query->whereDate($this->field()->name(), '<=', $value); |
| 46 | 46 | }); |
| 47 | 47 | return; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $model->where( |
| 41 | 41 | $this->field()->name(), |
| 42 | 42 | $sign, |
| 43 | - $leftPart . $this->value() . $rightPart |
|
| 43 | + $leftPart.$this->value().$rightPart |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | \ No newline at end of file |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $query->where( |
| 44 | 44 | $this->field()->getRelationTitleField(), |
| 45 | 45 | $sign, |
| 46 | - $leftPart . $value . $rightPart |
|
| 46 | + $leftPart.$value.$rightPart |
|
| 47 | 47 | ); |
| 48 | 48 | }); |
| 49 | 49 | return; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $query->where( |
| 53 | 53 | $this->field()->name(), |
| 54 | 54 | $sign, |
| 55 | - $leftPart . $value . $rightPart |
|
| 55 | + $leftPart.$value.$rightPart |
|
| 56 | 56 | ); |
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | \ No newline at end of file |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | public function getCurrentLocale($tableIdentifier) |
| 51 | 51 | { |
| 52 | - $key = sprintf('%s.%s.locale',self::PREFIX, $tableIdentifier); |
|
| 52 | + $key = sprintf('%s.%s.locale', self::PREFIX, $tableIdentifier); |
|
| 53 | 53 | |
| 54 | 54 | return session($key); |
| 55 | 55 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | { |
| 58 | 58 | $template = $this->isReadonly() ? 'readonly' : 'edit'; |
| 59 | 59 | |
| 60 | - return view('jarboe::crud.fields.file.'. $template, [ |
|
| 60 | + return view('jarboe::crud.fields.file.'.$template, [ |
|
| 61 | 61 | 'model' => $model, |
| 62 | 62 | 'field' => $this, |
| 63 | 63 | ])->render(); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $template = $this->isReadonly() ? 'readonly' : 'edit'; |
| 43 | 43 | |
| 44 | - return view('jarboe::crud.fields.number.'. $template, [ |
|
| 44 | + return view('jarboe::crud.fields.number.'.$template, [ |
|
| 45 | 45 | 'model' => $model, |
| 46 | 46 | 'field' => $this, |
| 47 | 47 | ])->render(); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $template = $this->isReadonly() ? 'readonly' : 'edit'; |
| 67 | 67 | |
| 68 | - return view('jarboe::crud.fields.time.'. $template, [ |
|
| 68 | + return view('jarboe::crud.fields.time.'.$template, [ |
|
| 69 | 69 | 'model' => $model, |
| 70 | 70 | 'field' => $this, |
| 71 | 71 | ])->render(); |