Passed
Pull Request — master (#10)
by Alice
02:01
created
src/Exception/ThreadException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 
3 3
 namespace Wonderland\Thread\Exception;
4 4
 
5
-class ThreadException extends \Exception{
5
+class ThreadException extends \Exception {
6 6
 }
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2
-declare( strict_types = 1 );
2
+declare(strict_types=1);
3 3
 
4
-if ( PHP_SAPI !== 'cli' ) {
5
-	die( 'Not an entry point' );
4
+if (PHP_SAPI !== 'cli') {
5
+	die('Not an entry point');
6 6
 }
7 7
 
8 8
 error_reporting( -1 );
9 9
 
10
-ini_set( 'display_errors', '1' );
10
+ini_set('display_errors', '1');
11 11
 
12
-if ( !is_readable( __DIR__ . '/../vendor/autoload.php' ) ) {
13
-	die( 'You need to install this package with Composer before you can run the tests' );
12
+if (!is_readable(__DIR__ . '/../vendor/autoload.php')) {
13
+	die('You need to install this package with Composer before you can run the tests');
14 14
 }
15 15
 
16 16
 require_once __DIR__ . '/../vendor/autoload.php';
Please login to merge, or discard this patch.
examples/Simple/simple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use Wonderland\Thread\Example\Simple\TestThread;
5 5
 use Wonderland\Thread\ThreadPool;
6 6
 
7
-require __DIR__.'/../../vendor/autoload.php';
7
+require __DIR__ . '/../../vendor/autoload.php';
8 8
 
9 9
 /**
10 10
  * @param $increment
Please login to merge, or discard this patch.
src/AbstractThread.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
 		if (null === $status) {
85 85
 			throw new ThreadException(
86
-				'Error. You must return a process status in '.get_class($this).':'.$this->getMethodName()
86
+				'Error. You must return a process status in ' . get_class($this) . ':' . $this->getMethodName()
87 87
 			);
88 88
 		}
89 89
 
Please login to merge, or discard this patch.