OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
DependencyResolver
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
Decisions.php
5.1 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
DefaultPolicy.php
9.12 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GenericRule.php
2.12 KB
01/31/2018 03:28:18 PM
rw-r--r--
📁
Operation
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
PolicyInterface.php
746 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
Pool.php
13.88 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Problem.php
9.45 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Request.php
1.91 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Rule.php
8.99 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Rule2Literals.php
2.44 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RuleSet.php
4.06 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RuleSetGenerator.php
12.41 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RuleSetIterator.php
2.28 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RuleWatchChain.php
1.37 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RuleWatchGraph.php
5.2 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RuleWatchNode.php
2.68 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Solver.php
26.15 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SolverBugException.php
757 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
SolverProblemsException.php
2.69 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Transaction.php
7.55 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: RuleSetIterator.php
Close
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\DependencyResolver; /** * @author Nils Adermann <naderman@naderman.de> */ class RuleSetIterator implements \Iterator { protected $rules; protected $types; protected $currentOffset; protected $currentType; protected $currentTypeOffset; public function __construct(array $rules) { $this->rules = $rules; $this->types = array_keys($rules); sort($this->types); $this->rewind(); } public function current() { return $this->rules[$this->currentType][$this->currentOffset]; } public function key() { return $this->currentType; } public function next() { $this->currentOffset++; if (!isset($this->rules[$this->currentType])) { return; } if ($this->currentOffset >= count($this->rules[$this->currentType])) { $this->currentOffset = 0; do { $this->currentTypeOffset++; if (!isset($this->types[$this->currentTypeOffset])) { $this->currentType = -1; break; } $this->currentType = $this->types[$this->currentTypeOffset]; } while (isset($this->types[$this->currentTypeOffset]) && !count($this->rules[$this->currentType])); } } public function rewind() { $this->currentOffset = 0; $this->currentTypeOffset = -1; $this->currentType = -1; do { $this->currentTypeOffset++; if (!isset($this->types[$this->currentTypeOffset])) { $this->currentType = -1; break; } $this->currentType = $this->types[$this->currentTypeOffset]; } while (isset($this->types[$this->currentTypeOffset]) && !count($this->rules[$this->currentType])); } public function valid() { return isset($this->rules[$this->currentType]) && isset($this->rules[$this->currentType][$this->currentOffset]); } }