Skip to content

Commit 511f533

Browse files
prinxStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 51934f1 commit 511f533

33 files changed

+435
-286
lines changed

config/channel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44

55
'USSD' => [
66
'max_page_characters' => 147,
7-
'max_page_lines' => 10,
7+
'max_page_lines' => 10,
88
],
99

1010
'WHATSAPP' => [
1111
'max_page_characters' => 10000, // Actually no limit.
12-
'max_page_lines' => 10000,
12+
'max_page_lines' => 10000,
1313
],
1414

1515
'CONSOLE' => [
1616
'max_page_characters' => 147,
17-
'max_page_lines' => 10,
17+
'max_page_lines' => 10,
1818
],
1919

2020
'DEFAULT' => [
2121
'max_page_characters' => 147,
22-
'max_page_lines' => 10,
22+
'max_page_lines' => 10,
2323
],
2424

2525
];

config/database.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
return [
66

77
'default' => [
8-
'user' => env('APP_DEFAULT_DB_USER', ''),
8+
'user' => env('APP_DEFAULT_DB_USER', ''),
99
'password' => env('APP_DEFAULT_DB_PASS', ''),
10-
'host' => env('APP_DEFAULT_DB_HOST', ''),
11-
'port' => env('APP_DEFAULT_DB_PORT', ''),
12-
'dbname' => env('APP_DEFAULT_DB_NAME', ''),
10+
'host' => env('APP_DEFAULT_DB_HOST', ''),
11+
'port' => env('APP_DEFAULT_DB_PORT', ''),
12+
'dbname' => env('APP_DEFAULT_DB_NAME', ''),
1313
],
1414

1515
];

config/devtool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44
'alias' => [
5-
'DB' => 'Rejoice\Database\DB',
5+
'DB' => 'Rejoice\Database\DB',
66
'Path' => 'Rejoice\Foundation\Path',
77
],
88

config/session.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
'lifetime' => 60 * 5, // expires after 5h (in min)
1010

1111
'database' => [
12-
'user' => env('SESSION_DB_USER', ''),
12+
'user' => env('SESSION_DB_USER', ''),
1313
'password' => env('SESSION_DB_PASS', ''),
14-
'host' => env('SESSION_DB_HOST', ''),
15-
'port' => env('SESSION_DB_PORT', ''),
16-
'dbname' => env('SESSION_DB_NAME', ''),
14+
'host' => env('SESSION_DB_HOST', ''),
15+
'port' => env('SESSION_DB_PORT', ''),
16+
'dbname' => env('SESSION_DB_NAME', ''),
1717
],
1818

1919
];

src/Console/Commands/FrameworkCommand.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ public function setRejoice(Rejoice $rejoice)
5050
*
5151
*
5252
*
53-
* @param string $key
54-
* @param mixed $default The default to return if the configuration is not found
55-
* @param bool $silent If true, will shutdown the exception throwing if configuration variable not found and no default was passed.
53+
* @param string $key
54+
* @param mixed $default The default to return if the configuration is not found
55+
* @param bool $silent If true, will shutdown the exception throwing if configuration variable not found and no default was passed.
56+
*
5657
* @throws \RuntimeException
58+
*
5759
* @return Config|mixed
5860
*/
5961
public function config($key = null, $default = null, $silent = false)
@@ -66,8 +68,10 @@ public function config($key = null, $default = null, $silent = false)
6668
*
6769
*
6870
*
69-
* @param string|null $name
71+
* @param string|null $name
72+
*
7073
* @throws \RuntimeException
74+
*
7175
* @return string|\Rejoice\Foundation\Path
7276
*/
7377
public function path($name = null)

src/Console/Commands/NewCommandCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Rejoice\Console\Commands;
44

5-
use function Symfony\Component\String\u as str;
65
use Prinx\Os;
76
use Rejoice\Console\Argument;
87
use Rejoice\Console\Option;
8+
use function Symfony\Component\String\u as str;
99

1010
/**
1111
* Command to create a new command.

src/Console/Commands/NewMenuCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Rejoice\Console\Commands;
44

5-
use function Symfony\Component\String\u as str;
65
use Prinx\Os;
76
use Prinx\Str;
87
use Rejoice\Console\Argument;
98
use Rejoice\Console\Option;
9+
use function Symfony\Component\String\u as str;
1010

1111
class NewMenuCommand extends FrameworkCommand
1212
{

src/Console/Commands/NewModelCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
2+
23
namespace Rejoice\Console\Commands;
34

4-
use function Symfony\Component\String\u as str;
55
use Prinx\Os;
66
use Rejoice\Console\Argument;
7+
use function Symfony\Component\String\u as str;
78

89
class NewModelCommand extends FrameworkCommand
910
{

src/Console/Commands/SimulatorConsoleCommand.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ public function handleUssdEnd($data)
196196
/**
197197
* Converts HTML text to string.
198198
*
199-
* @param string|string[] $messages A single string or an array of string
199+
* @param string|string[] $messages A single string or an array of string
200+
*
200201
* @return string|string[]
201202
*/
202203
public function htmlToText($messages)
@@ -293,8 +294,9 @@ public function wasSuccessfull($data)
293294
/**
294295
* Write to console with the specified color.
295296
*
296-
* @param string $colorType Can be info|error|question or any color name (Eg: green)
297-
* @param string|string[] $name The string to write with colors
297+
* @param string $colorType Can be info|error|question or any color name (Eg: green)
298+
* @param string|string[] $name The string to write with colors
299+
*
298300
* @return void
299301
*/
300302
public function writeMetaName($colorType, $name)

src/Console/Devtool/Caster.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class Caster
99
/**
1010
* Get an array representing the properties of a collection.
1111
*
12-
* @param \Illuminate\Support\Collection $collection
12+
* @param \Illuminate\Support\Collection $collection
13+
*
1314
* @return array
1415
* @source \Laravel\Tinker\TinkerCaster::castCollection
1516
*/
@@ -23,14 +24,16 @@ public static function castCollection($collection)
2324
/**
2425
* Get an array representing the properties of a model.
2526
*
26-
* @param \Illuminate\Database\Eloquent\Model $model
27+
* @param \Illuminate\Database\Eloquent\Model $model
28+
*
2729
* @return array
2830
* @source \Laravel\Tinker\TinkerCaster::castModel
2931
*/
3032
public static function castModel($model)
3133
{
3234
$attributes = array_merge(
33-
$model->getAttributes(), $model->getRelations()
35+
$model->getAttributes(),
36+
$model->getRelations()
3437
);
3538

3639
$visible = array_flip(

0 commit comments

Comments
 (0)