Applied latest StyleCI changes
This commit is contained in:
parent
921e25e7e1
commit
f2b1d2e1e7
|
@ -42,7 +42,7 @@ class TagRepo
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($searchTerm) {
|
if ($searchTerm) {
|
||||||
$query->where(function(Builder $query) use ($searchTerm) {
|
$query->where(function (Builder $query) use ($searchTerm) {
|
||||||
$query->where('name', 'like', '%' . $searchTerm . '%')
|
$query->where('name', 'like', '%' . $searchTerm . '%')
|
||||||
->orWhere('value', 'like', '%' . $searchTerm . '%');
|
->orWhere('value', 'like', '%' . $searchTerm . '%');
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,6 +11,7 @@ class Ldap
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Connect to an LDAP server.
|
* Connect to an LDAP server.
|
||||||
|
*
|
||||||
* @return resource
|
* @return resource
|
||||||
*/
|
*/
|
||||||
public function connect(string $hostName, int $port)
|
public function connect(string $hostName, int $port)
|
||||||
|
|
|
@ -22,7 +22,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
* @property string $html
|
* @property string $html
|
||||||
* @property int $revision_number
|
* @property int $revision_number
|
||||||
* @property Page $page
|
* @property Page $page
|
||||||
*
|
|
||||||
* @property-read ?User $createdBy
|
* @property-read ?User $createdBy
|
||||||
*/
|
*/
|
||||||
class PageRevision extends Model
|
class PageRevision extends Model
|
||||||
|
|
|
@ -39,6 +39,7 @@ class SlugGenerator
|
||||||
/**
|
/**
|
||||||
* Check if a slug is already in-use for this
|
* Check if a slug is already in-use for this
|
||||||
* type of model within the same parent.
|
* type of model within the same parent.
|
||||||
|
*
|
||||||
* @param Sluggable&Model $model
|
* @param Sluggable&Model $model
|
||||||
*/
|
*/
|
||||||
protected function slugInUse(string $slug, Sluggable $model): bool
|
protected function slugInUse(string $slug, Sluggable $model): bool
|
||||||
|
|
|
@ -29,7 +29,7 @@ class TagController extends Controller
|
||||||
->paginate(50)
|
->paginate(50)
|
||||||
->appends(array_filter([
|
->appends(array_filter([
|
||||||
'search' => $search,
|
'search' => $search,
|
||||||
'name' => $nameFilter
|
'name' => $nameFilter,
|
||||||
]));
|
]));
|
||||||
|
|
||||||
return view('tags.index', [
|
return view('tags.index', [
|
||||||
|
|
|
@ -9,6 +9,7 @@ class Model extends EloquentModel
|
||||||
/**
|
/**
|
||||||
* Provides public access to get the raw attribute value from the model.
|
* Provides public access to get the raw attribute value from the model.
|
||||||
* Used in areas where no mutations are required but performance is critical.
|
* Used in areas where no mutations are required but performance is critical.
|
||||||
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getRawAttribute(string $key)
|
public function getRawAttribute(string $key)
|
||||||
|
|
Loading…
Reference in New Issue