Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PasteBin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIERRON Laurent
PasteBin
Commits
a93c8cec
Unverified
Commit
a93c8cec
authored
2 years ago
by
El RIDO
Browse files
Options
Downloads
Patches
Plain Diff
fold extracted function back into the one remaining place calling it
parent
53ab5762
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Data/Filesystem.php
+1
-15
1 addition, 15 deletions
lib/Data/Filesystem.php
with
1 addition
and
15 deletions
lib/Data/Filesystem.php
+
1
−
15
View file @
a93c8cec
...
...
@@ -395,7 +395,7 @@ class Filesystem extends AbstractData
public
function
getAllPastes
()
{
$pastes
=
array
();
foreach
(
$this
->
_getPasteIterator
(
)
as
$file
)
{
foreach
(
new
\GlobIterator
(
$this
->
_path
.
self
::
PASTE_FILE_PATTERN
)
as
$file
)
{
if
(
$file
->
isFile
())
{
$pastes
[]
=
$file
->
getBasename
(
'.php'
);
}
...
...
@@ -439,20 +439,6 @@ class Filesystem extends AbstractData
'.discussion'
.
DIRECTORY_SEPARATOR
;
}
/**
* Get an iterator matching paste files.
*
* Note that creating the iterator issues the glob() call, so we can't pre-
* generate this object before files that should get matched exist.
*
* @access private
* @return \GlobIterator
*/
private
function
_getPasteIterator
()
{
return
new
\GlobIterator
(
$this
->
_path
.
self
::
PASTE_FILE_PATTERN
);
}
/**
* store the data
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment