Passed
Push — develop ( 142042...e2d041 )
by Septianata
04:21
created
routes/botman.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 /** @var \BotMan\BotMan\BotMan $botman */
16 16
 $botman = resolve('botman');
17 17
 
18
-$botman->hears('Hi', fn (BotMan $botman) => $botman->startConversation(new ExampleConversation));
18
+$botman->hears('Hi', fn(BotMan $botman) => $botman->startConversation(new ExampleConversation));
19 19
 
20
-$botman->fallback(function (BotMan $botman) {
20
+$botman->fallback(function(BotMan $botman) {
21 21
     $message = __("Maaf, kami tidak mengenali maksud dari '{$botman->getMessage()->getText()}'.");
22 22
 
23 23
     $botman->reply($message);
Please login to merge, or discard this patch.
routes/auth.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,30 +10,30 @@
 block discarded – undo
10 10
 use App\Http\Controllers\Auth\VerifyEmailController;
11 11
 use Illuminate\Support\Facades\Route;
12 12
 
13
-Route::middleware('guest:web')->group(function () {
14
-    Route::get('/register', [RegisteredUserController::class, 'create'])->name('register');
15
-    Route::post('/register', [RegisteredUserController::class, 'store']);
13
+Route::middleware('guest:web')->group(function() {
14
+    Route::get('/register', [ RegisteredUserController::class, 'create' ])->name('register');
15
+    Route::post('/register', [ RegisteredUserController::class, 'store' ]);
16 16
 
17
-    Route::get('/login', [AuthenticatedSessionController::class, 'create'])->name('login');
18
-    Route::post('/login', [AuthenticatedSessionController::class, 'store']);
17
+    Route::get('/login', [ AuthenticatedSessionController::class, 'create' ])->name('login');
18
+    Route::post('/login', [ AuthenticatedSessionController::class, 'store' ]);
19 19
 
20
-    Route::get('/forgot-password', [PasswordResetLinkController::class, 'create'])->name('password.request');
21
-    Route::post('/forgot-password', [PasswordResetLinkController::class, 'store'])->name('password.email');
20
+    Route::get('/forgot-password', [ PasswordResetLinkController::class, 'create' ])->name('password.request');
21
+    Route::post('/forgot-password', [ PasswordResetLinkController::class, 'store' ])->name('password.email');
22 22
 
23
-    Route::get('/reset-password/{token}', [NewPasswordController::class, 'create'])->name('password.reset');
24
-    Route::post('/reset-password', [NewPasswordController::class, 'store'])->name('password.update');
23
+    Route::get('/reset-password/{token}', [ NewPasswordController::class, 'create' ])->name('password.reset');
24
+    Route::post('/reset-password', [ NewPasswordController::class, 'store' ])->name('password.update');
25 25
 });
26 26
 
27
-Route::middleware('auth:web')->group(function () {
27
+Route::middleware('auth:web')->group(function() {
28 28
     Route::get('/verify-email', EmailVerificationPromptController::class)->name('verification.notice');
29 29
 
30
-    Route::middleware('throttle:6,1')->group(function () {
30
+    Route::middleware('throttle:6,1')->group(function() {
31 31
         Route::get('/verify-email/{id}/{hash}', VerifyEmailController::class)->middleware('signed')->name('verification.verify');
32
-        Route::post('/email/verification-notification', [EmailVerificationNotificationController::class, 'store'])->name('verification.send');
32
+        Route::post('/email/verification-notification', [ EmailVerificationNotificationController::class, 'store' ])->name('verification.send');
33 33
     });
34 34
 
35
-    Route::get('/confirm-password', [ConfirmablePasswordController::class, 'show'])->name('password.confirm');
36
-    Route::post('/confirm-password', [ConfirmablePasswordController::class, 'store']);
35
+    Route::get('/confirm-password', [ ConfirmablePasswordController::class, 'show' ])->name('password.confirm');
36
+    Route::post('/confirm-password', [ ConfirmablePasswordController::class, 'store' ]);
37 37
 
38
-    Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])->name('logout');
38
+    Route::post('/logout', [ AuthenticatedSessionController::class, 'destroy' ])->name('logout');
39 39
 });
Please login to merge, or discard this patch.
app/Models/Concerns/User/Attribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function setPasswordAttribute($value)
28 28
     {
29
-        $this->attributes['password'] = Hash::make($value);
29
+        $this->attributes[ 'password' ] = Hash::make($value);
30 30
 
31 31
         return $this;
32 32
     }
Please login to merge, or discard this patch.
app/Conversations/Conversation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      * @param  array  $additionalParameters
15 15
      * @return $this
16 16
      */
17
-    protected function sayRenderable(Renderable $view, array $additionalParameters = [])
17
+    protected function sayRenderable(Renderable $view, array $additionalParameters = [ ])
18 18
     {
19 19
         $this->say($view->render(), $additionalParameters);
20 20
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param  array  $additionalParameters
30 30
      * @return $this
31 31
      */
32
-    protected function askRenderable($view, $next, $additionalParameters = [])
32
+    protected function askRenderable($view, $next, $additionalParameters = [ ])
33 33
     {
34 34
         $this->ask($view->render(), $next, $additionalParameters);
35 35
 
Please login to merge, or discard this patch.
app/Support/Auth/MultipleIdentifier.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             return 'email';
21 21
         }
22 22
 
23
-        if (!Validator::make(['phone' => $value], ['phone' => 'phone:ID'])->fails()) {
23
+        if (!Validator::make([ 'phone' => $value ], [ 'phone' => 'phone:ID' ])->fails()) {
24 24
             return 'phone';
25 25
         }
26 26
 
@@ -37,15 +37,15 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $field = $this->getIdentifierField($value);
39 39
 
40
-        $rules = ['required', 'string', 'exists:users,' . $field];
40
+        $rules = [ 'required', 'string', 'exists:users,'.$field ];
41 41
 
42 42
         switch ($field) {
43 43
             case 'email':
44
-                $rules[] = 'email';
44
+                $rules[ ] = 'email';
45 45
                 break;
46 46
 
47 47
             case 'phone':
48
-                $rules[] = 'phone:ID';
48
+                $rules[ ] = 'phone:ID';
49 49
                 break;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
app/Support/helpers.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 use Illuminate\Support\Str;
5 5
 use Propaganistas\LaravelPhone\PhoneNumber;
6 6
 
7
-if (! function_exists('terbilang')) {
7
+if (!function_exists('terbilang')) {
8 8
     /**
9 9
      * Return the given value into readable number.
10 10
      *
@@ -13,49 +13,49 @@  discard block
 block discarded – undo
13 13
      */
14 14
     function terbilang($value): string
15 15
     {
16
-        $result = value(function () use ($value) {
17
-            $angka = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas'];
16
+        $result = value(function() use ($value) {
17
+            $angka = [ '', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas' ];
18 18
 
19 19
             $number = abs($value);
20 20
 
21 21
             switch (true) {
22 22
                 case $number < 12:
23
-                    return ' ' . $angka[$number];
23
+                    return ' '.$angka[ $number ];
24 24
 
25 25
                 case $number < 20:
26
-                    return terbilang($number - 10) . ' belas';
26
+                    return terbilang($number - 10).' belas';
27 27
 
28 28
                 case $number < 100:
29
-                    return terbilang($number / 10) . ' puluh ' . terbilang($number % 10);
29
+                    return terbilang($number / 10).' puluh '.terbilang($number % 10);
30 30
 
31 31
                 case $number < 200:
32
-                    return 'seratus ' . terbilang($number - 100);
32
+                    return 'seratus '.terbilang($number - 100);
33 33
 
34 34
                 case $number < 1000:
35
-                    return terbilang($number / 100) . ' ratus ' . terbilang($number % 100);
35
+                    return terbilang($number / 100).' ratus '.terbilang($number % 100);
36 36
 
37 37
                 case $number < 2000:
38
-                    return 'seribu ' . terbilang($number - 1000);
38
+                    return 'seribu '.terbilang($number - 1000);
39 39
 
40 40
                 case $number < 1000000:
41
-                    return terbilang($number / 1000) . ' ribu ' . terbilang($number % 1000);
41
+                    return terbilang($number / 1000).' ribu '.terbilang($number % 1000);
42 42
 
43 43
                 case $number < 1000000000:
44
-                    return terbilang($number / 1000000) . ' juta ' . terbilang($number % 1000000);
44
+                    return terbilang($number / 1000000).' juta '.terbilang($number % 1000000);
45 45
 
46 46
                 case $number < 1000000000000:
47
-                    return terbilang($number / 1000000000) . ' milyar ' . terbilang($number % 1000000000);
47
+                    return terbilang($number / 1000000000).' milyar '.terbilang($number % 1000000000);
48 48
 
49 49
                 case $number < 1000000000000000:
50
-                    return terbilang($number / 1000000000000) . ' trilyun ' . terbilang($number % 1000000000000);
50
+                    return terbilang($number / 1000000000000).' trilyun '.terbilang($number % 1000000000000);
51 51
             }
52 52
         });
53 53
 
54
-        return trim(($value < 0 ? 'minus ' : '') . $result);
54
+        return trim(($value < 0 ? 'minus ' : '').$result);
55 55
     }
56 56
 }
57 57
 
58
-if (! function_exists('greeting')) {
58
+if (!function_exists('greeting')) {
59 59
     /**
60 60
      * Return specific greeting based on the current hour.
61 61
      *
Please login to merge, or discard this patch.
app/Http/Requests/Auth/LoginRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function attributes()
45 45
     {
46 46
         return [
47
-            'identifier' => trans('Email') . ' / ' .trans('Phone Number') . ' / Username',
47
+            'identifier' => trans('Email').' / '.trans('Phone Number').' / Username',
48 48
         ];
49 49
     }
50 50
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $this->ensureIsNotRateLimited();
72 72
 
73
-        if (! Auth::attempt($this->getCredentials($this), $this->boolean('remember'))) {
73
+        if (!Auth::attempt($this->getCredentials($this), $this->boolean('remember'))) {
74 74
             RateLimiter::hit($this->throttleKey());
75 75
 
76 76
             throw ValidationException::withMessages([
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function ensureIsNotRateLimited()
92 92
     {
93
-        if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {
93
+        if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {
94 94
             return;
95 95
         }
96 96
 
@@ -113,6 +113,6 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function throttleKey()
115 115
     {
116
-        return Str::lower($this->input('email')) . '|'. $this->ip();
116
+        return Str::lower($this->input('email')).'|'.$this->ip();
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/NewPasswordController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function create(Request $request)
23 23
     {
24
-        return view('auth.reset-password', ['request' => $request]);
24
+        return view('auth.reset-password', [ 'request' => $request ]);
25 25
     }
26 26
 
27 27
     /**
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $request->validate([
38 38
             'token' => 'required',
39 39
             'email' => 'required|email',
40
-            'password' => ['required', 'confirmed', Rules\Password::defaults()],
40
+            'password' => [ 'required', 'confirmed', Rules\Password::defaults() ],
41 41
         ]);
42 42
 
43 43
         // Here we will attempt to reset the user's password. If it is successful we
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         // database. Otherwise we will parse the error and return the response.
46 46
         $status = Password::reset(
47 47
             $request->only('email', 'password', 'password_confirmation', 'token'),
48
-            function ($user) use ($request) {
48
+            function($user) use ($request) {
49 49
                 $user->forceFill([
50 50
                     'password' => Hash::make($request->password),
51 51
                     'remember_token' => Str::random(60),
@@ -61,6 +61,6 @@  discard block
 block discarded – undo
61 61
         return $status == Password::PASSWORD_RESET
62 62
                     ? redirect()->route('login')->with('status', __($status))
63 63
                     : back()->withInput($request->only('email'))
64
-                            ->withErrors(['email' => __($status)]);
64
+                            ->withErrors([ 'email' => __($status) ]);
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ConfirmablePasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function store(Request $request)
30 30
     {
31
-        if (! Auth::guard('web')->validate([
31
+        if (!Auth::guard('web')->validate([
32 32
             'email' => $request->user()->email,
33 33
             'password' => $request->password,
34 34
         ])) {
Please login to merge, or discard this patch.