Skip to content

Commit 7c23c17

Browse files
authoredJan 28, 2021
v1.5
Changed fixed: incorrect return type in tableRowStart method doc fixed: Program methods visibility (now public) formatting
2 parents 318379c + 4d48725 commit 7c23c17

9 files changed

+79
-247
lines changed
 

‎LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2020 kristuff
3+
Copyright (c) 2017-2021 kristuff
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md

+23-188
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33

44
> A mini PHP library to build beautiful CLI apps and reports
55
6-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4fd3728ced2b4d95b0eb549db7a0053b)](https://www.codacy.com/manual/kristuff_/mishell?utm_source=github.com&utm_medium=referral&utm_content=kristuff/mishell&utm_campaign=Badge_Grade)
7-
[![Maintainability](https://api.codeclimate.com/v1/badges/df91e6e4dda87ee128f1/maintainability)](https://codeclimate.com/github/kristuff/mishell/maintainability)
8-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kristuff/mishell/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kristuff/mishell/?branch=master)
96
[![Build Status](https://scrutinizer-ci.com/g/kristuff/mishell/badges/build.png?b=master)](https://scrutinizer-ci.com/g/kristuff/mishell/build-status/master)
7+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kristuff/mishell/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kristuff/mishell/?branch=master)
108
[![Latest Stable Version](https://poser.pugx.org/kristuff/mishell/v/stable)](https://packagist.org/packages/kristuff/mishell)
119
[![License](https://poser.pugx.org/kristuff/mishell/license)](https://packagist.org/packages/kristuff/mishell)
1210

@@ -15,39 +13,49 @@
1513
- [Features](#features)
1614
- [Requirements](#requirements)
1715
- [Install](#install)
16+
- [Documentation](#documentation)
1817
- [Run the sample](#run-the-sample)
19-
- [Documentation](#documentation) *in progress...*
2018
- [License](#license)
2119

2220
Features
2321
--------
24-
- Writing methods:
25-
- Basic or colored/stylized text
26-
- Tables
27-
- Progress message
22+
- Printing methods:
23+
- Basic or colored/stylized text
24+
- Tables
25+
- Progress message
2826
- Get user inputs
29-
- standard text input
30-
- hidden text input (no supported on Windows)
31-
- numeric values
32-
- Open new/restore 'window' (no supported on Windows)
33-
- Run the bell
27+
- standard text input
28+
- hidden text input (no supported on Windows)
29+
- numeric values
30+
- Open new/restore 'window' (no supported on Windows)
31+
- Run the bell
3432

3533
Requirements
3634
------------
3735
- PHP >= 5.6
3836

3937
Install
4038
--------
39+
4140
Deploy with your project (in `composer.json`):
41+
4242
```
4343
{
4444
...
4545
"require": {
46-
"kristuff/mishell": ">=1.4-stable"
46+
"kristuff/mishell": ">=1.5-stable"
4747
}
4848
}
4949
```
5050

51+
52+
Documentation
53+
--------
54+
55+
- [Project page](https://kristuff.fr/projects/mishell)
56+
- [API documentation](https://kristuff.fr/projects/mishell/doc) *in progress...*
57+
58+
5159
Run the sample
5260
--------
5361
![demo](doc/screenshots/demo.gif)
@@ -69,179 +77,6 @@ Run the sample
6977
$ php demo/index.php
7078
```
7179

72-
Documentation
73-
--------
74-
75-
*still in progress...*
76-
77-
1. [Overview](#1-overview)
78-
1.1 [Working with styles](#11-working-with-styles)
79-
1.2 [Known foreground colors](#12-known-foreground-colors)
80-
1.3 [Known background colors](#13-known-background-colors)
81-
1.4 [Known formats](#14-known-formats)
82-
2. [Api methods](#2-api-methods)
83-
2.1 [Writing methods](#21-writing-methods)
84-
2.2 [Text/layout builder methods](#22-text-layout-builder-methods)
85-
2.3 [Misc](#23-misc)
86-
87-
88-
## 1. Overview
89-
90-
The lib consists of one class `\Kristuff\Mishell\Console` that contains mainly 3 types of methods:
91-
92-
- Printing methods (normal or stylized/colorized text) : print something
93-
- Stylized/colorized CLI text builder methods : returns a formatted string
94-
- Layout string builder methods (tables, padding) : returns a formatted string
95-
96-
Basic Example:
97-
```php
98-
Use Kristuff\Mishell\Console;
99-
100-
Console::log(' I will ask you something', 'red');
101-
102-
$value = Console::askInt('Please enter a number > ');
103-
104-
if ($value !== false){
105-
Console::log('=> The value you entered is [' . Console::text($value, 'yellow') . ']');
106-
}
107-
```
108-
### 1.1 Working with styles
109-
110-
To be more flexible, most writing/text/layout builder methods take an indefinite number of arguments called `[styles]` in this documentation.
111-
The arguments are analyzed as follows:
112-
113-
- First argument that matchs to a known foreground color is taken as foreground color.
114-
- First argument that matchs to a known background color (when a foreground color is already defined) is taken as background color (you cannot use a background color without set explicitly foreground color before).
115-
- Other arguments that match to a known format are taken as formats.
116-
117-
So except for background that should be after foreground, style arguments order does not matter. Just note that the `'none'` argument will reset any previous style arguments.
118-
119-
Examples:
120-
```php
121-
<?php
122-
Use Kristuff\Mishell\Console;
123-
124-
Console::log('some text', 'blue'); // prints a blue text
125-
Console::log('some text', 'bold'); // prints a text style bold
126-
Console::log('some text', 'lightblue', 'underlined'); // prints a blue underlined text
127-
Console::log('some text', 'blue', 'white'); // prints a blue text on white
128-
Console::log('some text', 'blue', 'white', 'underlined'); // prints a blue text on white and style underline
129-
Console::log('some text', 'blue', 'white', 'underlined', 'bold'); // prints a blue text on white and styles underline+bold
130-
131-
// prints a blue text on white and style reverse (so => white on blue...)
132-
Console::log('some text', 'blue', 'white', 'reverse');
133-
134-
// prints a blue text on white and style underline
135-
// (except background after foreground, args order does not matter)
136-
Console::log('some text', 'blue', 'white', 'underlined');
137-
Console::log('some text', 'underlined', 'blue', 'white');
138-
Console::log('some text', 'lightblue', 'underlined', 'white');
139-
140-
// Prints a text with no style at all (note the 'none' argument at the end...)
141-
Console::log('some text', 'lightblue', 'underlined', 'none');
142-
[...]
143-
//Got it?
144-
```
145-
146-
### 1.2 Known foreground colors
147-
148-
Name | ANSI Code
149-
------------ | --------
150-
black | \033[30m
151-
red | \033[31m
152-
green | \033[32m
153-
yellow | \033[33m
154-
blue | \033[34m
155-
magenta | \033[35m
156-
cyan | \033[36m
157-
lightgray | \033[37m
158-
default | \033[39m
159-
darkgray | \033[90m
160-
lightred | \033[91m
161-
lightgreen | \033[92m
162-
lightyellow | \033[93m
163-
lightblue | \033[94m
164-
lightmagenta | \033[95m
165-
lightcyan | \033[96m
166-
white | \033[97m
167-
168-
### 1.3 Known background colors
169-
170-
Name | ANSI Code
171-
------------ | --------
172-
black | \033[40m
173-
red | \033[41m
174-
green | \033[42m
175-
yellow | \033[43m
176-
blue | \033[44m
177-
magenta | \033[45m
178-
cyan | \033[46m
179-
lightgray | \033[47m
180-
default | \033[49m
181-
darkgray | \033[100m
182-
lightred | \033[101m
183-
lightgreen | \033[102m
184-
lightyellow | \033[103m
185-
lightblue | \033[104m
186-
lightmagenta | \033[105m
187-
lightcyan | \033[106m
188-
white | \033[107m
189-
190-
### 1.4 Known formats
191-
192-
Name | ANSI Code
193-
--------------- | --------
194-
none | \033[0m
195-
bold | \033[1m
196-
underlined | \033[4m
197-
blink | \033[5m
198-
reverse | \033[7m
199-
200-
## 2. Api methods
201-
### 2.1 Writing methods
202-
203-
Method | Description | Return| Note
204-
--- | --- | --- | ---
205-
`Console::print($str, [styles])` | Prints a [formatted] string in the console. | `void` |
206-
`Console::log($str, [styles])` | Prints a [formatted] string in the console with new line. | `void` |
207-
`Console::reLog($str, [styles])` | Prints or overwites the current line with a [formatted] string. | `void` |
208-
`Console::ask($str, [styles])` | Prints a [formatted] string in the console and waits for an input. Returns that input. |`string` |
209-
`Console::askInt($str, [styles])` | Prints a [formatted] string in the console and waits for an int input. | `int`&#124;`bool` |
210-
`Console::askPassword($str, [styles])` | Prints a [formatted] string in the console and waits for an input. Returns but does not print user input. | `string` | **Not supported** on windows platform
211-
212-
### 2.2 Text/layout builder methods
213-
214-
Method | Description | Return | Note
215-
--- | --- | --- | ---
216-
`Console::pad(TODO)` | TODO | `string` |
217-
`Console::tableRow(TODO)` | TODO | `string` |
218-
`Console::tableRowStart(TODO)` | TODO | `string` |
219-
`Console::tableRowEmpty(TODO)` | TODO | `string` |
220-
`Console::tableRowSeparator(TODO)` | TODO | `string` |
221-
`Console::tableRowCell(TODO)` | TODO | `string` |
222-
`Console::tableResetDefaults(TODO)` | TODO | `void` |
223-
224-
225-
### 2.3 Misc
226-
227-
Method | Description | Return | Note
228-
--- | --- | --- | ---
229-
`Console::clear()` | Clear the console. | `void` |
230-
`Console::bell()` | Play the bell if available. | `void` |
231-
`Console::newWindow()` | Switch to a new window | `void` |
232-
`Console::restoreWindow()` | Restore the previous window | `void` |
233-
`Console::HideInput()` | Hide user input in window | `void` | **Not supported** on windows platform
234-
`Console::restoreInput()` | Restore user input window | `void` | **Not supported** on windows platform
235-
`Console::getLines()` | Get the number of lines in terminal | `int` | **Not supported** on windows platform
236-
`Console::getColumns()` | Get the number of colums in terminal | `int` | **Not supported** on windows platform
237-
238-
[...] TODO
239-
+ tables methods
240-
+ enum styles
241-
...
242-
243-
244-
24580
Bonus
24681
-----
24782
You can also do unuseful things like the blue screen of the death^^ Check the demo
@@ -253,7 +88,7 @@ License
25388

25489
The MIT License (MIT)
25590

256-
Copyright (c) 2017-2020 Kristuff
91+
Copyright (c) 2017-2021 Kristuff
25792

25893
Permission is hereby granted, free of charge, to any person obtaining a copy
25994
of this software and associated documentation files (the "Software"), to deal

‎composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "kristuff/mishell",
33
"description": "A mini PHP library to build beautiful CLI apps and reports",
4-
"homepage": "https://github.com/kristuff/mishell",
4+
"homepage": "https://kristuff.fr/projects/mishell",
5+
"keywords": ["cli", "table", "color"],
56
"type": "library",
67
"license": "MIT",
78
"authors": [

‎demo/index.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function printLoader()
2424
Console::log(' '. Console::text(" | | | | | | | ___) | | | | __/ | | ", 'red'));
2525
Console::log(' '. Console::text(" |_| |_| |_|_||____/|_| |_|\___|_|_| ", 'red'));
2626
Console::log(' '. Console::text(" ", 'red'));
27-
Console::log(' '. Console::text(" Version 1.4 ", 'red'));
28-
Console::log(' '. Console::text(" © 2017-2020 Kristuff ", 'red'));
27+
Console::log(' '. Console::text(" Version 1.5 ", 'red'));
28+
Console::log(' '. Console::text(" © 2017-2021 Kristuff ", 'red'));
2929
Console::log(' '. Console::text(" ", 'red'));
3030
Console::log();
3131
Console::log();
@@ -84,7 +84,7 @@ function printHeader()
8484
Console::log(Console::text(' Kristuff/Mishell ', 'darkgray') . Console::text(' v1.2 ', 'white', 'green'));
8585
Console::log(Console::text(' Made with ', 'darkgray') . Console::text('', 'red') . Console::text(' in France', 'darkgray'));
8686
Console::log(
87-
Console::text(' © 2017-2020 Kristuff (', 'darkgray') .
87+
Console::text(' © 2017-2021 Kristuff (', 'darkgray') .
8888
Console::text('https://github.com/kristuff)', 'darkgray', 'underlined') .
8989
Console::text(')', 'darkgray')
9090
);

‎lib/Console.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* For the full copyright and license information, please view the LICENSE
1414
* file that was distributed with this source code.
1515
*
16-
* @version 1.4.0
17-
* @copyright 2017-2020 Kristuff
16+
* @version 1.5.0
17+
* @copyright 2017-2021 Kristuff
1818
*/
1919

2020
namespace Kristuff\Mishell;

‎lib/Program.php

+5-9
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* For the full copyright and license information, please view the LICENSE
1414
* file that was distributed with this source code.
1515
*
16-
* @version 1.4.0
17-
* @copyright 2017-2020 Kristuff
16+
* @version 1.5.0
17+
* @copyright 2017-2021 Kristuff
1818
*/
1919

2020
namespace Kristuff\Mishell;
@@ -45,7 +45,7 @@ public static function exit(int $code = 0) {
4545
*
4646
* @return bool True if the short or long argument exist in the arguments array, otherwise false
4747
*/
48-
protected static function inArguments(array $arguments, string $shortArg, string $longArg)
48+
public static function inArguments(array $arguments, string $shortArg, string $longArg)
4949
{
5050
return array_key_exists($shortArg, $arguments) || array_key_exists($longArg, $arguments);
5151
}
@@ -63,14 +63,10 @@ protected static function inArguments(array $arguments, string $shortArg, string
6363
* @return string|null
6464
*
6565
*/
66-
protected static function getArgumentValue(array $arguments, string $shortArg, string $longArg)
66+
public static function getArgumentValue(array $arguments, string $shortArg, string $longArg):? string
6767
{
68-
$val = array_key_exists($shortArg, $arguments) ? $arguments[$shortArg] :
68+
return array_key_exists($shortArg, $arguments) ? $arguments[$shortArg] :
6969
(array_key_exists($longArg, $arguments) ? $arguments[$longArg] : null);
70-
71-
72-
return $val;
73-
7470
}
7571

7672
}

‎lib/ShellColoredPrinter.php

+19-19
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* For the full copyright and license information, please view the LICENSE
1414
* file that was distributed with this source code.
1515
*
16-
* @version 1.4.0
17-
* @copyright 2017-2020 Kristuff
16+
* @version 1.5.0
17+
* @copyright 2017-2021 Kristuff
1818
*/
1919

2020
namespace Kristuff\Mishell;
@@ -25,7 +25,7 @@ abstract class ShellColoredPrinter extends \Kristuff\Mishell\ShellPrinter
2525
* Foreground colors constants
2626
*
2727
* @access protected
28-
* @static var
28+
* @static
2929
* @var array
3030
*/
3131
protected static $foregroundColors = array(
@@ -52,7 +52,7 @@ abstract class ShellColoredPrinter extends \Kristuff\Mishell\ShellPrinter
5252
* Background colors constants
5353
*
5454
* @access protected
55-
* @static var
55+
* @static
5656
* @var array
5757
*/
5858
protected static $backgroundColors = array(
@@ -79,7 +79,7 @@ abstract class ShellColoredPrinter extends \Kristuff\Mishell\ShellPrinter
7979
* Text styles constants
8080
*
8181
* @access public
82-
* @static var
82+
* @static
8383
* @var array
8484
*/
8585
protected static $options = array(
@@ -98,7 +98,7 @@ abstract class ShellColoredPrinter extends \Kristuff\Mishell\ShellPrinter
9898
* Get an array of all available styles
9999
*
100100
* @access public
101-
* @static method
101+
* @static
102102
*
103103
* @return array
104104
*/
@@ -115,7 +115,7 @@ public static function getStyles()
115115
* Internal method dispatcher
116116
*
117117
* @access protected
118-
* @static method
118+
* @static
119119
* @param string $command The command name string
120120
* @param string $args The command arguments
121121
*
@@ -137,7 +137,7 @@ protected static function cmd($command, array $args)
137137
// ****************************************
138138

139139
case'text':
140-
return self::getCliString($str, $args); // get formated text
140+
return self::getCliString($str, $args); // get formatted text
141141

142142
// ****************************************
143143
// Print methods (echo and return null)
@@ -179,10 +179,10 @@ protected static function cmd($command, array $args)
179179
}
180180

181181
/**
182-
* Get a formated cli string to output in the console
182+
* Get a formatted cli string to output in the console
183183
*
184184
* @access protected
185-
* @static method
185+
* @static
186186
* @param string $str The text to output
187187
* @param string $arguments The command arguments
188188
*
@@ -226,10 +226,10 @@ protected static function getCliString(string $str, array $arguments = [])
226226
}
227227

228228
/**
229-
* Get a formated string to be returned in console.
229+
* Get a formatted string to be returned in console.
230230
*
231231
* @access public
232-
* @static method
232+
* @static
233233
* @param string [$str] The string to output
234234
* @param string [$color] The text color for the wall line
235235
* @param string [$bgcolor] The back color for the wall line
@@ -243,10 +243,10 @@ public static function text()
243243
}
244244

245245
/**
246-
* Print a formated string in console.
246+
* Print a formatted string in console.
247247
*
248248
* @access public
249-
* @static method
249+
* @static
250250
* @param string [$str] The string to print
251251
* @param string [$color] The text color for the wall line
252252
* @param string [$bgcolor] The back color for the wall line
@@ -263,7 +263,7 @@ public static function print()
263263
* Prints a formatted string in the console then waits for a user input.
264264
*
265265
* @access public
266-
* @static method
266+
* @static
267267
* @param string [$str] The string to print
268268
* @param string [$color] The text color for the wall line
269269
* @param string [$bgcolor] The back color for the wall line
@@ -277,10 +277,10 @@ public static function ask()
277277
}
278278

279279
/**
280-
* Print a formated string in the console and wait for an integer input.
280+
* Print a formatted string in the console and wait for an integer input.
281281
*
282282
* @access public
283-
* @static method
283+
* @static
284284
* @param string [$str] The string to print
285285
* @param string [$color] The text color for the wall line
286286
* @param string [$bgcolor] The back color for the wall line
@@ -312,7 +312,7 @@ public static function askPassword()
312312
* Print a string to console and go to new line
313313
*
314314
* @access public
315-
* @static method
315+
* @static
316316
* @param string [$str] The string to print
317317
* @param string [$color] The text color for the wall line
318318
* @param string [$bgcolor] The back color for the wall line
@@ -329,7 +329,7 @@ public static function log()
329329
* Overwrite the current line in console.
330330
*
331331
* @access public
332-
* @static method
332+
* @static
333333
* @param string [$str] The string to print
334334
* @param string [$color] The text color for the wall line
335335
* @param string [$bgcolor] The back color for the wall line

‎lib/ShellPrinter.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* For the full copyright and license information, please view the LICENSE
1414
* file that was distributed with this source code.
1515
*
16-
* @version 1.4.0
17-
* @copyright 2017-2020 Kristuff
16+
* @version 1.5.0
17+
* @copyright 2017-2021 Kristuff
1818
*/
1919

2020
namespace Kristuff\Mishell;
@@ -34,7 +34,7 @@ abstract class ShellPrinter
3434
* Get whether the current platform is Windows or not.
3535
*
3636
* @access protected
37-
* @static method
37+
* @static
3838
*
3939
* @return bool
4040
*/
@@ -47,7 +47,7 @@ protected static function isWin()
4747
* Get the number of columns in terminal
4848
*
4949
* @access public
50-
* @static method
50+
* @static
5151
*
5252
* @return int
5353
*/
@@ -62,7 +62,7 @@ public static function getColumns()
6262
* Get the number of lines in terminal
6363
*
6464
* @access public
65-
* @static method
65+
* @static
6666
*
6767
* @return int
6868
*/
@@ -77,7 +77,7 @@ public static function getLines()
7777
* Switch to new window
7878
*
7979
* @access public
80-
* @static method
80+
* @static
8181
*
8282
* @return void
8383
*/
@@ -93,7 +93,7 @@ public static function newWindow()
9393
* Restore primary window
9494
*
9595
* @access public
96-
* @static method
96+
* @static
9797
*
9898
* @return void
9999
*/
@@ -108,7 +108,7 @@ public static function restoreWindow()
108108
* Hide user input in console
109109
*
110110
* @access public
111-
* @static method
111+
* @static
112112
*
113113
* @return void
114114
*/
@@ -123,7 +123,7 @@ public static function hideInput()
123123
* Restore user input in console
124124
*
125125
* @access public
126-
* @static method
126+
* @static
127127
*
128128
* @return void
129129
*/
@@ -138,7 +138,7 @@ public static function restoreInput()
138138
* Clear the console
139139
*
140140
* @access public
141-
* @static method
141+
* @static
142142
*
143143
* @return void
144144
*/

‎lib/ShellTablePrinter.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* For the full copyright and license information, please view the LICENSE
1414
* file that was distributed with this source code.
1515
*
16-
* @version 1.1.0
17-
* @copyright 2017-2020 Kristuff
16+
* @version 1.5.0
17+
* @copyright 2017-2021 Kristuff
1818
*/
1919

2020
namespace Kristuff\Mishell;
@@ -118,7 +118,7 @@ abstract class ShellTablePrinter extends \Kristuff\Mishell\ShellColoredPrinter
118118
* Resets the default options
119119
*
120120
* @access public
121-
* @static method
121+
* @static
122122
*
123123
* @return void
124124
*/
@@ -132,10 +132,10 @@ public static function resetDefaults()
132132
}
133133

134134
/**
135-
* Gets a formated table row separator
135+
* Gets a formatted table row separator
136136
*
137137
* @access public
138-
* @static method
138+
* @static
139139
* @param string [$color] The text color for the wall row
140140
* @param string [$bgcolor] The back color for the wall row
141141
* @param string [$option]+... The text styles for the wall row
@@ -157,11 +157,11 @@ public static function tableRowSeparator()
157157
return self::getCliString(self::$verticalInnerSeparator === '' ? $str : substr($str, 0, mb_strlen($str) -1). self::$verticalSeparator, $args);
158158
}
159159

160-
/**
161-
* Gets a formated table row separator
160+
/**
161+
* Gets a formatted table row separator
162162
*
163163
* @access public
164-
* @static method
164+
* @static
165165
* @param string [$color] The text color for the wall row
166166
* @param string [$bgcolor] The back color for the wall row
167167
* @param string [$option]+... The text styles for the wall row
@@ -184,10 +184,10 @@ public static function tableSeparator()
184184
}
185185

186186
/**
187-
* Gets a formated table blank row
187+
* Gets a formatted table blank row
188188
*
189189
* @access public
190-
* @static method
190+
* @static
191191
* @param string [$color] The text color for the wall row
192192
* @param string [$bgcolor] The back color for the wall row
193193
* @param string [$option]+... The text styles for the wall row
@@ -217,9 +217,9 @@ public static function tableRowEmpty()
217217
* Return a table row start.
218218
*
219219
* @access public
220-
* @static method
220+
* @static
221221
*
222-
* @return void
222+
* @return string
223223
*/
224224
public static function tableRowStart()
225225
{
@@ -230,7 +230,7 @@ public static function tableRowStart()
230230
* Return a table cell string.
231231
*
232232
* @access public
233-
* @static method
233+
* @static
234234
* @param string $column The column text.
235235
* @param int $lenght The column length. Default is 0 (no pad)
236236
* @param int $align The column alignement (Console::ALIGN_LEFT, Console::ALIGN_RIGHT or Console::ALIGN_CENTER). Default is Console::ALIGN_LEFT.
@@ -249,7 +249,7 @@ public static function tableRowCell($column, $length = 0, $align = self::ALIGN_L
249249
* Return a table row string.
250250
*
251251
* @access public
252-
* @static method
252+
* @static
253253
* @param array $columns The columns arrays.
254254
* @param string [$color] The text color for the wall row
255255
* @param string [$bgcolor] The back color for the wall row

0 commit comments

Comments
 (0)
Please sign in to comment.