namespacing: \Shaarli\FileUtils
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
8c0f19c797
commit
a0c4dbd91c
7 changed files with 12 additions and 11 deletions
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
use Shaarli\Exceptions\IOException;
|
||||
namespace Shaarli;
|
||||
|
||||
require_once 'exceptions/IOException.php';
|
||||
use Shaarli\Exceptions\IOException;
|
||||
|
||||
/**
|
||||
* Class FileUtils
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
use DateTime;
|
||||
use Exception;
|
||||
use FileUtils;
|
||||
|
||||
/**
|
||||
* Class History
|
||||
|
@ -71,7 +70,7 @@ class History
|
|||
* History constructor.
|
||||
*
|
||||
* @param string $historyFilePath History file path.
|
||||
* @param int $retentionTime History content rentention time in seconds.
|
||||
* @param int $retentionTime History content retention time in seconds.
|
||||
*
|
||||
* @throws Exception if something goes wrong.
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Shaarli\Exceptions\IOException;
|
||||
use Shaarli\FileUtils;
|
||||
|
||||
/**
|
||||
* Data storage for links.
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
},
|
||||
"require": {
|
||||
"php": ">=5.6",
|
||||
"ext-zlib": "*",
|
||||
"shaarli/netscape-bookmark-parser": "^2.1",
|
||||
"erusev/parsedown": "^1.6",
|
||||
"slim/slim": "^3.0",
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<?php
|
||||
|
||||
use Shaarli\Exceptions\IOException;
|
||||
namespace Shaarli;
|
||||
|
||||
require_once 'application/FileUtils.php';
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Class FileUtilsTest
|
||||
*
|
||||
* Test file utility class.
|
||||
*/
|
||||
class FileUtilsTest extends PHPUnit_Framework_TestCase
|
||||
class FileUtilsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @var string Test file path.
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
use DateTime;
|
||||
use Exception;
|
||||
use FileUtils;
|
||||
|
||||
class HistoryTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Shaarli\FileUtils;
|
||||
use Shaarli\History;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue