@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | */ |
| 174 | 174 | public static function doSearch(Request $request, Builder $builder, $searchables) /*:Builder*/ |
| 175 | 175 | { |
| 176 | - $builder->where(function (Builder $builder) use ($request, $searchables) { |
|
| 176 | + $builder->where(function(Builder $builder) use ($request, $searchables) { |
|
| 177 | 177 | if ($search = $request->input('search')) { |
| 178 | 178 | $keywords = explode(' ', trim($search)); |
| 179 | 179 | if ($searchables) { |
@@ -363,9 +363,9 @@ discard block |
||
| 363 | 363 | $interfaces = class_implements(self::class); |
| 364 | 364 | $base = (isset($interfaces[ISchoolFileUpload::class])) ? self::fileBasePath($request) : ''; |
| 365 | 365 | if ($base) { |
| 366 | - $base = trim($base, '/,\\') . '/'; |
|
| 366 | + $base = trim($base, '/,\\').'/'; |
|
| 367 | 367 | } |
| 368 | - $path = $request->$key->store('public/' . $base . $key); |
|
| 368 | + $path = $request->$key->store('public/'.$base.$key); |
|
| 369 | 369 | $path = str_replace('public/', 'storage/', $path); |
| 370 | 370 | |
| 371 | 371 | $path_url = asset($path); |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | $fields = self::getUniqueFields(); |
| 460 | 460 | foreach ($fields as $field) { |
| 461 | 461 | if (isset($rules[$field])) { |
| 462 | - $rules[$field] .= ',' . $id; |
|
| 462 | + $rules[$field] .= ','.$id; |
|
| 463 | 463 | } |
| 464 | 464 | } |
| 465 | 465 | return $rules; |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | trait SchoolFileUploadTrait |
| 14 | 14 | { |
| 15 | 15 | |
| 16 | - public static function fileBasePath(Request $request){ |
|
| 16 | + public static function fileBasePath(Request $request) { |
|
| 17 | 17 | $conf = session('client.configuration'); |
| 18 | 18 | //dd($conf->subdomain); |
| 19 | 19 | |
| 20 | - if($conf and !empty($conf->subdomain)){ |
|
| 20 | + if ($conf and !empty($conf->subdomain)) { |
|
| 21 | 21 | return "school/{$conf->subdomain}"; |
| 22 | 22 | } |
| 23 | 23 | |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | interface IRestApiAble |
| 6 | 6 | { |
| 7 | - public static function getModel() : string ; |
|
| 7 | + public static function getModel() : string; |
|
| 8 | 8 | |
| 9 | 9 | public function index(Request $request); |
| 10 | 10 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @param $searchables |
| 32 | 32 | * return none, Builder passed by reference |
| 33 | 33 | */ |
| 34 | - public static function doSearch(Request $request, Builder $builder, $searchables) ; |
|
| 34 | + public static function doSearch(Request $request, Builder $builder, $searchables); |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Order Data |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * @param Builder $builder |
| 40 | 40 | * @param array $orderBy |
| 41 | 41 | */ |
| 42 | - public static function doOrderBy(Request $request, Builder $builder,array $orderBy); |
|
| 42 | + public static function doOrderBy(Request $request, Builder $builder, array $orderBy); |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * Perform action before data list |