Skip to content

Commit

Permalink
inline docs revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
steevenz committed Feb 9, 2019
1 parent 3b05b91 commit a5db547
Show file tree
Hide file tree
Showing 15 changed files with 210 additions and 49 deletions.
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
<div align="center" markdown="1">

[![O2System Framework](http://o2system.id/assets/img/logo/logo-white-200px.png?logo)](http://o2system.id)
</div>

<div align="center" markdown="1">

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/o2system/filesystem/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/o2system/filesystem/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/o2system/filesystem/badges/build.png?b=master)](https://scrutinizer-ci.com/g/o2system/filesystem/build-status/master)
[![Latest Stable Version](https://poser.pugx.org/o2system/filesystem/v/stable)](https://packagist.org/packages/o2system/filesystem)
[![Total Downloads](https://poser.pugx.org/o2system/filesystem/downloads)](https://packagist.org/packages/o2system/filesystem)
[![License](https://poser.pugx.org/o2system/filesystem/license)](https://packagist.org/packages/o2system/filesystem)

</div>

# O2System Filesystem
O2System Filesystem is an Open Source PHP Convenience Library for reading, writing and appending data from and into files and directories, which is built for working more powerfully with O2System Framework, but it also can be used with other frameworks as a standalone version with limited features.

Expand Down Expand Up @@ -60,19 +53,12 @@ $downloader->download();
Documentation is available on this repository [wiki](https://github.com/o2system/filesystem/wiki) or visit this repository [github page](https://o2system.github.io/filesystem).

### Ideas and Suggestions
Please kindly mail us at [o2system.framework@gmail.com](mailto:o2system.framework@gmail.com])
Please kindly mail us at [contact@o2system.id](mailto:contact@o2system.id])

### Bugs and Issues
Please kindly submit your [issues at Github](http://github.com/o2system/filesystem/issues) so we can track all the issues along development and send a [pull request](http://github.com/o2system/filesystem/pulls) to this repository.

### System Requirements
- PHP 7.2+
- PHP 7.2+ with FileInfo (finfo) extension
- [Composer](https://getcomposer.org)
- [O2System Kernel](https://github.com/o2system/kernel)

### Credits
|Role|Name|
|----|----|
|Founder and Lead Projects|[Steeven Andrian Salim](http://steevenz.com)|
|Documentation|[Steeven Andrian Salim](http://steevenz.com)
|Github Pages Designer| [Teguh Rianto](http://teguhrianto.tk)
2 changes: 1 addition & 1 deletion src/Config/Mimes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
11 changes: 10 additions & 1 deletion src/Directory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -184,6 +184,15 @@ public function setOwner($user)

// ------------------------------------------------------------------------

/**
* Directory::findFilesByExtension
*
* Find files by extension.
*
* @param string $extension
*
* @return array
*/
public function findFilesByExtension($extension)
{
$extension = trim($extension, '.');
Expand Down
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Files/Abstracts/AbstractFile.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Files/CsvFile.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Files/IniFile.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -35,7 +35,7 @@ class IniFile extends AbstractFile
*
* @return mixed
*/
public function readFile($filePath, array $options = [])
public function readFile($filePath = null, array $options = [])
{
$items = parse_ini_file(
$filePath,
Expand Down
4 changes: 2 additions & 2 deletions src/Files/JsonFile.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -17,7 +17,7 @@

use O2System\Filesystem\File;
use O2System\Filesystem\Files\Abstracts\AbstractFile;
use O2System\Spl\Datastructures\SplArrayObject;
use O2System\Spl\DataStructures\SplArrayObject;
use O2System\Spl\Iterators\ArrayIterator;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Files/XmlFile.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -17,7 +17,7 @@

use O2System\Filesystem\File;
use O2System\Filesystem\Files\Abstracts\AbstractFile;
use O2System\Spl\Datastructures\SplArrayObject;
use O2System\Spl\DataStructures\SplArrayObject;
use O2System\Spl\Iterators\ArrayIterator;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Files/ZipFile.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* This file is part of the O2System PHP Framework package.
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -32,7 +32,7 @@ class ZipFile extends AbstractFile
*
* @return mixed
*/
public function readFile($filePath, array $options = [])
public function readFile($filePath = null, array $options = [])
{
$filePath = empty($filePath)
? $this->filePath
Expand Down
Loading

0 comments on commit a5db547

Please sign in to comment.