-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from phpexpertsinc/jwdeitch-patch-1
Namespaced the code and brought into full PSR-4 compliance
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,18 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
namespace ChromePHP; | ||
|
||
use ReflectionClass; | ||
use ReflectionProperty; | ||
|
||
/** | ||
* Server Side Chrome PHP debugger class | ||
* | ||
* @package ChromePhp | ||
* @author Craig Campbell <[email protected]> | ||
*/ | ||
class ChromePhp | ||
class ChromePHP | ||
{ | ||
/** | ||
* @var string | ||
|
@@ -115,7 +120,7 @@ class ChromePhp | |
); | ||
|
||
/** | ||
* @var ChromePhp | ||
* @var ChromePHP | ||
*/ | ||
protected static $_instance; | ||
|
||
|
@@ -138,7 +143,7 @@ private function __construct() | |
/** | ||
* gets instance of this class | ||
* | ||
* @return ChromePhp | ||
* @return ChromePHP | ||
*/ | ||
public static function getInstance() | ||
{ | ||
|
@@ -244,7 +249,7 @@ public static function table() | |
* internal logging call | ||
* | ||
* @param string $type | ||
* @return ChromePhp | ||
* @return ChromePHP | ||
*/ | ||
protected static function _log($type, array $args) | ||
{ | ||
|
@@ -330,7 +335,7 @@ protected function _convert($object) | |
/** | ||
* takes a reflection property and returns a nicely formatted key of the property name | ||
* | ||
* @param ReflectionProperty | ||
* @param ReflectionProperty $property | ||
* @return string | ||
*/ | ||
protected function _getPropertyKey(ReflectionProperty $property) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "ccampbell/chromephp", | ||
"name": "phpexpertsinc/chromephp", | ||
"type": "library", | ||
"description": "Log variables to the Chrome console (via Chrome Logger Google Chrome extension).", | ||
"keywords": ["log","logging"], | ||
|
@@ -11,14 +11,19 @@ | |
"email": "[email protected]", | ||
"homepage": "http://craig.is", | ||
"role": "Developer" | ||
}, | ||
{ | ||
"name": "Theodore R. Smith", | ||
"email": "[email protected]", | ||
"homepage": "https://www.linkedin.com/in/tedrsmith" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"ChromePhp": "" | ||
"psr-4": { | ||
"ChromePHP\\": "" | ||
} | ||
} | ||
} |