Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
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
Björn Fischer
z-push
Commits
6b17c078
Commit
6b17c078
authored
Mar 10, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-856 Remove while(1)s.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
8fcb38b5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
getitemestimate.php
src/lib/request/getitemestimate.php
+2
-1
itemoperations.php
src/lib/request/itemoperations.php
+4
-2
settings.php
src/lib/request/settings.php
+2
-1
No files found.
src/lib/request/getitemestimate.php
View file @
6b17c078
...
...
@@ -67,7 +67,8 @@ class GetItemEstimate extends RequestProcessor {
$spastatus
=
false
;
// read the folder properties
while
(
1
)
{
WBXMLDecoder
::
ResetInWhile
(
"getItemEstimateFolders"
);
while
(
WBXMLDecoder
::
InWhile
(
"getItemEstimateFolders"
))
{
if
(
self
::
$decoder
->
getElementStartTag
(
SYNC_SYNCKEY
))
{
try
{
$spa
->
SetSyncKey
(
self
::
$decoder
->
getElementContent
());
...
...
src/lib/request/itemoperations.php
View file @
6b17c078
...
...
@@ -59,7 +59,8 @@ class ItemOperations extends RequestProcessor {
$itemoperations
=
array
();
//ItemOperations can either be Fetch, EmptyFolderContents or Move
while
(
1
)
{
WBXMLDecoder
::
ResetInWhile
(
"itemOperationsActions"
);
while
(
WBXMLDecoder
::
InWhile
(
"itemOperationsActions"
))
{
//TODO check if multiple item operations are possible in one request
$el
=
self
::
$decoder
->
getElement
();
...
...
@@ -182,7 +183,8 @@ class ItemOperations extends RequestProcessor {
if
(
self
::
$decoder
->
getElementStartTag
(
SYNC_ITEMOPERATIONS_SCHEMA
))
{
// read schema tags
while
(
1
)
{
WBXMLDecoder
::
ResetInWhile
(
"itemOperationsSchema"
);
while
(
WBXMLDecoder
::
InWhile
(
"itemOperationsSchema"
))
{
// TODO save elements
$el
=
self
::
$decoder
->
getElement
();
$e
=
self
::
$decoder
->
peek
();
...
...
src/lib/request/settings.php
View file @
6b17c078
...
...
@@ -64,7 +64,8 @@ class Settings extends RequestProcessor {
// - DeviceInformation
// - UserInformation
// Each of them should only be once per request. Each property must be processed in order.
while
(
1
)
{
WBXMLDecoder
::
ResetInWhile
(
"settingsMain"
);
while
(
WBXMLDecoder
::
InWhile
(
"settingsMain"
))
{
$propertyName
=
""
;
if
(
self
::
$decoder
->
getElementStartTag
(
SYNC_SETTINGS_OOF
))
{
$propertyName
=
SYNC_SETTINGS_OOF
;
...
...
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