Completed
Push — master ( e9f349...b72251 )
by Todd
03:59 queued 01:58
created
src/Cli.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->commandSchemas = ['*' => [Cli::META => []]];
52 52
 
53 53
         // Select the current schema.
54
-        $this->currentSchema =& $this->commandSchemas['*'];
54
+        $this->currentSchema = & $this->commandSchemas['*'];
55 55
 
56 56
         $this->formatOutput = static::guessFormatOutput();
57 57
     }
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
         }
383 383
 
384 384
         if (!is_array($argv)) {
385
-            throw new \Exception(__METHOD__ . " expects an array", 400);
385
+            throw new \Exception(__METHOD__." expects an array", 400);
386 386
         }
387 387
 
388 388
         $path = array_shift($argv);
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
         if (!isset($this->commandSchemas[$pattern])) {
758 758
             $this->commandSchemas[$pattern] = [Cli::META => []];
759 759
         }
760
-        $this->currentSchema =& $this->commandSchemas[$pattern];
760
+        $this->currentSchema = & $this->commandSchemas[$pattern];
761 761
 
762 762
         return $this;
763 763
     }
@@ -986,14 +986,14 @@  discard block
 block discarded – undo
986 986
                 break;
987 987
             case 'integer':
988 988
                 if (is_numeric($value)) {
989
-                    $value = (int)$value;
989
+                    $value = (int) $value;
990 990
                     $valid = true;
991 991
                 } else {
992 992
                     $valid = false;
993 993
                 }
994 994
                 break;
995 995
             case 'string':
996
-                $value = (string)$value;
996
+                $value = (string) $value;
997 997
                 $valid = true;
998 998
                 break;
999 999
             default:
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
         }
1002 1002
 
1003 1003
         if (!$valid && $name) {
1004
-            $short = static::val('short', (array)$def);
1004
+            $short = static::val('short', (array) $def);
1005 1005
             $nameStr = "--$name".($short ? " (-$short)" : '');
1006 1006
             echo $this->red("The value of $nameStr is not a valid $type.".PHP_EOL);
1007 1007
         }
Please login to merge, or discard this patch.
src/Table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function row() {
197 197
         $this->rows[] = [];
198
-        $this->currentRow =& $this->rows[count($this->rows) - 1];
198
+        $this->currentRow = & $this->rows[count($this->rows) - 1];
199 199
         return $this;
200 200
     }
201 201
 
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
 
234 234
                     if (isset($lines[$i])) {
235 235
                         if ($this->formatOutput) {
236
-                            if(isset($row[$j])) {
236
+                            if (isset($row[$j])) {
237 237
                                 $wrap = $row[$j][1];
238 238
                             } else {
239 239
                                 // if we're out of array, use the latest wraps
240
-                                $wrap = $row[count($row)-1][1];
240
+                                $wrap = $row[count($row) - 1][1];
241 241
                             }
242 242
 
243 243
                             echo str_repeat(' ', $padding).$wrap[0].$lines[$i].$wrap[1];
Please login to merge, or discard this patch.
src/StreamLogger.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $this->outputHandle = $out;
95 95
         $this->colorizeOutput = Cli::guessFormatOutput($this->outputHandle);
96 96
         $this->setTimeFormat('%F %T');
97
-        $this->setLevelFormat(function ($l) {
97
+        $this->setLevelFormat(function($l) {
98 98
             return $l;
99 99
         });
100 100
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function setTimeFormat($format) {
113 113
         if (is_string($format)) {
114
-            $this->timeFormatter = function ($t) use ($format) {
114
+            $this->timeFormatter = function($t) use ($format) {
115 115
                 return strftime($format, $t);
116 116
             };
117 117
         } else {
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      * @return string Returns the formatted message.
194 194
      */
195 195
     private function replaceContext(string $format, array $context): string {
196
-        $msg = preg_replace_callback('`({[^\s{}]+})`', function ($m) use ($context) {
196
+        $msg = preg_replace_callback('`({[^\s{}]+})`', function($m) use ($context) {
197 197
             $field = trim($m[1], '{}');
198 198
             if (array_key_exists($field, $context)) {
199 199
                 return $context[$field];
Please login to merge, or discard this patch.