Skip to content

Commit

Permalink
Merge pull request #5 from phpexpertsinc/jwdeitch-patch-1
Browse files Browse the repository at this point in the history
Namespaced the code and brought into full PSR-4 compliance
  • Loading branch information
hopeseekr authored May 15, 2019
2 parents fa33f3e + b9fcf2f commit 5d29a1b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
15 changes: 10 additions & 5 deletions ChromePhp.php → ChromePHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -115,7 +120,7 @@ class ChromePhp
);

/**
* @var ChromePhp
* @var ChromePHP
*/
protected static $_instance;

Expand All @@ -138,7 +143,7 @@ private function __construct()
/**
* gets instance of this class
*
* @return ChromePhp
* @return ChromePHP
*/
public static function getInstance()
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down
11 changes: 8 additions & 3 deletions composer.json
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"],
Expand All @@ -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\\": ""
}
}
}

0 comments on commit 5d29a1b

Please sign in to comment.