Skip to content

Commit 793a50c

Browse files
Fix styling
1 parent 0012411 commit 793a50c

File tree

20 files changed

+101
-108
lines changed

20 files changed

+101
-108
lines changed

packages/audit/src/Commands/InstallCommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ public function registerPlugins(string $providerPath): void
126126
$newPlugins = '';
127127

128128
foreach ($pluginsToAdd as $plugin) {
129-
$searchPlugin = '/' . $plugin . '/';
129+
$searchPlugin = '/'.$plugin.'/';
130130
if (preg_match($searchPlugin, $content)) {
131131
warning("$plugin already registered.");
132132
} else {
133-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
133+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
134134
}
135135
}
136136

@@ -145,7 +145,7 @@ public function registerPlugins(string $providerPath): void
145145

146146
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
147147
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
148-
$replacement = "$1\n" . $pluginsSection;
148+
$replacement = "$1\n".$pluginsSection;
149149
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
150150
}
151151

@@ -157,15 +157,14 @@ public function registerPlugins(string $providerPath): void
157157
}
158158

159159
public function registerPluginInPanelProvider(): void
160-
161160
{
162161
$providerPath = app_path('Providers/Filament');
163162
$panelsToregister = $this->getPanelProviderPath();
164163
if ($panelsToregister != null) {
165164
if (is_array($panelsToregister)) {
166165
//Multiselect
167166
foreach ($panelsToregister as $panelprovider) {
168-
$this->registerPlugins($providerPath . '/' . $panelprovider);
167+
$this->registerPlugins($providerPath.'/'.$panelprovider);
169168
}
170169
} else {
171170
//only one
@@ -192,7 +191,7 @@ public function getPanelProviderPath(): string|array
192191
);
193192
}
194193
if (count($providers) == 1) {
195-
$providerPath .= '/' . $providers[0]->getBasename();
194+
$providerPath .= '/'.$providers[0]->getBasename();
196195
}
197196

198197
return $providerPath;

packages/builder/src/Commands/InstallCommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ public function registerPlugins(string $providerPath): void
126126
$newPlugins = '';
127127

128128
foreach ($pluginsToAdd as $plugin) {
129-
$searchPlugin = '/' . $plugin . '/';
129+
$searchPlugin = '/'.$plugin.'/';
130130
if (preg_match($searchPlugin, $content)) {
131131
warning("$plugin already registered.");
132132
} else {
133-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
133+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
134134
}
135135
}
136136

@@ -145,7 +145,7 @@ public function registerPlugins(string $providerPath): void
145145

146146
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
147147
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
148-
$replacement = "$1\n" . $pluginsSection;
148+
$replacement = "$1\n".$pluginsSection;
149149
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
150150
}
151151

@@ -156,7 +156,6 @@ public function registerPlugins(string $providerPath): void
156156
}
157157
}
158158

159-
160159
public function registerPluginInPanelProvider(): void
161160
{
162161
$providerPath = app_path('Providers/Filament');
@@ -165,7 +164,7 @@ public function registerPluginInPanelProvider(): void
165164
if (is_array($panelsToregister)) {
166165
//Multiselect
167166
foreach ($panelsToregister as $panelprovider) {
168-
$this->registerPlugins($providerPath . '/' . $panelprovider);
167+
$this->registerPlugins($providerPath.'/'.$panelprovider);
169168
}
170169
} else {
171170
//only one
@@ -192,7 +191,7 @@ public function getPanelProviderPath(): string|array
192191
);
193192
}
194193
if (count($providers) == 1) {
195-
$providerPath .= '/' . $providers[0]->getBasename();
194+
$providerPath .= '/'.$providers[0]->getBasename();
196195
}
197196

198197
return $providerPath;

packages/expiry/src/Commands/InstallCommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ public function registerPlugins(string $providerPath): void
126126
$newPlugins = '';
127127

128128
foreach ($pluginsToAdd as $plugin) {
129-
$searchPlugin = '/' . $plugin . '/';
129+
$searchPlugin = '/'.$plugin.'/';
130130
if (preg_match($searchPlugin, $content)) {
131131
warning("$plugin already registered.");
132132
} else {
133-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
133+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
134134
}
135135
}
136136

@@ -145,7 +145,7 @@ public function registerPlugins(string $providerPath): void
145145

146146
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
147147
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
148-
$replacement = "$1\n" . $pluginsSection;
148+
$replacement = "$1\n".$pluginsSection;
149149
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
150150
}
151151

@@ -157,15 +157,14 @@ public function registerPlugins(string $providerPath): void
157157
}
158158

