Skip to content

Commit 5d29a1b

Browse files
authored
Merge pull request #5 from phpexpertsinc/jwdeitch-patch-1
Namespaced the code and brought into full PSR-4 compliance
2 parents fa33f3e + b9fcf2f commit 5d29a1b

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

ChromePhp.php renamed to ChromePHP.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@
1515
* limitations under the License.
1616
*/
1717

18+
namespace ChromePHP;
19+
20+
use ReflectionClass;
21+
use ReflectionProperty;
22+
1823
/**
1924
* Server Side Chrome PHP debugger class
2025
*
2126
* @package ChromePhp
2227
* @author Craig Campbell <[email protected]>
2328
*/
24-
class ChromePhp
29+
class ChromePHP
2530
{
2631
/**
2732
* @var string
@@ -115,7 +120,7 @@ class ChromePhp
115120
);
116121

117122
/**
118-
* @var ChromePhp
123+
* @var ChromePHP
119124
*/
120125
protected static $_instance;
121126

@@ -138,7 +143,7 @@ private function __construct()
138143
/**
139144
* gets instance of this class
140145
*
141-
* @return ChromePhp
146+
* @return ChromePHP
142147
*/
143148
public static function getInstance()
144149
{
@@ -244,7 +249,7 @@ public static function table()
244249
* internal logging call
245250
*
246251
* @param string $type
247-
* @return ChromePhp
252+
* @return ChromePHP
248253
*/
249254
protected static function _log($type, array $args)
250255
{
@@ -330,7 +335,7 @@ protected function _convert($object)
330335
/**
331336
* takes a reflection property and returns a nicely formatted key of the property name
332337
*
333-
* @param ReflectionProperty
338+
* @param ReflectionProperty $property
334339
* @return string
335340
*/
336341
protected function _getPropertyKey(ReflectionProperty $property)

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ccampbell/chromephp",
2+
"name": "phpexpertsinc/chromephp",
33
"type": "library",
44
"description": "Log variables to the Chrome console (via Chrome Logger Google Chrome extension).",
55
"keywords": ["log","logging"],
@@ -11,14 +11,19 @@
1111
"email": "[email protected]",
1212
"homepage": "http://craig.is",
1313
"role": "Developer"
14+
},
15+
{
16+
"name": "Theodore R. Smith",
17+
"email": "[email protected]",
18+
"homepage": "https://www.linkedin.com/in/tedrsmith"
1419
}
1520
],
1621
"require": {
1722
"php": ">=7.0"
1823
},
1924
"autoload": {
20-
"psr-0": {
21-
"ChromePhp": ""
25+
"psr-4": {
26+
"ChromePHP\\": ""
2227
}
2328
}
2429
}

0 commit comments

Comments
 (0)