Skip to content

Commit ed989fb

Browse files
tabacituStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 69a3cf2 commit ed989fb

Some content is hidden

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

70 files changed

+501
-631
lines changed

src/BackpackServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ public function publishFiles()
141141
/**
142142
* Define the routes for the application.
143143
*
144-
* @param \Illuminate\Routing\Router $router
145-
*
144+
* @param \Illuminate\Routing\Router $router
146145
* @return void
147146
*/
148147
public function setupRoutes(Router $router)
@@ -161,8 +160,7 @@ public function setupRoutes(Router $router)
161160
/**
162161
* Load custom routes file.
163162
*
164-
* @param \Illuminate\Routing\Router $router
165-
*
163+
* @param \Illuminate\Routing\Router $router
166164
* @return void
167165
*/
168166
public function setupCustomRoutes(Router $router)

src/Stats.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ private function sendUsageStats()
8282
* It spins up a separate process for this, and doesn't listen for a reponse,
8383
* so it has minimal to no impact on pageload.
8484
*
85-
* @param string $method HTTP Method to use for the request.
86-
* @param string $url URL to point the request at.
87-
* @param array $payload The data you want sent to the URL.
88-
*
85+
* @param string $method HTTP Method to use for the request.
86+
* @param string $url URL to point the request at.
87+
* @param array $payload The data you want sent to the URL.
8988
* @return void
9089
*/
9190
private function makeCurlRequest($method, $url, $payload)
@@ -107,10 +106,9 @@ private function makeCurlRequest($method, $url, $payload)
107106
* geographic location this is usually slower than CURL. However,
108107
* unlike CURL, it works on most machines, so it's reliable.
109108
*
110-
* @param string $method HTTP Method to use for the request.
111-
* @param string $url URL to point the request at.
112-
* @param array $payload The data you want sent to the URL.
113-
*
109+
* @param string $method HTTP Method to use for the request.
110+
* @param string $url URL to point the request at.
111+
* @param array $payload The data you want sent to the URL.
114112
* @return void
115113
*/
116114
private function makeGuzzleRequest($method, $url, $payload)

src/app/Console/Commands/AddCustomRouteContent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ private function customRoutesFileEndLine($file_lines)
9999
/**
100100
* Parse the given file stream and return the line number where a string is found.
101101
*
102-
* @param string $needle The string that's being searched for.
103-
* @param array $haystack The file where the search is being performed.
104-
* @return bool|int The last line number where the string was found. Or false.
102+
* @param string $needle The string that's being searched for.
103+
* @param array $haystack The file where the search is being performed.
104+
* @return bool|int The last line number where the string was found. Or false.
105105
*/
106106
private function getLastLineNumberThatContains($needle, $haystack)
107107
{

src/app/Console/Commands/AddSidebarContent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public function handle()
6565
/**
6666
* Parse the given file stream and return the line number where a string is found.
6767
*
68-
* @param string $needle The string that's being searched for.
69-
* @param array $haystack The file where the search is being performed.
70-
* @return bool|int The last line number where the string was found. Or false.
68+
* @param string $needle The string that's being searched for.
69+
* @param array $haystack The file where the search is being performed.
70+
* @return bool|int The last line number where the string was found. Or false.
7171
*/
7272
private function getLastLineNumberThatContains($needle, $haystack)
7373
{

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/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/Traits/PrettyCommandOutput.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ trait PrettyCommandOutput
1212
/**
1313
* Run a SSH command.
1414
*
15-
* @param string $command The SSH command that needs to be run
16-
* @param bool $beforeNotice Information for the user before the command is run
17-
* @param bool $afterNotice Information for the user after the command is run
18-
*
15+
* @param string $command The SSH command that needs to be run
16+
* @param bool $beforeNotice Information for the user before the command is run
17+
* @param bool $afterNotice Information for the user after the command is run
1918
* @return mixed Command-line output
2019
*/
2120
public function executeProcess($command, $beforeNotice = false, $afterNotice = false)
@@ -51,11 +50,10 @@ public function executeProcess($command, $beforeNotice = false, $afterNotice = f
5150
/**
5251
* Run an artisan command.
5352
*
54-
* @param string $command The artisan command to be run.
55-
* @param array $arguments Key-value array of arguments to the artisan command.
56-
* @param bool $beforeNotice Information for the user before the command is run
57-
* @param bool $afterNotice Information for the user after the command is run
58-
*
53+
* @param string $command The artisan command to be run.
54+
* @param array $arguments Key-value array of arguments to the artisan command.
55+
* @param bool $beforeNotice Information for the user before the command is run
56+
* @param bool $afterNotice Information for the user after the command is run
5957
* @return mixed Command-line output
6058
*/
6159
public function executeArtisanProcess($command, $arguments = [], $beforeNotice = false, $afterNotice = false)
@@ -82,8 +80,8 @@ public function executeArtisanProcess($command, $arguments = [], $beforeNotice =
8280
/**
8381
* Write text to the screen for the user to see.
8482
*
85-
* @param string $type line, info, comment, question, error
86-
* @param string $content
83+
* @param string $type line, info, comment, question, error
84+
* @param string $content
8785
*/
8886
public function echo($type, $content)
8987
{

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)

0 commit comments

Comments
 (0)