159159
public function registerPluginInPanelProvider(): void
160-
161160
{
162161
$providerPath = app_path('Providers/Filament');
163162
$panelsToregister = $this->getPanelProviderPath();
164163
if ($panelsToregister != null) {
165164
if (is_array($panelsToregister)) {
166165
//Multiselect
167166
foreach ($panelsToregister as $panelprovider) {
168-
$this->registerPlugins($providerPath . '/' . $panelprovider);
167+
$this->registerPlugins($providerPath.'/'.$panelprovider);
169168
}
170169
} else {
171170
//only one
@@ -192,7 +191,7 @@ public function getPanelProviderPath(): string|array
192191
);
193192
}
194193
if (count($providers) == 1) {
195-
$providerPath .= '/' . $providers[0]->getBasename();
194+
$providerPath .= '/'.$providers[0]->getBasename();
196195
}
197196

198197
return $providerPath;

packages/jobs/src/Commands/InstallCommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ public function registerPlugins(string $providerPath): void
178178
$newPlugins = '';
179179

180180
foreach ($pluginsToAdd as $plugin) {
181-
$searchPlugin = '/' . $plugin . '/';
181+
$searchPlugin = '/'.$plugin.'/';
182182
if (preg_match($searchPlugin, $content)) {
183183
warning("$plugin already registered.");
184184
} else {
185-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
185+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
186186
}
187187
}
188188

@@ -197,7 +197,7 @@ public function registerPlugins(string $providerPath): void
197197

198198
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
199199
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
200-
$replacement = "$1\n" . $pluginsSection;
200+
$replacement = "$1\n".$pluginsSection;
201201
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
202202
}
203203
File::put($providerPath, $newContent);
@@ -208,15 +208,14 @@ public function registerPlugins(string $providerPath): void
208208
}
209209

210210
public function registerPluginInPanelProvider(): void
211-
212211
{
213212
$providerPath = app_path('Providers/Filament');
214213
$panelsToregister = $this->getPanelProviderPath();
215214
if ($panelsToregister != null) {
216215
if (is_array($panelsToregister)) {
217216
//Multiselect
218217
foreach ($panelsToregister as $panelprovider) {
219-
$this->registerPlugins($providerPath . '/' . $panelprovider);
218+
$this->registerPlugins($providerPath.'/'.$panelprovider);
220219
}
221220
} else {
222221
//only one
@@ -243,7 +242,7 @@ public function getPanelProviderPath(): string|array
243242
);
244243
}
245244
if (count($providers) == 1) {
246-
$providerPath .= '/' . $providers[0]->getBasename();
245+
$providerPath .= '/'.$providers[0]->getBasename();
247246
}
248247

249248
return $providerPath;

packages/locate/src/Commands/InstallCommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ public function registerPlugins(string $providerPath): void
124124
$newPlugins = '';
125125

126126
foreach ($pluginsToAdd as $plugin) {
127-
$searchPlugin = '/' . $plugin . '/';
127+
$searchPlugin = '/'.$plugin.'/';
128128
if (preg_match($searchPlugin, $content)) {
129129
warning("$plugin already registered.");
130130
} else {
131-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
131+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
132132
}
133133
}
134134

@@ -143,7 +143,7 @@ public function registerPlugins(string $providerPath): void
143143

144144
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
145145
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
146-
$replacement = "$1\n" . $pluginsSection;
146+
$replacement = "$1\n".$pluginsSection;
147147
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
148148
}
149149

@@ -155,15 +155,14 @@ public function registerPlugins(string $providerPath): void
155155
}
156156

157157
public function registerPluginInPanelProvider(): void
158-
159158
{
160159
$providerPath = app_path('Providers/Filament');
161160
$panelsToregister = $this->getPanelProviderPath();
162161
if ($panelsToregister != null) {
163162
if (is_array($panelsToregister)) {
164163
//Multiselect
165164
foreach ($panelsToregister as $panelprovider) {
166-
$this->registerPlugins($providerPath . '/' . $panelprovider);
165+
$this->registerPlugins($providerPath.'/'.$panelprovider);
167166
}
168167
} else {
169168
//only one
@@ -190,7 +189,7 @@ public function getPanelProviderPath(): string|array
190189
);
191190
}
192191
if (count($providers) == 1) {
193-
$providerPath .= '/' . $providers[0]->getBasename();
192+
$providerPath .= '/'.$providers[0]->getBasename();
194193
}
195194

196195
return $providerPath;

packages/login-link/src/Commands/InstallCommand.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ public function registerPlugins(string $providerPath): void
124124
$newPlugins = '';
125125

126126
foreach ($pluginsToAdd as $plugin) {
127-
$searchPlugin = '/' . $plugin . '/';
127+
$searchPlugin = '/'.$plugin.'/';
128128
if (preg_match($searchPlugin, $content)) {
129129
warning("$plugin already registered.");
130130
} else {
131-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
131+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
132132
}
133133
}
134134

@@ -143,7 +143,7 @@ public function registerPlugins(string $providerPath): void
143143

144144
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
145145
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
146-
$replacement = "$1\n" . $pluginsSection;
146+
$replacement = "$1\n".$pluginsSection;
147147
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
148148
}
149149

