@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $output = []; |
130 | 130 | foreach ($phrase as $item) { |
131 | 131 | $e = explode($item, $string); |
132 | - array_pop($e);//remove the rest of string entry |
|
132 | + array_pop($e); //remove the rest of string entry |
|
133 | 133 | $output[$item] = $e; |
134 | 134 | } |
135 | 135 | |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | $output = []; |
156 | 156 | foreach ($phrase as $item) { |
157 | 157 | $e = explode($item, $string); |
158 | - array_shift($e);//remove the first item always |
|
158 | + array_shift($e); //remove the first item always |
|
159 | 159 | $output[$item] = $e; |
160 | 160 | } |
161 | 161 |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if (T_CLASS === $tokens[$index][0]) { |
67 | 67 | $index += 2; // Skip class keyword and whitespace |
68 | 68 | if (is_array($tokens[$index]) && array_key_exists(1, $tokens[$index])) { |
69 | - $this->data[] = $namespace . '\\' . $tokens[$index][1]; |
|
69 | + $this->data[] = $namespace.'\\'.$tokens[$index][1]; |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | protected function filterData($needle) |
77 | 77 | { |
78 | - return array_values(array_filter($this->data, function ($var) use ($needle) { |
|
78 | + return array_values(array_filter($this->data, function($var) use ($needle) { |
|
79 | 79 | if (strpos($var, $needle) !== false) { |
80 | 80 | return true; |
81 | 81 | } |
@@ -16,9 +16,9 @@ |
||
16 | 16 | * @package twhiston\twLib\Object |
17 | 17 | */ |
18 | 18 | /** |
19 | - * Class Instantiate |
|
20 | - * @package twhiston\twLib\Object |
|
21 | - */ |
|
19 | + * Class Instantiate |
|
20 | + * @package twhiston\twLib\Object |
|
21 | + */ |
|
22 | 22 | class Instantiate |
23 | 23 | { |
24 | 24 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | // } |
43 | 43 | |
44 | 44 | if ($namespace !== null) { |
45 | - $class = $namespace . $class; |
|
45 | + $class = $namespace.$class; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | try { |