Completed
Push — master ( a39c72...27f1c7 )
by Arnold
08:27
created
src/class_functions.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
 function get_private_property($object, $property)
13 13
 {
14 14
     $reflObj = is_object($object) ?
15
-        new \ReflectionObject($object) :
16
-        new \ReflectionClass($object);
15
+        new \ReflectionObject($object) : new \ReflectionClass($object);
17 16
 
18 17
     $reflProp = $reflObj->getProperty($property);
19 18
     $reflProp->setAccessible(true);
@@ -46,8 +45,7 @@  discard block
 block discarded – undo
46 45
 function call_private_method_array($object, $method, array $args)
47 46
 {
48 47
     $reflObj = is_object($object) ?
49
-        new \ReflectionObject($object) :
50
-        new \ReflectionClass($object);
48
+        new \ReflectionObject($object) : new \ReflectionClass($object);
51 49
 
52 50
     $reflMethod = $reflObj->getMethod($method);
53 51
     $reflMethod->setAccessible(true);
Please login to merge, or discard this patch.
src/file_functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     $step1 = strtr($quoted, ['\?' => '[^/]', '\*' => '[^/]*', '/\*\*' => '(?:/.*)?', '#' => '\d+', '\[' => '[',
49 49
         '\]' => ']', '\-' => '-', '\{' => '{', '\}' => '}']);
50 50
     
51
-    $step2 = preg_replace_callback('~{[^}]+}~', function ($part) {
51
+    $step2 = preg_replace_callback('~{[^}]+}~', function($part) {
52 52
         return '(?:' . substr(strtr($part[0], ',', '|'), 1, -1) . ')';
53 53
     }, $step1);
54 54
     
Please login to merge, or discard this patch.
src/global.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
  * @param string $string
106 106
  * @return string
107 107
  */
108
-function str_slug($string, $glue -);
108
+function str_slug($string, $glue - );
109 109
 {
110 110
     return jasny\str_slug($string, $glue);
111 111
 }
Please login to merge, or discard this patch.