@@ -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 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function testStore() |
17 | 17 | { |
18 | - $response = $this-action('POST', 'Crystoline\LaraRestApiTestController@yourAction', ['links' => 'link1 \n link2']); |
|
18 | + $response = $this - action('POST', 'Crystoline\LaraRestApiTestController@yourAction', ['links' => 'link1 \n link2']); |
|
19 | 19 | // you can check if response was ok |
20 | 20 | $this->assertTrue($response->isOk(), "Custom message if something went wrong"); |
21 | 21 | // or if view received variable |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | use Illuminate\Http\Request; |
6 | 6 | interface IRestApiAble |
7 | 7 | { |
8 | - public static function getModel() : string ; |
|
8 | + public static function getModel() : string; |
|
9 | 9 | |
10 | 10 | public function index(Request $request); |
11 | 11 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @param $searchables |
33 | 33 | * return none, Builder passed by reference |
34 | 34 | */ |
35 | - public static function doSearch(Request $request, Builder $builder, $searchables) ; |
|
35 | + public static function doSearch(Request $request, Builder $builder, $searchables); |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Order Data |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param Builder $builder |
41 | 41 | * @param array $orderBy |
42 | 42 | */ |
43 | - public static function doOrderBy(Request $request, Builder $builder,array $orderBy); |
|
43 | + public static function doOrderBy(Request $request, Builder $builder, array $orderBy); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Perform action before data list |