Skip to content

Commit 0793f81

Browse files
committed
removed unused code and move method
1 parent 59b4b87 commit 0793f81

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

src/Onym.php

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ public function make(
7373

7474
'date' => $this->date($defaultFilename, $extension, $useOptions),
7575

76-
'prefix' => $this->prefix($defaultFilename, $extension, $useOptions),
77-
78-
'suffix' => $this->suffix($defaultFilename, $extension, $useOptions),
79-
8076
'numbered' => $this->numbered($defaultFilename, $extension, $useOptions),
8177

8278
'slug' => $this->slug($defaultFilename, $extension),
@@ -87,18 +83,6 @@ public function make(
8783
};
8884
}
8985

90-
/**
91-
* Merge options with the default options.
92-
*
93-
* @param array $options The options to merge.
94-
* @param array $defaultOptions The default options.
95-
* @return array The merged options.
96-
*/
97-
private function mergeOptions(array $options, string $strategy, array $defaultOptions): array
98-
{
99-
return array_merge($defaultOptions[$strategy], $options);
100-
}
101-
10286
/**
10387
* Generate a random string of characters.
10488
*
@@ -204,6 +188,18 @@ public function hash(string $defaultFilename, string $extension, ?array $options
204188
return $this->applyAffixes($filename, $options);
205189
}
206190

191+
/**
192+
* Merge options with the default options.
193+
*
194+
* @param array $options The options to merge.
195+
* @param array $defaultOptions The default options.
196+
* @return array The merged options.
197+
*/
198+
private function mergeOptions(array $options, string $strategy, array $defaultOptions): array
199+
{
200+
return array_merge($defaultOptions[$strategy], $options);
201+
}
202+
207203
/**
208204
* Apply prefix and suffix to filename
209205
*

0 commit comments

Comments
 (0)