Skip to content

Commit

Permalink
Merge pull request #3 from Ghostff/HTML_Esc
Browse files Browse the repository at this point in the history
Html esc
  • Loading branch information
Ghostff authored Feb 3, 2018
2 parents 500777d + 1f42298 commit 4efda7f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Created by .ignore support plugin (hsz.mobi)
.idea
34 changes: 18 additions & 16 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
The MIT License (MIT)
The 3-Clause BSD License (BSD-3-Clause)

Copyright (c) 2016 ghostff

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ Dump::set('boolean', ['bb02ff', 'purple']);
```
CGI output:

![cgi screenshot](cgi.png)
![cgi screenshot](https://github.com/Ghostff/Dump7/blob/master/cgi.png)

CLI Posix output:

![cli screenshot](posix.png)
![cli screenshot](https://github.com/Ghostff/Dump7/blob/master/posix.png)

Windows user who are using command line tools like `cmder` can use the `Dump::d` method:
```php
Expand All @@ -82,4 +82,4 @@ Dump::d(new Foo, $string, $array, $int, $double, $null, $bool, [
```
CLI Windows output:

![cli screenshot](posixWin.png)
![cli screenshot](https://github.com/Ghostff/Dump7/blob/master/posixWin.png)
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"description": "A pretty version of php var_dump. This class displays structured information about one or more expressions that includes its type and value.",
"type": "library",
"keywords": ["debuger", "var_dump", "data_dump"],
"license": "BSD",
"authors": [{
"license": "BSD-3-Clause",
"authors": [
{
"name": "Chrys Ugwu",
"email": "[email protected]"
}],
}
],
"require": {
"php": ">=7.0"
},
Expand All @@ -16,4 +18,4 @@
"src/Dump.php"
]
}
}
}
2 changes: 1 addition & 1 deletion src/Dump.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ private function pad(int $size): string
*/
private function arrayIndex(string $key, bool $parent = false): string
{
if (!$parent)
if (! $parent)
{
return $this->color("'$key'", 'multi_array_key') . " {$this->color('=', 'multi_array_arrow')} ";
}
Expand Down

0 comments on commit 4efda7f

Please sign in to comment.