@@ -71,15 +71,15 @@ public function setSourceFinder(SourceFinder $sourceFinder): void
7171 /**
7272 * {@inheritdoc}
7373 */
74- public function getAllTags (string $ source = null ): array
74+ public function getAllTags (? string $ source = null ): array
7575 {
7676 return $ this ->tagFinder ->findMultiple ($ this ->createTagCriteria ($ source ));
7777 }
7878
7979 /**
8080 * {@inheritdoc}
8181 */
82- public function getFilteredTags (array $ values , string $ source = null ): array
82+ public function getFilteredTags (array $ values , ? string $ source = null ): array
8383 {
8484 $ criteria = $ this ->createTagCriteria ($ source );
8585 $ criteria ->setValues (\count ($ values ) ? $ values : [0 ]);
@@ -203,7 +203,7 @@ public function getSourceRecordsCount(array $data, DataContainer $dc): int
203203 /**
204204 * {@inheritdoc}
205205 */
206- public function getTopTagIds (string $ source = null ): array
206+ public function getTopTagIds (? string $ source = null ): array
207207 {
208208 $ ids = [];
209209 $ sources = (null !== $ source ) ? [$ source ] : $ this ->sources ;
@@ -259,7 +259,7 @@ public function getTagFinder(): TagFinder
259259 /**
260260 * Create the tag criteria.
261261 */
262- public function createTagCriteria (string $ source = null ): TagCriteria
262+ public function createTagCriteria (? string $ source = null ): TagCriteria
263263 {
264264 return new TagCriteria ($ this ->name , $ this ->getSource ($ source ));
265265 }
@@ -275,15 +275,15 @@ public function getSourceFinder(): SourceFinder
275275 /**
276276 * Create the source criteria.
277277 */
278- public function createSourceCriteria (string $ source = null ): SourceCriteria
278+ public function createSourceCriteria (? string $ source = null ): SourceCriteria
279279 {
280280 return new SourceCriteria ($ this ->name , $ this ->getSource ($ source ));
281281 }
282282
283283 /**
284284 * Get the source.
285285 */
286- protected function getSource (string $ source = null ): string
286+ protected function getSource (? string $ source = null ): string
287287 {
288288 if (null === $ source ) {
289289 $ source = $ this ->sources [0 ];
@@ -297,7 +297,7 @@ protected function getSource(string $source = null): string
297297 /**
298298 * Generate the tag alias.
299299 */
300- protected function generateAlias (TagModel $ model , string $ source = null ): void
300+ protected function generateAlias (TagModel $ model , ? string $ source = null ): void
301301 {
302302 $ alias = StringUtil::generateAlias ($ model ->name );
303303
0 commit comments