Completed
Push — develop ( ce26e9...2033be )
by Stuart
02:24
created
src/ClassesAndObjects/IsClassProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     public function inspect($refProp)
91 91
     {
92 92
         // robustness!
93
-        if (! $refProp instanceof ReflectionProperty) {
93
+        if (!$refProp instanceof ReflectionProperty) {
94 94
             throw new TypeError('$refProp is not a ReflectionProperty, is a ' . get_printable_type($refProp));
95 95
         }
96 96
         return static::check($refProp);
Please login to merge, or discard this patch.
doc-examples/check_is_array_list/Example-3--Catch-Non-Lists.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 // --- EXAMPLE START ---
13 13
 try {
14
-    $list = 'hello, world!';     // this is not really a list!
14
+    $list = 'hello, world!'; // this is not really a list!
15 15
     check_is_array_list($list);
16 16
 }
17 17
 catch (TypeError $e) {
Please login to merge, or discard this patch.
check_is_array_list/Example-2--Check-For-Non-Arrays-In-List.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 // --- EXAMPLE START ---
13 13
 $list = [
14
-    [ 'hello, world!'], // this is okay
14
+    ['hello, world!'], // this is okay
15 15
     'hello, world!'     // this is not okay
16 16
 ];
17 17
 $isArray = check_is_array_list($list);
Please login to merge, or discard this patch.
doc-examples/check_is_array_list/Example-1--Check-For-List-Of-Arrays.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 // --- EXAMPLE START ---
13 13
 $list = [
14
-    [ 'hello, world!' ]
14
+    ['hello, world!']
15 15
 ];
16 16
 $isArray = check_is_array_list($list);
17 17
 var_dump($isArray);
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
doc-examples/Check/Example-1--Direct-Static-Access.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,4 +12,4 @@
 block discarded – undo
12 12
 
13 13
 // --- EXAMPLE START ---
14 14
 $data = 15;
15
-var_dump(IsInRange::check($data, 10,20));
15
+var_dump(IsInRange::check($data, 10, 20));
Please login to merge, or discard this patch.
doc-examples/Check/Example-3--Fluent-Interface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,4 +12,4 @@
 block discarded – undo
12 12
 
13 13
 // --- EXAMPLE START ---
14 14
 $data = 15;
15
-var_dump(IsInRange::using(10,20)->inspect($data));
15
+var_dump(IsInRange::using(10, 20)->inspect($data));
Please login to merge, or discard this patch.
src/ConsoleOutput/ShowProgress.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         //
81 81
         // hopefully this is better for performance
82 82
         $format = "%s";
83
-        $formatParams = [ $progressChar ];
83
+        $formatParams = [$progressChar];
84 84
 
85 85
         // do we need to output anything else?
86 86
         $maxString = (string)$maxProgress;
@@ -120,6 +120,6 @@  discard block
 block discarded – undo
120 120
         $formatParams[] = (string)$currentProgress;
121 121
         $formatParams[] = $maxString;
122 122
 
123
-        return [ $format, $formatParams ];
123
+        return [$format, $formatParams];
124 124
     }
125 125
 }
126 126
\ No newline at end of file
Please login to merge, or discard this patch.
src/array-functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 
124 124
     // step 3: apply remaining filters
125 125
     foreach ($filterMap as $key => $filter) {
126
-        switch(true) {
126
+        switch (true) {
127 127
             case is_callable($filter):
128 128
                 $retval[$key] = $filter($retval);
129 129
                 break;
Please login to merge, or discard this patch.