Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize FileRepository #1898

Merged
merged 2 commits into from
Aug 17, 2024

Conversation

solomon-ochepa
Copy link
Contributor

Update DocBlock (methods documentation comments)

Rearranged methods based on operations and relativity.

Update: all() -> all(?bool $enabled = null)

Add the ability to filter modules by status

Update: count() -> count(?bool $enabled = null)

Add the ability to filter modules by status

Add: collect(?bool $status = true): Collection

Simplified methods name:

  • addLocation() -> add_path()
  • getPaths() -> paths()
  • getScanPaths() -> scanPaths()
  • createModule() -> module()
  • getCached() -> cached()
  • getByStatus() - > status()
  • allEnabled() -> all(true)
  • allDisabled() -> all(false)
  • getOrdered() -> ordered()
  • getPath() -> path()
  • getModulePath() -> modulePath()
  • getUsedStoragePath() -> usedStoragePath()
  • setUsed() -> use()
  • getUsedNow() -> used()
  • getFiles() -> files()
  • getAssetsPath() -> assetsPath()
  • isEnabled() ->enabled()
  • isDisabled() -> disabled()
  • getStubPath() -> stubPath()

All existing methods are intact.

solomon-ochepa and others added 2 commits July 21, 2024 15:03
Update DocBlock (methods documentation comments)

Rearranged methods based on operations and relativity.

Update: all() -> all(?bool $enabled = null)
Add the ability to filter modules by status

Update: count() -> count(?bool $enabled = null)
Add the ability to filter modules by status

Add: collect(?bool $status = true): Collection

Simplified methods name:
- addLocation() -> add_path()
- getPaths() -> paths()
- getScanPaths() -> scanPaths()
- createModule() -> module()
- getCached() -> cached()
- getByStatus() - > status()
- allEnabled() -> all(true)
- allDisabled() -> all(false)
- getOrdered() -> ordered()
- getPath() -> path()
- getModulePath() -> modulePath()
- getUsedStoragePath() -> usedStoragePath()
- setUsed() -> use()
- getUsedNow() -> used()
- getFiles() -> files()
- getAssetsPath() -> assetsPath()
- isEnabled() ->enabled()
- isDisabled() -> disabled()
- getStubPath() -> stubPath()
@dcblogdev dcblogdev merged commit ecea05a into nWidart:master Aug 17, 2024
4 checks passed
dcblogdev added a commit that referenced this pull request Aug 17, 2024
…epository"

This reverts commit ecea05a, reversing
changes made to fa92a63.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants