@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $this->assertEquals( null, $columnItem->getDefaultValue() ); |
| 93 | 93 | $this->assertTrue( $columnItem->isNullable() ); |
| 94 | 94 | |
| 95 | - $this->setExpectedException('\\Aimeos\\MW\\Setup\\Exception'); |
|
| 95 | + $this->setExpectedException( '\\Aimeos\\MW\\Setup\\Exception' ); |
|
| 96 | 96 | $this->object->getColumnDetails( 'mw_setup_dbschema_test', 'notexisting' ); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function getPostDependencies() |
| 15 | 15 | { |
| 16 | - return array( 'TwoTask'); |
|
| 16 | + return array( 'TwoTask' ); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | |
| 73 | 73 | ini_set( "error_log", "error.log" ); |
| 74 | 74 | |
| 75 | - $this->object = new \Aimeos\MW\Logger\Errorlog( \Aimeos\MW\Logger\Base::DEBUG, array('test') ); |
|
| 75 | + $this->object = new \Aimeos\MW\Logger\Errorlog( \Aimeos\MW\Logger\Base::DEBUG, array( 'test' ) ); |
|
| 76 | 76 | $this->object->log( 'info test', \Aimeos\MW\Logger\Base::INFO, 'info' ); |
| 77 | 77 | |
| 78 | 78 | ini_restore( "error_log" ); |
@@ -100,8 +100,8 @@ discard block |
||
| 100 | 100 | $this->assertEquals( 'error', $row['message'] ); |
| 101 | 101 | |
| 102 | 102 | |
| 103 | - $this->setExpectedException('\\Aimeos\\MW\\Logger\\Exception'); |
|
| 104 | - $this->object->log( 'wrong log level', -1); |
|
| 103 | + $this->setExpectedException( '\\Aimeos\\MW\\Logger\\Exception' ); |
|
| 104 | + $this->object->log( 'wrong log level', -1 ); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $conn = self::$dbm->acquire(); |
| 111 | 111 | $conn->create( 'DELETE FROM "mw_log_test"' )->execute()->finish(); |
| 112 | 112 | |
| 113 | - $this->object->log( array ( 'scalar', 'errortest' ) ); |
|
| 113 | + $this->object->log( array( 'scalar', 'errortest' ) ); |
|
| 114 | 114 | |
| 115 | 115 | $result = $conn->create( 'SELECT * FROM "mw_log_test"' )->execute(); |
| 116 | 116 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->value = $value; |
| 42 | 42 | |
| 43 | 43 | if( $value != '' ) { |
| 44 | - $this->formfield = '<input class="csrf-token" type="hidden" name="' . $this->name . '" value="' . $this->value . '" />'; |
|
| 44 | + $this->formfield = '<input class="csrf-token" type="hidden" name="'.$this->name.'" value="'.$this->value.'" />'; |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public function add( $data ) |
| 89 | 89 | { |
| 90 | - if( fwrite( $this->fh, $data . $this->lineend ) === false ) { |
|
| 90 | + if( fwrite( $this->fh, $data.$this->lineend ) === false ) { |
|
| 91 | 91 | throw new \Aimeos\MW\Container\Exception( sprintf( 'Unable to add content to file "%1$s"', $this->getName() ) ); |
| 92 | 92 | } |
| 93 | 93 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | return new \Aimeos\MW\Convert\Compose( $list ); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - return self::createObject( $keys );; |
|
| 41 | + return self::createObject( $keys ); ; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | |
@@ -56,19 +56,19 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | if( ctype_alnum( $part ) === false ) |
| 58 | 58 | { |
| 59 | - $classname = is_string( $key ) ? '\\Aimeos\\MW\\Convert\\' . $key : '<not a string>'; |
|
| 59 | + $classname = is_string( $key ) ? '\\Aimeos\\MW\\Convert\\'.$key : '<not a string>'; |
|
| 60 | 60 | throw new \Aimeos\MW\Convert\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | $iface = '\\Aimeos\\MW\\Convert\\Iface'; |
| 65 | - $classname = '\\Aimeos\\MW\\Convert\\' . $key; |
|
| 65 | + $classname = '\\Aimeos\\MW\\Convert\\'.$key; |
|
| 66 | 66 | |
| 67 | 67 | if( class_exists( $classname ) === false ) { |
| 68 | 68 | throw new \Aimeos\MW\Convert\Exception( sprintf( 'Class "%1$s" not available', $classname ) ); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - $object = new $classname(); |
|
| 71 | + $object = new $classname(); |
|
| 72 | 72 | |
| 73 | 73 | if( !( $object instanceof $iface ) ) { |
| 74 | 74 | throw new \Aimeos\MW\Convert\Exception( sprintf( 'Class "%1$s" does not implement interface "%2$s"', $classname, $iface ) ); |
@@ -24,11 +24,11 @@ |
||
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * Includes config files using a simple caching. |
|
| 28 | - * |
|
| 29 | - * @param string $file Path and file name of a config file |
|
| 30 | - * @return array Value of the requested config file |
|
| 31 | - **/ |
|
| 27 | + * Includes config files using a simple caching. |
|
| 28 | + * |
|
| 29 | + * @param string $file Path and file name of a config file |
|
| 30 | + * @return array Value of the requested config file |
|
| 31 | + **/ |
|
| 32 | 32 | protected function includeFile( $file ) |
| 33 | 33 | { |
| 34 | 34 | if( !isset( $this->includeCache[$file] ) ) { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | public function __destruct() |
| 91 | 91 | { |
| 92 | 92 | if( fwrite( $this->file, serialize( $this->config ) ) === false ) { |
| 93 | - echo 'Unable to write collected configuration to file' . PHP_EOL; |
|
| 93 | + echo 'Unable to write collected configuration to file'.PHP_EOL; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | fclose( $this->file ); |