@@ -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 |