@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once __DIR__.'/../../../vendor/autoload.php'; |
|
| 3 | +require_once __DIR__ . '/../../../vendor/autoload.php'; |
|
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $this->assertEquals( 1, $crawler->filter( '.catalog-filter-attribute' )->count() ); |
| 70 | 70 | |
| 71 | 71 | $nodes = $crawler->filter( '.catalog-filter-attribute .attr-size span:contains("XS")' ); |
| 72 | - $id = $nodes->parents()->filter( '.attr-item' )->attr( 'data-id'); |
|
| 72 | + $id = $nodes->parents()->filter( '.attr-item' )->attr( 'data-id' ); |
|
| 73 | 73 | |
| 74 | 74 | $form = $crawler->filter( '.catalog-filter .btn-primary' )->form(); |
| 75 | 75 | $values = $form->getPhpValues(); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | public function testOptionsAction() |
| 11 | 11 | { |
| 12 | - $client = static::createClient(array(), array( |
|
| 12 | + $client = static::createClient( array(), array( |
|
| 13 | 13 | 'PHP_AUTH_USER' => 'admin', |
| 14 | 14 | 'PHP_AUTH_PW' => 'adminpass', |
| 15 | 15 | ) ); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public function testActionsSingle() |
| 42 | 42 | { |
| 43 | - $client = static::createClient(array(), array( |
|
| 43 | + $client = static::createClient( array(), array( |
|
| 44 | 44 | 'PHP_AUTH_USER' => 'admin', |
| 45 | 45 | 'PHP_AUTH_PW' => 'adminpass', |
| 46 | 46 | ) ); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | public function testActionsBulk() |
| 106 | 106 | { |
| 107 | - $client = static::createClient(array(), array( |
|
| 107 | + $client = static::createClient( array(), array( |
|
| 108 | 108 | 'PHP_AUTH_USER' => 'admin', |
| 109 | 109 | 'PHP_AUTH_PW' => 'adminpass', |
| 110 | 110 | ) ); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | public function testFileCss() |
| 11 | 11 | { |
| 12 | - $client = static::createClient(array(), array( |
|
| 12 | + $client = static::createClient( array(), array( |
|
| 13 | 13 | 'PHP_AUTH_USER' => 'admin', |
| 14 | 14 | 'PHP_AUTH_PW' => 'adminpass', |
| 15 | 15 | ) ); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | public function testFileJs() |
| 25 | 25 | { |
| 26 | - $client = static::createClient(array(), array( |
|
| 26 | + $client = static::createClient( array(), array( |
|
| 27 | 27 | 'PHP_AUTH_USER' => 'admin', |
| 28 | 28 | 'PHP_AUTH_PW' => 'adminpass', |
| 29 | 29 | ) ); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function testCopyAction() |
| 39 | 39 | { |
| 40 | - $client = static::createClient(array(), array( |
|
| 40 | + $client = static::createClient( array(), array( |
|
| 41 | 41 | 'PHP_AUTH_USER' => 'admin', |
| 42 | 42 | 'PHP_AUTH_PW' => 'adminpass', |
| 43 | 43 | ) ); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | public function testCreateAction() |
| 54 | 54 | { |
| 55 | - $client = static::createClient(array(), array( |
|
| 55 | + $client = static::createClient( array(), array( |
|
| 56 | 56 | 'PHP_AUTH_USER' => 'admin', |
| 57 | 57 | 'PHP_AUTH_PW' => 'adminpass', |
| 58 | 58 | ) ); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | public function testDeleteAction() |
| 69 | 69 | { |
| 70 | - $client = static::createClient(array(), array( |
|
| 70 | + $client = static::createClient( array(), array( |
|
| 71 | 71 | 'PHP_AUTH_USER' => 'admin', |
| 72 | 72 | 'PHP_AUTH_PW' => 'adminpass', |
| 73 | 73 | ) ); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | public function testExportAction() |
| 84 | 84 | { |
| 85 | - $client = static::createClient(array(), array( |
|
| 85 | + $client = static::createClient( array(), array( |
|
| 86 | 86 | 'PHP_AUTH_USER' => 'admin', |
| 87 | 87 | 'PHP_AUTH_PW' => 'adminpass', |
| 88 | 88 | ) ); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | public function testGetAction() |
| 99 | 99 | { |
| 100 | - $client = static::createClient(array(), array( |
|
| 100 | + $client = static::createClient( array(), array( |
|
| 101 | 101 | 'PHP_AUTH_USER' => 'admin', |
| 102 | 102 | 'PHP_AUTH_PW' => 'adminpass', |
| 103 | 103 | ) ); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | public function testSaveAction() |
| 114 | 114 | { |
| 115 | - $client = static::createClient(array(), array( |
|
| 115 | + $client = static::createClient( array(), array( |
|
| 116 | 116 | 'PHP_AUTH_USER' => 'admin', |
| 117 | 117 | 'PHP_AUTH_PW' => 'adminpass', |
| 118 | 118 | ) ); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | public function testSearchAction() |
| 129 | 129 | { |
| 130 | - $client = static::createClient(array(), array( |
|
| 130 | + $client = static::createClient( array(), array( |
|
| 131 | 131 | 'PHP_AUTH_USER' => 'admin', |
| 132 | 132 | 'PHP_AUTH_PW' => 'adminpass', |
| 133 | 133 | ) ); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | public function testSearchActionSite() |
| 144 | 144 | { |
| 145 | - $client = static::createClient(array(), array( |
|
| 145 | + $client = static::createClient( array(), array( |
|
| 146 | 146 | 'PHP_AUTH_USER' => 'admin', |
| 147 | 147 | 'PHP_AUTH_PW' => 'adminpass', |
| 148 | 148 | ) ); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | public function testStandardNavbar() |
| 18 | 18 | { |
| 19 | - $client = static::createClient(array(), array( |
|
| 19 | + $client = static::createClient( array(), array( |
|
| 20 | 20 | 'PHP_AUTH_USER' => 'UTC001', |
| 21 | 21 | 'PHP_AUTH_PW' => 'unittest', |
| 22 | 22 | ) ); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | public function testStandardNextBack() |
| 86 | 86 | { |
| 87 | - $client = static::createClient(array(), array( |
|
| 87 | + $client = static::createClient( array(), array( |
|
| 88 | 88 | 'PHP_AUTH_USER' => 'UTC001', |
| 89 | 89 | 'PHP_AUTH_PW' => 'unittest', |
| 90 | 90 | ) ); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | |
| 134 | 134 | public function testStandardAddressPayment() |
| 135 | 135 | { |
| 136 | - $client = static::createClient(array(), array( |
|
| 136 | + $client = static::createClient( array(), array( |
|
| 137 | 137 | 'PHP_AUTH_USER' => 'UTC001', |
| 138 | 138 | 'PHP_AUTH_PW' => 'unittest', |
| 139 | 139 | ) ); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | public function testStandardAddressDelivery() |
| 154 | 154 | { |
| 155 | - $client = static::createClient(array(), array( |
|
| 155 | + $client = static::createClient( array(), array( |
|
| 156 | 156 | 'PHP_AUTH_USER' => 'UTC001', |
| 157 | 157 | 'PHP_AUTH_PW' => 'unittest', |
| 158 | 158 | ) ); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | public function testStandardDelivery() |
| 173 | 173 | { |
| 174 | - $client = static::createClient(array(), array( |
|
| 174 | + $client = static::createClient( array(), array( |
|
| 175 | 175 | 'PHP_AUTH_USER' => 'UTC001', |
| 176 | 176 | 'PHP_AUTH_PW' => 'unittest', |
| 177 | 177 | ) ); |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | |
| 191 | 191 | public function testStandardPayment() |
| 192 | 192 | { |
| 193 | - $client = static::createClient(array(), array( |
|
| 193 | + $client = static::createClient( array(), array( |
|
| 194 | 194 | 'PHP_AUTH_USER' => 'UTC001', |
| 195 | 195 | 'PHP_AUTH_PW' => 'unittest', |
| 196 | 196 | ) ); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | |
| 210 | 210 | public function testStandardBasket() |
| 211 | 211 | { |
| 212 | - $client = static::createClient(array(), array( |
|
| 212 | + $client = static::createClient( array(), array( |
|
| 213 | 213 | 'PHP_AUTH_USER' => 'UTC001', |
| 214 | 214 | 'PHP_AUTH_PW' => 'unittest', |
| 215 | 215 | ) ); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | |
| 229 | 229 | public function testStandardOrder() |
| 230 | 230 | { |
| 231 | - $client = static::createClient(array(), array( |
|
| 231 | + $client = static::createClient( array(), array( |
|
| 232 | 232 | 'PHP_AUTH_USER' => 'UTC001', |
| 233 | 233 | 'PHP_AUTH_PW' => 'unittest', |
| 234 | 234 | ) ); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $this->assertEquals( 1, $crawler->filter( '.basket-standard' )->count() ); |
| 30 | 30 | $this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() ); |
| 31 | - $this->assertEquals( 1, $crawler->filter( '.basket .product .quantity .value' )->attr('value') ); |
|
| 31 | + $this->assertEquals( 1, $crawler->filter( '.basket .product .quantity .value' )->attr( 'value' ) ); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $this->assertEquals( 1, $crawler->filter( '.basket-standard' )->count() ); |
| 49 | 49 | $this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() ); |
| 50 | - $this->assertEquals( 2, $crawler->filter( '.basket .product .quantity .value' )->attr('value') ); |
|
| 50 | + $this->assertEquals( 2, $crawler->filter( '.basket .product .quantity .value' )->attr( 'value' ) ); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $crawler = $client->submit( $form ); |
| 65 | 65 | |
| 66 | 66 | $this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() ); |
| 67 | - $this->assertEquals( 1, $crawler->filter( '.basket .product .quantity .value' )->attr('value') ); |
|
| 67 | + $this->assertEquals( 1, $crawler->filter( '.basket .product .quantity .value' )->attr( 'value' ) ); |
|
| 68 | 68 | |
| 69 | 69 | |
| 70 | 70 | $link = $crawler->filter( '.basket-standard .btn-back' )->link(); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $crawler = $client->submit( $form ); |
| 75 | 75 | |
| 76 | 76 | $this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() ); |
| 77 | - $this->assertEquals( 2, $crawler->filter( '.basket .product .quantity .value' )->attr('value') ); |
|
| 77 | + $this->assertEquals( 2, $crawler->filter( '.basket .product .quantity .value' )->attr( 'value' ) ); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | |
| 335 | 335 | public function testGetCustomerActionAuthorized() |
| 336 | 336 | { |
| 337 | - $client = static::createClient(array(), array( |
|
| 337 | + $client = static::createClient( array(), array( |
|
| 338 | 338 | 'PHP_AUTH_USER' => 'UTC001', |
| 339 | 339 | 'PHP_AUTH_PW' => 'unittest', |
| 340 | 340 | ) ); |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | |
| 354 | 354 | public function testGetCustomerAddressActionAuthorized() |
| 355 | 355 | { |
| 356 | - $client = static::createClient(array(), array( |
|
| 356 | + $client = static::createClient( array(), array( |
|
| 357 | 357 | 'PHP_AUTH_USER' => 'UTC001', |
| 358 | 358 | 'PHP_AUTH_PW' => 'unittest', |
| 359 | 359 | ) ); |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | |
| 378 | 378 | public function testGetOrderActionAuthorized() |
| 379 | 379 | { |
| 380 | - $client = static::createClient(array(), array( |
|
| 380 | + $client = static::createClient( array(), array( |
|
| 381 | 381 | 'PHP_AUTH_USER' => 'UTC001', |
| 382 | 382 | 'PHP_AUTH_PW' => 'unittest', |
| 383 | 383 | ) ); |
@@ -58,8 +58,8 @@ discard block |
||
| 58 | 58 | $this->addMessageQueueManager( $context ); |
| 59 | 59 | $this->addLogger( $context ); |
| 60 | 60 | $this->addCache( $context ); |
| 61 | - $this->addMailer( $context); |
|
| 62 | - $this->addProcess( $context); |
|
| 61 | + $this->addMailer( $context ); |
|
| 62 | + $this->addProcess( $context ); |
|
| 63 | 63 | |
| 64 | 64 | self::$context = $context; |
| 65 | 65 | } |
@@ -69,13 +69,13 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | if( $locale === true ) |
| 71 | 71 | { |
| 72 | - $localeItem = $this->container->get('aimeos.locale')->get( $context ); |
|
| 73 | - $context->setI18n( $this->container->get('aimeos.i18n')->get( array( $localeItem->getLanguageId() ) ) ); |
|
| 72 | + $localeItem = $this->container->get( 'aimeos.locale' )->get( $context ); |
|
| 73 | + $context->setI18n( $this->container->get( 'aimeos.i18n' )->get( array( $localeItem->getLanguageId() ) ) ); |
|
| 74 | 74 | $context->setLocale( $localeItem ); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | $this->addSession( $context ); |
| 78 | - $this->addUserGroups( $context); |
|
| 78 | + $this->addUserGroups( $context ); |
|
| 79 | 79 | |
| 80 | 80 | return $context; |
| 81 | 81 | } |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | protected function addMailer( \Aimeos\MShop\Context\Item\Iface $context ) |
| 148 | 148 | { |
| 149 | 149 | $container = $this->container; |
| 150 | - $mail = new \Aimeos\MW\Mail\Swift( function() use ( $container) { return $container->get( 'mailer' ); } ); |
|
| 150 | + $mail = new \Aimeos\MW\Mail\Swift( function() use ( $container ) { return $container->get( 'mailer' ); } ); |
|
| 151 | 151 | |
| 152 | 152 | return $context->setMail( $mail ); |
| 153 | 153 | } |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | if( is_object( $token ) && is_object( $token->getUser() ) && method_exists( $token->getUser(), 'getId' ) ) |
| 215 | 215 | { |
| 216 | - $username = $token->getUser()->getUsername(); |
|
| 216 | + $username = $token->getUser()->getUsername(); |
|
| 217 | 217 | $userid = $token->getUser()->getId(); |
| 218 | 218 | $context->setUserId( $userid ); |
| 219 | 219 | $context->setGroupIds( function() use ( $context, $userid ) |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | if( $username === '' && $this->container->has( 'request_stack' ) |
| 227 | - && ( $request = $this->container->get('request_stack')->getMasterRequest() ) !== null |
|
| 227 | + && ( $request = $this->container->get( 'request_stack' )->getMasterRequest() ) !== null |
|
| 228 | 228 | ) { |
| 229 | 229 | $username = $request->getClientIp(); |
| 230 | 230 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * |
| 210 | 210 | * @param string $company New company name |
| 211 | 211 | */ |
| 212 | - public function setCompany($company) |
|
| 212 | + public function setCompany( $company ) |
|
| 213 | 213 | { |
| 214 | 214 | $this->company = (string) $company; |
| 215 | 215 | } |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | * |
| 232 | 232 | * @param string $vatid New vatid |
| 233 | 233 | */ |
| 234 | - public function setVatID($vatid) |
|
| 234 | + public function setVatID( $vatid ) |
|
| 235 | 235 | { |
| 236 | 236 | $this->vatid = (string) $vatid; |
| 237 | 237 | } |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | * |
| 254 | 254 | * @param string $salutation Salutation constant defined in \Aimeos\MShop\Common\Item\Address\Base |
| 255 | 255 | */ |
| 256 | - public function setSalutation($salutation) |
|
| 256 | + public function setSalutation( $salutation ) |
|
| 257 | 257 | { |
| 258 | 258 | switch( $salutation ) |
| 259 | 259 | { |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * |
| 288 | 288 | * @param string $title New title of the person |
| 289 | 289 | */ |
| 290 | - public function setTitle($title) |
|
| 290 | + public function setTitle( $title ) |
|
| 291 | 291 | { |
| 292 | 292 | $this->title = (string) $title; |
| 293 | 293 | } |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | * |
| 310 | 310 | * @param string $firstname New first name of the person |
| 311 | 311 | */ |
| 312 | - public function setFirstname($firstname) |
|
| 312 | + public function setFirstname( $firstname ) |
|
| 313 | 313 | { |
| 314 | 314 | $this->firstname = (string) $firstname; |
| 315 | 315 | } |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | * |
| 332 | 332 | * @param string $lastname New last name of the person |
| 333 | 333 | */ |
| 334 | - public function setLastname($lastname) |
|
| 334 | + public function setLastname( $lastname ) |
|
| 335 | 335 | { |
| 336 | 336 | $this->lastname = (string) $lastname; |
| 337 | 337 | } |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | * |
| 354 | 354 | * @param string $address1 New first address part |
| 355 | 355 | */ |
| 356 | - public function setAddress1($address1) |
|
| 356 | + public function setAddress1( $address1 ) |
|
| 357 | 357 | { |
| 358 | 358 | $this->address1 = (string) $address1; |
| 359 | 359 | } |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | * |
| 376 | 376 | * @param string $address2 New second address part |
| 377 | 377 | */ |
| 378 | - public function setAddress2($address2) |
|
| 378 | + public function setAddress2( $address2 ) |
|
| 379 | 379 | { |
| 380 | 380 | $this->address2 = (string) $address2; |
| 381 | 381 | } |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | * |
| 398 | 398 | * @param string $address3 New third address part |
| 399 | 399 | */ |
| 400 | - public function setAddress3($address3) |
|
| 400 | + public function setAddress3( $address3 ) |
|
| 401 | 401 | { |
| 402 | 402 | $this->address3 = (string) $address3; |
| 403 | 403 | } |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | * |
| 420 | 420 | * @param string $postal New postal code |
| 421 | 421 | */ |
| 422 | - public function setPostal($postal) |
|
| 422 | + public function setPostal( $postal ) |
|
| 423 | 423 | { |
| 424 | 424 | $this->postal = (string) $postal; |
| 425 | 425 | } |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | * |
| 442 | 442 | * @param string $city New city name |
| 443 | 443 | */ |
| 444 | - public function setCity($city) |
|
| 444 | + public function setCity( $city ) |
|
| 445 | 445 | { |
| 446 | 446 | $this->city = (string) $city; |
| 447 | 447 | } |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | * |
| 464 | 464 | * @param string $state New state name |
| 465 | 465 | */ |
| 466 | - public function setState($state) |
|
| 466 | + public function setState( $state ) |
|
| 467 | 467 | { |
| 468 | 468 | $this->state = (string) $state; |
| 469 | 469 | } |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | * |
| 475 | 475 | * @param string $countryid Unique ID of the country |
| 476 | 476 | */ |
| 477 | - public function setCountryId($countryid) |
|
| 477 | + public function setCountryId( $countryid ) |
|
| 478 | 478 | { |
| 479 | 479 | $this->countryid = strtoupper( (string) $countryid ); |
| 480 | 480 | } |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | * |
| 497 | 497 | * @param string $langid Unique ID of the language |
| 498 | 498 | */ |
| 499 | - public function setLanguageId($langid) |
|
| 499 | + public function setLanguageId( $langid ) |
|
| 500 | 500 | { |
| 501 | 501 | $this->langid = strtolower( (string) $langid ); |
| 502 | 502 | } |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | * |
| 530 | 530 | * @param string $telephone New telephone number |
| 531 | 531 | */ |
| 532 | - public function setTelephone($telephone) |
|
| 532 | + public function setTelephone( $telephone ) |
|
| 533 | 533 | { |
| 534 | 534 | $this->telephone = (string) $telephone; |
| 535 | 535 | } |
@@ -551,7 +551,7 @@ discard block |
||
| 551 | 551 | * |
| 552 | 552 | * @param string $telefax New telefax number |
| 553 | 553 | */ |
| 554 | - public function setTelefax($telefax) |
|
| 554 | + public function setTelefax( $telefax ) |
|
| 555 | 555 | { |
| 556 | 556 | $this->telefax = (string) $telefax; |
| 557 | 557 | } |
@@ -573,7 +573,7 @@ discard block |
||
| 573 | 573 | * |
| 574 | 574 | * @param string $website New website URL |
| 575 | 575 | */ |
| 576 | - public function setWebsite($website) |
|
| 576 | + public function setWebsite( $website ) |
|
| 577 | 577 | { |
| 578 | 578 | $pattern = '#^([a-z]+://)?[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]+)+(:[0-9]+)?(/.*)?$#'; |
| 579 | 579 | |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | * |
| 602 | 602 | * @param float $value New longitude value |
| 603 | 603 | */ |
| 604 | - public function setLongitude($value) |
|
| 604 | + public function setLongitude( $value ) |
|
| 605 | 605 | { |
| 606 | 606 | $this->longitude = (float) $value; |
| 607 | 607 | } |
@@ -623,7 +623,7 @@ discard block |
||
| 623 | 623 | * |
| 624 | 624 | * @param float $value New latitude value |
| 625 | 625 | */ |
| 626 | - public function setLatitude($value) |
|
| 626 | + public function setLatitude( $value ) |
|
| 627 | 627 | { |
| 628 | 628 | $this->latitude = (float) $value; |
| 629 | 629 | } |