@@ -36,9 +36,9 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | class LingoI18NTest extends \PHPUnit\Framework\TestCase { |
| 38 | 38 | |
| 39 | - public function testJsonSchemaValidatorExists(){ |
|
| 39 | + public function testJsonSchemaValidatorExists() { |
|
| 40 | 40 | $this->assertTrue( class_exists( '\JsonSchema\Validator' ) ); |
| 41 | - $this->assertTrue( method_exists('\JsonSchema\Validator', 'check' ) ); |
|
| 41 | + $this->assertTrue( method_exists( '\JsonSchema\Validator', 'check' ) ); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testMagicWordsLoaded() { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | // format error message |
| 62 | 62 | $errors = implode( '', array_map( |
| 63 | - function ( $error ) { |
|
| 63 | + function( $error ) { |
|
| 64 | 64 | return "* [{$error[ 'property' ]}] {$error[ 'message' ]}\n"; |
| 65 | 65 | }, |
| 66 | 66 | $validator->getErrors() |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | $this->assertInstanceOf( |
| 52 | 52 | '\Lingo\Element', |
| 53 | - new \Lingo\Element($term, $description) |
|
| 53 | + new \Lingo\Element( $term, $description ) |
|
| 54 | 54 | ); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | if ( is_readable( $localVendorPath ) ) { |
| 65 | 65 | $autoLoader = registerAutoloaderPath( 'local', $localVendorPath ); |
| 66 | 66 | } elseif ( is_readable( $mwVendorPath ) ) { |
| 67 | - $autoLoader = registerAutoloaderPath( 'MediaWiki', $mwVendorPath ); |
|
| 67 | + $autoLoader = registerAutoloaderPath( 'MediaWiki', $mwVendorPath ); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if ( !$autoLoader instanceof \Composer\Autoload\ClassLoader ) { |