Skip to content

Commit 2086f91

Browse files
committed
0.0.3
1 parent f1922b3 commit 2086f91

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

class/Log.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ class Log implements LogInterface
1818
*/
1919
private static $config = array();
2020

21+
/**
22+
* Log constructor.
23+
*/
24+
public function __construct()
25+
{
26+
}
27+
2128
/**
2229
* Write
2330
* @param string $name
@@ -51,21 +58,16 @@ private static function write($name = '', $type = '', $message = '', $data = arr
5158
return true;
5259
}
5360

54-
/**
55-
* Log constructor.
56-
*/
57-
public function __construct()
58-
{
59-
}
60-
6161
/**
6262
* Add Config
6363
* @param string $name
6464
* @param string $filePath
65+
* @return bool
6566
*/
6667
public static function addConfig($name = '', $filePath = 'log.log')
6768
{
6869
self::$config[$name] = $filePath;
70+
return true;
6971
}
7072

7173
/**
@@ -79,10 +81,12 @@ public static function getConfig()
7981

8082
/**
8183
* Clear Config
84+
* @return bool
8285
*/
8386
public static function clearConfig()
8487
{
8588
self::$config = array();
89+
return true;
8690
}
8791

8892
/**

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
}
3939
},
4040
"require": {
41-
"php": ">=5.3.0",
42-
"monolog/monolog": "1.23.*"
41+
"php": ">=5.3.0"
4342
},
4443
"require-dev": {
4544
"CodeMommy/DevelopPHP": "dev-master"

interface/LogInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function __construct();
2222
* Add Config
2323
* @param string $name
2424
* @param string $filePath
25+
* @return bool
2526
*/
2627
public static function addConfig($name = '', $filePath = 'log.log');
2728

@@ -33,6 +34,7 @@ public static function getConfig();
3334

3435
/**
3536
* Clear Config
37+
* @return bool
3638
*/
3739
public static function clearConfig();
3840

test/LogTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
namespace CodeMommy\Test;
1111

12-
use CodeMommy\DevelopPHP\Library\Config;
1312
use Exception;
1413
use CodeMommy\DevelopPHP\PHPUnitBase;
1514
use CodeMommy\LogPHP\Log;

0 commit comments

Comments
 (0)