Skip to content

Commit

Permalink
cs fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Nov 2, 2018
1 parent d6bbb7b commit feed14d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* Autoload Object.
*
*
* A autoload or autoload-dev object.
*
* @author Basil Suter <[email protected]>
Expand Down
18 changes: 9 additions & 9 deletions src/DataIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@

/**
* Data Iterator.
*
*
* This class mainly helps to generate the itrator for a given section. The `loadData()` method must be run in
* order to retrieve data.
*
*
* ```php
* public function createIteratorItem()
* {
* return new Package($this->reader, $this->key(), current($this->data));
* }
* ```
*
*
* ```php
* public function assignIteratorData()
* {
* return $this->reader->contentSection('require', []);
* }
* ```
*
*
* run `loadData()` in constructor.
*
*
* @author Basil Suter <[email protected]>
* @since 1.1.0
*/
Expand All @@ -36,7 +36,7 @@ abstract class DataIterator implements Iterator, Countable

/**
* Assign the data.
*
*
* Returns an array with data which should be assigned to the iterator.
*
* @return array
Expand All @@ -57,8 +57,8 @@ abstract public function createIteratorItem();
*/
public function loadData()
{
$this->data = $this->assignIteratorData();
}
$this->data = $this->assignIteratorData();
}

/**
* @inheritDoc
Expand Down Expand Up @@ -107,4 +107,4 @@ public function count()
{
return count($this->data);
}
}
}
3 changes: 1 addition & 2 deletions src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
use Composer\Semver\VersionParser;
use Composer\Semver\Comparator;


/**
* Package Object.
*
* Package details which used for require and require-dev sections.
*
*
* @author Basil Suter <[email protected]>
* @since 1.0.0
*/
Expand Down

0 comments on commit feed14d

Please sign in to comment.