@@ -155,15 +155,14 @@ public function registerPlugins(string $providerPath): void
155155
}
156156

157157
public function registerPluginInPanelProvider(): void
158-
159158
{
160159
$providerPath = app_path('Providers/Filament');
161160
$panelsToregister = $this->getPanelProviderPath();
162161
if ($panelsToregister != null) {
163162
if (is_array($panelsToregister)) {
164163
//Multiselect
165164
foreach ($panelsToregister as $panelprovider) {
166-
$this->registerPlugins($providerPath . '/' . $panelprovider);
165+
$this->registerPlugins($providerPath.'/'.$panelprovider);
167166
}
168167
} else {
169168
//only one
@@ -190,7 +189,7 @@ public function getPanelProviderPath(): string|array
190189
);
191190
}
192191
if (count($providers) == 1) {
193-
$providerPath .= '/' . $providers[0]->getBasename();
192+
$providerPath .= '/'.$providers[0]->getBasename();
194193
}
195194

196195
return $providerPath;

packages/notifications/src/Commands/InstallCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ public function registerPlugins(string $providerPath): void
124124
$newPlugins = '';
125125

126126
foreach ($pluginsToAdd as $plugin) {
127-
$searchPlugin = '/' . $plugin . '/';
127+
$searchPlugin = '/'.$plugin.'/';
128128
if (preg_match($searchPlugin, $content)) {
129129
warning("$plugin already registered.");
130130
} else {
131-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
131+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
132132
}
133133
}
134134

@@ -143,7 +143,7 @@ public function registerPlugins(string $providerPath): void
143143

144144
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
145145
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
146-
$replacement = "$1\n" . $pluginsSection;
146+
$replacement = "$1\n".$pluginsSection;
147147
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
148148
}
149149

@@ -162,7 +162,7 @@ public function registerPluginInPanelProvider(): void
162162
if (is_array($panelsToregister)) {
163163
//Multiselect
164164
foreach ($panelsToregister as $panelprovider) {
165-
$this->registerPlugins($providerPath . '/' . $panelprovider);
165+
$this->registerPlugins($providerPath.'/'.$panelprovider);
166166
}
167167
} else {
168168
//only one
@@ -189,7 +189,7 @@ public function getPanelProviderPath(): string|array
189189
);
190190
}
191191
if (count($providers) == 1) {
192-
$providerPath .= '/' . $providers[0]->getBasename();
192+
$providerPath .= '/'.$providers[0]->getBasename();
193193
}
194194

195195
return $providerPath;

packages/page/src/Commands/InstallCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ public function registerPlugins(string $providerPath): void
123123
$newPlugins = '';
124124

125125
foreach ($pluginsToAdd as $plugin) {
126-
$searchPlugin = '/' . $plugin . '/';
126+
$searchPlugin = '/'.$plugin.'/';
127127
if (preg_match($searchPlugin, $content)) {
128128
warning("$plugin already registered.");
129129
} else {
130-
$newPlugins .= $intend . $namespace . '\\' . $plugin . $function . "\n";
130+
$newPlugins .= $intend.$namespace.'\\'.$plugin.$function."\n";
131131
}
132132
}
133133

@@ -142,7 +142,7 @@ public function registerPlugins(string $providerPath): void
142142

143143
$pluginsSection = " ->plugins([\n$newPlugins\n ]);";
144144
$placeholderPattern = '/(\->authMiddleware\(\[.*?\]\))\s*\;/s';
145-
$replacement = "$1\n" . $pluginsSection;
145+
$replacement = "$1\n".$pluginsSection;
146146
$newContent = preg_replace($placeholderPattern, $replacement, $content, 1);
147147
}
148148

@@ -161,7 +161,7 @@ public function registerPluginInPanelProvider(): void
161161
if (is_array($panelsToregister)) {
162162
//Multiselect
163163
foreach ($panelsToregister as $panelprovider) {
164-
$this->registerPlugins($providerPath . '/' . $panelprovider);
164+
$this->registerPlugins($providerPath.'/'.$panelprovider);
165165
}
166166
} else {
167167
//only one
@@ -188,7 +188,7 @@ public function getPanelProviderPath(): string|array
188188
);
189189
}
190190
if (count($providers) == 1) {
191-
$providerPath .= '/' . $providers[0]->getBasename();
191+
$providerPath .= '/'.$providers[0]->getBasename();
192192
}
193193

194194
return $providerPath;

0 commit comments

Comments
 (0)