Skip to content

Commit d61c52e

Browse files
authored
Incomplete PHPDoc signature (#41960)
1 parent 76ad826 commit d61c52e

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

administrator/components/com_media/src/Provider/ProviderManagerHelperTrait.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ public function getProviderManager(): ProviderManager
7070
/**
7171
* Returns a provider for the given id.
7272
*
73-
* @return ProviderInterface
73+
* @param string $id
7474
*
75-
* @throws \Exception
75+
* @return ProviderInterface
7676
*
77+
* @throws \Exception
7778
* @since 4.1.0
7879
*/
7980
public function getProvider(string $id): ProviderInterface
@@ -84,10 +85,11 @@ public function getProvider(string $id): ProviderInterface
8485
/**
8586
* Return an adapter for the given name.
8687
*
87-
* @return AdapterInterface
88+
* @param string $name
8889
*
89-
* @throws \Exception
90+
* @return AdapterInterface
9091
*
92+
* @throws \Exception
9193
* @since 4.1.0
9294
*/
9395
public function getAdapter(string $name): AdapterInterface
@@ -98,10 +100,11 @@ public function getAdapter(string $name): AdapterInterface
98100
/**
99101
* Returns an array with the adapter name as key and the path of the file.
100102
*
101-
* @return array
103+
* @param string $path
102104
*
103-
* @throws \InvalidArgumentException
105+
* @return array
104106
*
107+
* @throws \Exception
105108
* @since 4.1.0
106109
*/
107110
protected function resolveAdapterAndPath(string $path): array

plugins/editors/tinymce/src/Provider/TinyMCEProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ final class TinyMCEProvider extends AbstractEditorProvider
5050
* @param Registry $params
5151
* @param CMSApplicationInterface $application
5252
* @param DispatcherInterface $dispatcher
53+
* @param DatabaseInterface $database
5354
*
5455
* @since 5.0.0
5556
*/

plugins/system/httpheaders/src/Extension/Httpheaders.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public static function getSubscribedEvents(): array
160160
/**
161161
* The `applyHashesToCspRule` method makes sure the csp hashes are added to the csp header when enabled
162162
*
163+
* @param Event $event
164+
*
163165
* @return void
164166
*
165167
* @since 4.0.0
@@ -235,6 +237,8 @@ public function applyHashesToCspRule(Event $event): void
235237
/**
236238
* The `setHttpHeaders` method handle the setting of the configured HTTP Headers
237239
*
240+
* @param Event $event
241+
*
238242
* @return void
239243
*
240244
* @since 4.0.0

plugins/workflow/featuring/src/Extension/Featuring.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ protected function enhanceItemForm(Form $form, $data)
180180
*
181181
* @param DisplayEvent $event
182182
*
183+
* @return void
184+
*
183185
* @since 4.0.0
184186
*/
185187
public function onAfterDisplay(DisplayEvent $event)
@@ -195,7 +197,7 @@ public function onAfterDisplay(DisplayEvent $event)
195197
$singularsection = Inflector::singularize($section);
196198

197199
if (!$this->isSupported($component . '.' . $singularsection)) {
198-
return true;
200+
return;
199201
}
200202

201203
// List of related batch functions we need to hide
@@ -227,8 +229,6 @@ public function onAfterDisplay(DisplayEvent $event)
227229
";
228230

229231
$this->getApplication()->getDocument()->addScriptDeclaration($js);
230-
231-
return true;
232232
}
233233

234234
/**

plugins/workflow/publishing/src/Extension/Publishing.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ protected function enhanceItemForm(Form $form, $data)
194194
/**
195195
* Manipulate the generic list view
196196
*
197-
* @param DisplayEvent $event
197+
* @param DisplayEvent $event
198+
*
199+
* @return void
198200
*
199201
* @since 4.0.0
200202
*/
@@ -211,7 +213,7 @@ public function onAfterDisplay(DisplayEvent $event)
211213
$singularsection = Inflector::singularize($section);
212214

213215
if (!$this->isSupported($component . '.' . $singularsection)) {
214-
return true;
216+
return;
215217
}
216218

217219
// That's the hard coded list from the AdminController publish method => change, when it's make dynamic in the future
@@ -246,8 +248,6 @@ public function onAfterDisplay(DisplayEvent $event)
246248
";
247249

248250
$this->getApplication()->getDocument()->addScriptDeclaration($js);
249-
250-
return true;
251251
}
252252

253253
/**

0 commit comments

Comments
 (0)