19
19
* 'ls'
20
20
* ]);
21
21
* ```
22
- * @deprecated
22
+ * @deprecated will be deleted in v1.2
23
23
*/
24
24
class ShellHelper
25
25
{
26
+ /**
27
+ * @param array $commands
28
+ * @return string
29
+ * @deprecated
30
+ */
26
31
public static function exec (array $ commands )
27
32
{
28
33
$ res = "Executing shell commands: \n" ;
@@ -41,18 +46,20 @@ public static function exec(array $commands)
41
46
/**
42
47
* Returning an absolute path to "php". It is useful, cause just "php" not working!
43
48
* @return string
49
+ * @deprecated
44
50
*/
45
51
public static function php ()
46
52
{
47
53
if (defined ('PHP_BINDIR ' ) && PHP_BINDIR ) {
48
54
return PHP_BINDIR . '/php ' ;
49
- } else if (defined ('PHP_BINARY ' ) && PHP_BINARY ) {
55
+ }
56
+ if (defined ('PHP_BINARY ' ) && PHP_BINARY ) {
50
57
return PHP_BINARY . '/php ' ;
51
- } else if (defined ('PHP_BINDER ' ) && PHP_BINDER ) {
58
+ }
59
+ if (defined ('PHP_BINDER ' ) && PHP_BINDER ) {
52
60
return PHP_BINDER . '/php ' ;
53
- } else {
54
- return 'php ' ;
55
61
}
62
+ return 'php ' ;
56
63
}
57
64
}
58
65
@@ -65,17 +72,25 @@ public static function php()
65
72
* LogHelper::init('log_file.txt');
66
73
* LogHelper::log('message for logging');
67
74
* ```
68
- * @deprecated
75
+ * @deprecated will be deleted in v1.2
69
76
*/
70
77
class LogHelper
71
78
{
72
79
public static $ log_file ;
73
80
81
+ /**
82
+ * @param $log_file
83
+ * @deprecated
84
+ */
74
85
public static function init ($ log_file )
75
86
{
76
87
static ::$ log_file = $ log_file ;
77
88
}
78
89
90
+ /**
91
+ * @param $message
92
+ * @deprecated
93
+ */
79
94
public static function log ($ message )
80
95
{
81
96
if (empty (static ::$ log_file )) {
0 commit comments