Skip to content

Commit c3fdd86

Browse files
gallibStyleCIBot
andauthored
Apply fixes from StyleCI (#29)
Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent 25037bd commit c3fdd86

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

src/Http/Controllers/RedirectController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ class RedirectController extends Controller
1010
/**
1111
* Redirect to url by its code.
1212
*
13-
* @param string $code
14-
*
13+
* @param string $code
1514
* @return \Illuminate\Http\Response
1615
*/
1716
public function redirect($code)

src/Http/Controllers/UrlController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public function create()
3535
/**
3636
* Store a newly created resource in storage.
3737
*
38-
* @param \Gallib\ShortUrl\Http\Requests\UrlRequest $request
39-
*
38+
* @param \Gallib\ShortUrl\Http\Requests\UrlRequest $request
4039
* @return \Illuminate\Http\Response
4140
*/
4241
public function store(UrlRequest $request)

src/Http/Responses/UrlResponse.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ class UrlResponse implements Responsable
1414
/**
1515
* Create a new instance.
1616
*
17-
* @param \Gallib\ShortUrl\Url $url
18-
*
17+
* @param \Gallib\ShortUrl\Url $url
1918
* @return void
2019
*/
2120
public function __construct($url)
@@ -26,8 +25,7 @@ public function __construct($url)
2625
/**
2726
* Create an HTTP response that represents the object.
2827
*
29-
* @param \Illuminate\Http\Request $request
30-
*
28+
* @param \Illuminate\Http\Request $request
3129
* @return \Illuminate\Http\Response
3230
*/
3331
public function toResponse($request)

src/Parsers/UrlParser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class UrlParser
2222
/**
2323
* Create a new instance.
2424
*
25-
* @param \GuzzleHttp\Client $client
25+
* @param \GuzzleHttp\Client $client
2626
* @return void
2727
*/
2828
public function __construct(Client $client)
@@ -33,7 +33,7 @@ public function __construct(Client $client)
3333
/**
3434
* Get body of given url.
3535
*
36-
* @param string $url
36+
* @param string $url
3737
* @return string
3838
*/
3939
public function getBody($url)
@@ -51,7 +51,7 @@ public function getBody($url)
5151
/**
5252
* Parse the url to collect additionnal informations.
5353
*
54-
* @param \Gallib\ShortUrl\Url $url
54+
* @param \Gallib\ShortUrl\Url $url
5555
* @return void
5656
*/
5757
public function setUrlInfos(Url $url)

src/Url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Url extends Model
3838
/**
3939
* Boot the model.
4040
*
41-
* @return void
41+
* @return void
4242
*/
4343
protected static function boot()
4444
{
@@ -86,7 +86,7 @@ public function user()
8686
$userModel = config("auth.providers.{$provider}.model");
8787

8888
if (! class_exists($userModel)) {
89-
throw new \Exception("User model not found");
89+
throw new \Exception('User model not found');
9090
}
9191

9292
return $this->belongsTo($userModel);

tests/TestCase.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ protected function setUp(): void
2222
/**
2323
* Define environment setup.
2424
*
25-
* @param \Illuminate\Foundation\Application $app
26-
*
25+
* @param \Illuminate\Foundation\Application $app
2726
* @return void
2827
*/
2928
protected function getEnvironmentSetUp($app)
@@ -45,7 +44,7 @@ protected function getEnvironmentSetUp($app)
4544
/**
4645
* Set up the database.
4746
*
48-
* @param \Illuminate\Foundation\Application $app
47+
* @param \Illuminate\Foundation\Application $app
4948
*/
5049
protected function setUpDatabase($app)
5150
{
@@ -62,8 +61,7 @@ protected function setUpDatabase($app)
6261
* In a normal app environment these would be added to the 'providers' array in
6362
* the config/app.php file.
6463
*
65-
* @param \Illuminate\Foundation\Application $app
66-
*
64+
* @param \Illuminate\Foundation\Application $app
6765
* @return array
6866
*/
6967
protected function getPackageProviders($app)
@@ -79,8 +77,7 @@ protected function getPackageProviders($app)
7977
* aliased facade, you should add the alias here, along with aliases for
8078
* facades upon which your package depends, e.g. Cartalyst/Sentry.
8179
*
82-
* @param \Illuminate\Foundation\Application $app
83-
*
80+
* @param \Illuminate\Foundation\Application $app
8481
* @return array
8582
*/
8683
protected function getPackageAliases($app)

0 commit comments

Comments
 (0)