Skip to content

Commit 1b5aa34

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 7863501 commit 1b5aa34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+356
-499
lines changed

src/BackpackServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ public function publishFiles()
155155
/**
156156
* Define the routes for the application.
157157
*
158-
* @param \Illuminate\Routing\Router $router
159-
*
158+
* @param \Illuminate\Routing\Router $router
160159
* @return void
161160
*/
162161
public function setupRoutes(Router $router)
@@ -175,8 +174,7 @@ public function setupRoutes(Router $router)
175174
/**
176175
* Load custom routes file.
177176
*
178-
* @param \Illuminate\Routing\Router $router
179-
*
177+
* @param \Illuminate\Routing\Router $router
180178
* @return void
181179
*/
182180
public function setupCustomRoutes(Router $router)

src/Stats.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ private function sendUsageStats()
8080
* It spins up a separate process for this, and doesn't listen for a reponse,
8181
* so it has minimal to no impact on pageload.
8282
*
83-
* @param string $method HTTP Method to use for the request.
84-
* @param string $url URL to point the request at.
85-
* @param array $payload The data you want sent to the URL.
86-
*
83+
* @param string $method HTTP Method to use for the request.
84+
* @param string $url URL to point the request at.
85+
* @param array $payload The data you want sent to the URL.
8786
* @return void
8887
*/
8988
private function makeCurlRequest($method, $url, $payload)
@@ -105,10 +104,9 @@ private function makeCurlRequest($method, $url, $payload)
105104
* geographic location this is usually slower than CURL. However,
106105
* unlike CURL, it works on most machines, so it's reliable.
107106
*
108-
* @param string $method HTTP Method to use for the request.
109-
* @param string $url URL to point the request at.
110-
* @param array $payload The data you want sent to the URL.
111-
*
107+
* @param string $method HTTP Method to use for the request.
108+
* @param string $url URL to point the request at.
109+
* @param array $payload The data you want sent to the URL.
112110
* @return void
113111
*/
114112
private function makeGuzzleRequest($method, $url, $payload)

src/app/Console/Commands/Install.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,9 @@ public function handle()
133133
/**
134134
* Run a SSH command.
135135
*
136-
* @param string $command The SSH command that needs to be run
137-
* @param bool $beforeNotice Information for the user before the command is run
138-
* @param bool $afterNotice Information for the user after the command is run
139-
*
136+
* @param string $command The SSH command that needs to be run
137+
* @param bool $beforeNotice Information for the user before the command is run
138+
* @param bool $afterNotice Information for the user after the command is run
140139
* @return mixed Command-line output
141140
*/
142141
public function executeProcess($command, $beforeNotice = false, $afterNotice = false)
@@ -172,11 +171,10 @@ public function executeProcess($command, $beforeNotice = false, $afterNotice = f
172171
/**
173172
* Run an artisan command.
174173
*
175-
* @param string $command The artisan command to be run.
176-
* @param array $arguments Key-value array of arguments to the artisan command.
177-
* @param bool $beforeNotice Information for the user before the command is run
178-
* @param bool $afterNotice Information for the user after the command is run
179-
*
174+
* @param string $command The artisan command to be run.
175+
* @param array $arguments Key-value array of arguments to the artisan command.
176+
* @param bool $beforeNotice Information for the user before the command is run
177+
* @param bool $afterNotice Information for the user after the command is run
180178
* @return mixed Command-line output
181179
*/
182180
public function executeArtisanProcess($command, $arguments = [], $beforeNotice = false, $afterNotice = false)
@@ -203,8 +201,8 @@ public function executeArtisanProcess($command, $arguments = [], $beforeNotice =
203201
/**
204202
* Write text to the screen for the user to see.
205203
*
206-
* @param string $type line, info, comment, question, error
207-
* @param string $content
204+
* @param string $type line, info, comment, question, error
205+
* @param string $content
208206
*/
209207
public function echo($type, $content)
210208
{

src/app/Console/Commands/PublishBackpackMiddleware.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public function handle()
5555
/**
5656
* Build the class. Replace Backpack namespace with App one.
5757
*
58-
* @param string $name
59-
*
58+
* @param string $name
6059
* @return string
6160
*/
6261
protected function buildClass($name = false)
@@ -70,9 +69,8 @@ protected function buildClass($name = false)
7069
* Replace the namespace for the given stub.
7170
* Replace the User model, if it was moved to App\Models\User.
7271
*
73-
* @param string $stub
74-
* @param string $name
75-
*
72+
* @param string $stub
73+
* @param string $name
7674
* @return $this
7775
*/
7876
protected function makeReplacements(&$stub)

src/app/Console/Commands/PublishBackpackUserModel.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public function handle()
5555
/**
5656
* Build the class. Replace Backpack namespace with App one.
5757
*
58-
* @param string $name
59-
*
58+
* @param string $name
6059
* @return string
6160
*/
6261
protected function buildClass($name = false)
@@ -70,9 +69,8 @@ protected function buildClass($name = false)
7069
* Replace the namespace for the given stub.
7170
* Replace the User model, if it was moved to App\Models\User.
7271
*
73-
* @param string $stub
74-
* @param string $name
75-
*
72+
* @param string $stub
73+
* @param string $name
7674
* @return $this
7775
*/
7876
protected function makeReplacements(&$stub)

src/app/Console/Commands/PublishView.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public function handle()
6767
/**
6868
* Take a blade file from the vendor folder and publish it to the resources folder.
6969
*
70-
* @param string $file The filename without extension
71-
*
70+
* @param string $file The filename without extension
7271
* @return void
7372
*/
7473
protected function publishFile($file)

src/app/Console/Commands/Version.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ public function handle()
4444
/**
4545
* Run a shell command in a separate process.
4646
*
47-
* @param string $command Text to be executed.
48-
*
47+
* @param string $command Text to be executed.
4948
* @return void
5049
*/
5150
private function runConsoleCommand($command)

src/app/Exceptions/AccessDeniedException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class AccessDeniedException extends Exception
1010
* Render the exception into an HTTP response.
1111
*
1212
* @param \Illuminate\Http\Request
13-
*
1413
* @return \Illuminate\Http\Response
1514
*/
1615
public function render($request)

src/app/Http/Controllers/Auth/LoginController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ public function username()
6565
/**
6666
* The user has logged out of the application.
6767
*
68-
* @param \Illuminate\Http\Request $request
69-
*
68+
* @param \Illuminate\Http\Request $request
7069
* @return mixed
7170
*/
7271
protected function loggedOut(Request $request)

src/app/Http/Controllers/Auth/RegisterController.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public function __construct()
4343
/**
4444
* Get a validator for an incoming registration request.
4545
*
46-
* @param array $data
47-
*
46+
* @param array $data
4847
* @return \Illuminate\Contracts\Validation\Validator
4948
*/
5049
protected function validator(array $data)
@@ -64,8 +63,7 @@ protected function validator(array $data)
6463
/**
6564
* Create a new user instance after a valid registration.
6665
*
67-
* @param array $data
68-
*
66+
* @param array $data
6967
* @return User
7068
*/
7169
protected function create(array $data)
@@ -100,8 +98,7 @@ public function showRegistrationForm()
10098
/**
10199
* Handle a registration request for the application.
102100
*
103-
* @param \Illuminate\Http\Request $request
104-
*
101+
* @param \Illuminate\Http\Request $request
105102
* @return \Illuminate\Http\Response
106103
*/
107104
public function register(Request $request)

0 commit comments

Comments
 (0)