Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
97af2dbe
Commit
97af2dbe
authored
Mar 03, 2018
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix trailing whitespace, add PHPCS rule
parent
47ad5a8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
CacheClearProcess.php
qa-include/Q2A/Recalc/CacheClearProcess.php
+1
-1
DeleteHiddenAnswers.php
qa-include/Q2A/Recalc/DeleteHiddenAnswers.php
+1
-1
ReindexContentPageReindex.php
qa-include/Q2A/Recalc/ReindexContentPageReindex.php
+1
-1
ruleset.xml
qa-tests/phpcs/ruleset.xml
+6
-0
No files found.
qa-include/Q2A/Recalc/CacheClearProcess.php
View file @
97af2dbe
...
...
@@ -38,7 +38,7 @@ class Q2A_Recalc_CacheClearProcess extends Q2A_Recalc_AbstractStep
$this
->
state
->
transition
(
'docacheclear_complete'
);
return
false
;
}
$deleted
=
$cacheDriver
->
clear
(
$limit
,
$this
->
state
->
next
,
(
$this
->
state
->
operation
===
'docachetrim_process'
));
$this
->
state
->
done
+=
$deleted
;
$this
->
state
->
next
+=
$limit
-
$deleted
;
// skip files that weren't deleted on next iteration
...
...
qa-include/Q2A/Recalc/DeleteHiddenAnswers.php
View file @
97af2dbe
...
...
@@ -36,7 +36,7 @@ class Q2A_Recalc_DeleteHiddenAnswers extends Q2A_Recalc_AbstractStep
$this
->
state
->
transition
(
'dodeletehidden_questions'
);
return
false
;
}
require_once
QA_INCLUDE_DIR
.
'app/posts.php'
;
$postid
=
$posts
[
0
];
...
...
qa-include/Q2A/Recalc/ReindexContentPageReindex.php
View file @
97af2dbe
...
...
@@ -36,7 +36,7 @@ class Q2A_Recalc_ReindexContentPageReindex extends Q2A_Recalc_AbstractStep
$this
->
state
->
transition
(
'doreindexcontent_postcount'
);
return
false
;
}
require_once
QA_INCLUDE_DIR
.
'app/format.php'
;
$lastpageid
=
max
(
array_keys
(
$pages
));
...
...
qa-tests/phpcs/ruleset.xml
View file @
97af2dbe
...
...
@@ -37,4 +37,10 @@
</properties>
</rule>
<rule
ref=
"Squiz.WhiteSpace.SuperfluousWhitespace"
>
<properties>
<property
name=
"ignoreBlankLines"
value=
"false"
/>
</properties>
</rule>
</ruleset>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment