@@ -45,7 +45,7 @@ |
||
45 | 45 | trigger_error("Dummy", E_USER_ERROR); |
46 | 46 | } catch (\Exception $e) { |
47 | 47 | $this->assertEquals( |
48 | - sprintf("Dummy in %s on line %s!", __FILE__, __LINE__ - 3), |
|
48 | + sprintf("Dummy in %s on line %s!", __FILE__, __LINE__ -3), |
|
49 | 49 | $e->getMessage() |
50 | 50 | ); |
51 | 51 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | if (is_null($exceptionClass)) { |
45 | 45 | $exceptionClass = static::EXCEPTION_THROW_CLASS; |
46 | 46 | } |
47 | - set_error_handler(function ($errorNumber, $errorMessage, $errorFile, $errorLine) use ($exceptionClass) { |
|
47 | + set_error_handler(function($errorNumber, $errorMessage, $errorFile, $errorLine) use ($exceptionClass) { |
|
48 | 48 | throw new $exceptionClass( |
49 | 49 | sprintf("%s in %s on line %s!", $errorMessage, $errorFile, $errorLine), |
50 | 50 | $errorNumber |
@@ -105,7 +105,7 @@ |
||
105 | 105 | ] |
106 | 106 | ] |
107 | 107 | ], |
108 | - ['foo','bar','baz','qux'] |
|
108 | + ['foo', 'bar', 'baz', 'qux'] |
|
109 | 109 | ], |
110 | 110 | [ |
111 | 111 | [[[['a' => ['bar']]]]], |
@@ -93,21 +93,21 @@ |
||
93 | 93 | $this->log(sprintf("Scanning dir %s, found %d files", $directory, count($files))); |
94 | 94 | foreach ($files as $index => $file) { |
95 | 95 | // recursive retrieve files in subdirectories |
96 | - if (true === is_dir($directory . DIRECTORY_SEPARATOR . $file) && !in_array($file, [".", ".."])) { |
|
96 | + if (true === is_dir($directory.DIRECTORY_SEPARATOR.$file) && !in_array($file, [".", ".."])) { |
|
97 | 97 | $fileList = array_merge( |
98 | 98 | $fileList, |
99 | - $this->getFiles($directory . DIRECTORY_SEPARATOR . $file) |
|
99 | + $this->getFiles($directory.DIRECTORY_SEPARATOR.$file) |
|
100 | 100 | ); |
101 | 101 | continue; |
102 | 102 | } |
103 | 103 | |
104 | 104 | // not the file we want |
105 | 105 | if (false === $this->isRequiredFile($file)) { |
106 | - $this->log(sprintf("Files %s is not required", $directory . DIRECTORY_SEPARATOR . $file)); |
|
106 | + $this->log(sprintf("Files %s is not required", $directory.DIRECTORY_SEPARATOR.$file)); |
|
107 | 107 | continue; |
108 | 108 | } |
109 | - $this->log(sprintf("Collected %s", $directory . DIRECTORY_SEPARATOR . $file)); |
|
110 | - $fileList[] = $directory . DIRECTORY_SEPARATOR . $file; |
|
109 | + $this->log(sprintf("Collected %s", $directory.DIRECTORY_SEPARATOR.$file)); |
|
110 | + $fileList[] = $directory.DIRECTORY_SEPARATOR.$file; |
|
111 | 111 | } |
112 | 112 | return $fileList; |
113 | 113 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function testClassSearch($className, $expectedFoundClasses) |
13 | 13 | { |
14 | 14 | $classFinder = new ClassFinder( |
15 | - realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR, |
|
15 | + realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR, |
|
16 | 16 | $className |
17 | 17 | ); |
18 | 18 |