Completed
Push — master ( 7969ea...f0e012 )
by
unknown
03:51
created
src/Exceptions/ValidationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $messages = [];
47 47
 
48 48
         foreach (json_decode($message, true) as $property => $attributeMessages) {
49
-            if(in_array($property, static::$attributeHides)) {
49
+            if (in_array($property, static::$attributeHides)) {
50 50
                 continue;
51 51
             }
52 52
 
Please login to merge, or discard this patch.
src/Concerns/ResetsPasswords.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function showResetForm(string $token, string $email)
30 30
     {
31
-        if(!$email = AuthService::validatePasswordResetToken($token, $email)) {
31
+        if (!$email = AuthService::validatePasswordResetToken($token, $email)) {
32 32
             throw new \Symfony\Component\HttpKernel\Exception\NotFoundHttpException();
33 33
         }
34 34
 
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $this->validate($request, $this->rules(), $this->validationErrorMessages());
50 50
 
51
-        if(AuthService::resetPassword(
51
+        if (AuthService::resetPassword(
52 52
             $request->input('token'),
53 53
             $email = $request->input('email'),
54 54
             $password = $request->input('password'),
55 55
             $request->input('password_confirmation')
56 56
         )) {
57
-            if(AuthService::login($email, $password)) {
57
+            if (AuthService::login($email, $password)) {
58 58
                 return $this->sendResetResponse(PasswordBroker::PASSWORD_RESET);
59 59
             }
60 60
         }
Please login to merge, or discard this patch.
src/Sync/ExportsUsers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function getEncryptionKey()
56 56
     {
57
-        if(!$this->encryptionKey) {
57
+        if (!$this->encryptionKey) {
58 58
             return null;
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Support\Facades\Route;
4 4
 
5
-Route::group(['namespace' => 'Slides\Connector\Auth\Http\Controllers'], function () {
5
+Route::group(['namespace' => 'Slides\Connector\Auth\Http\Controllers'], function() {
6 6
     Route::post('connector/webhook/{key}', 'WebhookController');
7 7
 });
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
src/Concerns/PassesModes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     {
65 65
         $modes = $this->formatModes($modes ?? $this->modes());
66 66
 
67
-        if($modes) {
67
+        if ($modes) {
68 68
             $this->output->block('Passed modes: ' . $modes, null, 'comment');
69 69
         }
70 70
     }
Please login to merge, or discard this patch.
src/Commands/SyncExport.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
 
44 44
         $syncer = new Syncer($locals = $this->syncingUsers(), $this->modes());
45 45
 
46
-        if($locals->isEmpty()) {
46
+        if ($locals->isEmpty()) {
47 47
             $this->info('No local users found.');
48 48
         }
49 49
 
50
-        if(!$this->confirm('There are ' . $locals->count() . ' local user(s) to export. Continue?', $this->option('no-interaction'))) {
50
+        if (!$this->confirm('There are ' . $locals->count() . ' local user(s) to export. Continue?', $this->option('no-interaction'))) {
51 51
             return;
52 52
         }
53 53
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     private function syncingUsers()
104 104
     {
105
-        if(!count($ids = ConsoleHelper::stringToArray($this->option('users')))) {
105
+        if (!count($ids = ConsoleHelper::stringToArray($this->option('users')))) {
106 106
             return Syncer::retrieveLocals();
107 107
         }
108 108
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     private function filePath()
121 121
     {
122
-        if(!$path = $this->option('path')) {
122
+        if (!$path = $this->option('path')) {
123 123
             $path = storage_path('app');
124 124
         }
125 125
 
Please login to merge, or discard this patch.
src/Commands/SyncImport.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function handle()
41 41
     {
42
-        if(!$key = $this->option('key')) {
42
+        if (!$key = $this->option('key')) {
43 43
             throw new \InvalidArgumentException('Encryption key must be passed.');
44 44
         }
45 45
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $changes = $syncer->getForeignersCount();
63 63
 
64
-        if(!$this->confirm('Apply ' . $changes . ' changes?', true)) {
64
+        if (!$this->confirm('Apply ' . $changes . ' changes?', true)) {
65 65
             return;
66 66
         }
67 67
 
@@ -99,15 +99,15 @@  discard block
 block discarded – undo
99 99
      */
100 100
     protected function flushListeners()
101 101
     {
102
-        if(class_exists('\App\Http\Models\User')) {
102
+        if (class_exists('\App\Http\Models\User')) {
103 103
             \App\Http\Models\User::flushEventListeners();
104 104
         }
105 105
 
106
-        if(class_exists('App\Http\Models\CustomerProfile')) {
106
+        if (class_exists('App\Http\Models\CustomerProfile')) {
107 107
             \App\Http\Models\CustomerProfile::flushEventListeners();
108 108
         }
109 109
 
110
-        if(class_exists('App\Modules\Billing\Models\Account::class')) {
110
+        if (class_exists('App\Modules\Billing\Models\Account::class')) {
111 111
             \App\Modules\Billing\Models\Account::flushEventListeners();
112 112
         }
113 113
     }
Please login to merge, or discard this patch.
src/Commands/SyncUsers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@
 block discarded – undo
66 66
 
67 67
         $syncer = new Syncer($locals = $this->syncingUsers(), $this->modes());
68 68
 
69
-        if($locals->isEmpty()) {
69
+        if ($locals->isEmpty()) {
70 70
             $this->info('No local users found.');
71 71
         }
72 72
 
73
-        if(!$this->confirm('There are ' . $locals->count() . ' local user(s) to sync. Continue?', $this->option('no-interaction'))) {
73
+        if (!$this->confirm('There are ' . $locals->count() . ' local user(s) to sync. Continue?', $this->option('no-interaction'))) {
74 74
             return;
75 75
         }
76 76
 
Please login to merge, or discard this patch.
src/Concerns/UserHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      */
101 101
     public static function deleteEmail(string $email, int $index): string
102 102
     {
103
-        if(strpos($email, ".{$index}.deleted" !== false)) {
103
+        if (strpos($email, ".{$index}.deleted" !== false)) {
104 104
             return $email;
105 105
         }
106 106
 
Please login to merge, or discard this patch.