Completed
Push — master ( 36709f...e26ed7 )
by Hiraku
01:57
created
src/Collection.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -72,6 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     /**
74 74
      * @param iterable $seed
75
+     * @param string $type
75 76
      */
76 77
     public function __construct($seed, $debug = null, $type = null)
77 78
     {
@@ -388,6 +389,11 @@  discard block
 block discarded – undo
388 389
         ];
389 390
     }
390 391
 
392
+    /**
393
+     * @param string $_code
394
+     * @param string $_before
395
+     * @param string $_after
396
+     */
391 397
     private static function evaluate($_seed, $_vars, $_code, $_before, $_after)
392 398
     {
393 399
         $_old_handler = set_error_handler(function($severity, $message, $file, $line){
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
     {
362 362
         return implode("\n", [
363 363
             static::class,
364
-            ' array-mode:' . (int)$this->is_array,
364
+            ' array-mode:' . (int) $this->is_array,
365 365
             " codes:\n  " . implode("\n  ", $this->ops)
366 366
         ]);
367 367
     }
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 
391 391
     private static function evaluate($_seed, $_vars, $_code, $_before, $_after)
392 392
     {
393
-        $_old_handler = set_error_handler(function($severity, $message, $file, $line){
393
+        $_old_handler = set_error_handler(function($severity, $message, $file, $line) {
394 394
             throw new \ErrorException($message, 0, $severity, $file, $line);
395 395
         }, E_ALL ^ E_DEPRECATED ^ E_USER_DEPRECATED);
396 396
         try {
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
         array_unshift(
420 420
             $ops,
421 421
             '$_i = 0;',
422
-            'for (' . implode('; ', $seed). ') {',
422
+            'for (' . implode('; ', $seed) . ') {',
423 423
             '    $_key = $_i;',
424 424
             '    $_ = $_current;',
425 425
             '    ++$_i;'
Please login to merge, or discard this patch.