@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | public function addProperty(Property $property): self |
| 88 | 88 | { |
| 89 | 89 | if (!$this->properties->contains($property)) { |
| 90 | - $this->properties[] = $property; |
|
| 90 | + $this->properties[ ] = $property; |
|
| 91 | 91 | $property->setLocality($this); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | public function addArea(Area $area): self |
| 119 | 119 | { |
| 120 | 120 | if (!$this->areas->contains($area)) { |
| 121 | - $this->areas[] = $area; |
|
| 121 | + $this->areas[ ] = $area; |
|
| 122 | 122 | $area->setLocality($this); |
| 123 | 123 | } |
| 124 | 124 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $eventDispatcher->dispatch(new ContactFormSubmittedEvent($contact)); |
| 32 | 32 | $this->addFlash('success', 'message.was_sent'); |
| 33 | 33 | |
| 34 | - return $this->redirectToRoute('page', ['slug' => $page->getSlug()]); |
|
| 34 | + return $this->redirectToRoute('page', [ 'slug' => $page->getSlug() ]); |
|
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | [ |
| 40 | 40 | 'site' => $this->site(), |
| 41 | 41 | 'page' => $page, |
| 42 | - 'form' => (!empty($form) ? $form->createView() : []), |
|
| 42 | + 'form' => (!empty($form) ? $form->createView() : [ ]), |
|
| 43 | 43 | ] |
| 44 | 44 | ); |
| 45 | 45 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $items = $request->request->get('items'); |
| 93 | 93 | $repository->reorderItems($items); |
| 94 | 94 | |
| 95 | - return new JsonResponse(['status' => 'ok']); |
|
| 95 | + return new JsonResponse([ 'status' => 'ok' ]); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $this->propertyService->create($property, $user); |
| 55 | 55 | $this->addFlash('success', 'message.created'); |
| 56 | 56 | |
| 57 | - return $this->redirectToRoute('admin_photo_edit', ['id' => $property->getId()]); |
|
| 57 | + return $this->redirectToRoute('admin_photo_edit', [ 'id' => $property->getId() ]); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | return $this->render('admin/property/new.html.twig', [ |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function edit(Request $request, SettingRepository $repository): Response |
| 22 | 22 | { |
| 23 | - $settings = $repository->findAll()[0]; |
|
| 23 | + $settings = $repository->findAll()[ 0 ]; |
|
| 24 | 24 | |
| 25 | 25 | $form = $this->createForm(SettingType::class, $settings); |
| 26 | 26 | $form->handleRequest($request); |
@@ -22,9 +22,9 @@ |
||
| 22 | 22 | { |
| 23 | 23 | // Create a message |
| 24 | 24 | $message = (new Swift_Message($subject)) |
| 25 | - ->setFrom([$fromEmail => $fromName]) |
|
| 26 | - ->setTo([$toEmail]) |
|
| 27 | - ->setReplyTo([$fromEmail]) |
|
| 25 | + ->setFrom([ $fromEmail => $fromName ]) |
|
| 26 | + ->setTo([ $toEmail ]) |
|
| 27 | + ->setReplyTo([ $fromEmail ]) |
|
| 28 | 28 | ->setBody($body); |
| 29 | 29 | |
| 30 | 30 | // Send the message |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | public function load(ObjectManager $manager): void |
| 14 | 14 | { |
| 15 | - foreach ($this->getCurrencyData() as [$currencyTitle, $code, $symbolLeft, $symbolRight]) { |
|
| 15 | + foreach ($this->getCurrencyData() as [ $currencyTitle, $code, $symbolLeft, $symbolRight ]) { |
|
| 16 | 16 | $category = new Currency(); |
| 17 | 17 | $category->setCurrencyTitle($currencyTitle); |
| 18 | 18 | $category->setCode($code); |
@@ -29,12 +29,12 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | return [ |
| 31 | 31 | // $currencyData = [$currencyTitle, $code, $symbolLeft, $symbolRight]; |
| 32 | - ['US Dollar', 'USD', '$', ''], |
|
| 33 | - ['Euro', 'EUR', '', '€'], |
|
| 34 | - ['Pound Sterling', 'GBP', '£', ''], |
|
| 35 | - ['Hong Kong Dollar', 'HKD', 'HK$', ''], |
|
| 36 | - ['Russian Ruble', 'RUB', '₽', ''], |
|
| 37 | - ['Belarusian ruble', 'BYN', '', 'Br'], |
|
| 32 | + [ 'US Dollar', 'USD', '$', '' ], |
|
| 33 | + [ 'Euro', 'EUR', '', '€' ], |
|
| 34 | + [ 'Pound Sterling', 'GBP', '£', '' ], |
|
| 35 | + [ 'Hong Kong Dollar', 'HKD', 'HK$', '' ], |
|
| 36 | + [ 'Russian Ruble', 'RUB', '₽', '' ], |
|
| 37 | + [ 'Belarusian ruble', 'BYN', '', 'Br' ], |
|
| 38 | 38 | ]; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | { |
| 29 | 29 | return [ |
| 30 | 30 | // $areaData = [$locality, $name, $slug]; |
| 31 | - [$this->getReference('Miami'), 'South Beach', 'south-beach'], |
|
| 32 | - [$this->getReference('Miami'), 'Downtown', 'downtown'], |
|
| 33 | - [$this->getReference('Tampa'), 'Ballast Point', 'ballast-point'], |
|
| 34 | - [$this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles'], |
|
| 31 | + [$this->getReference('Miami'), 'South Beach', 'south-beach'], |
|
| 32 | + [$this->getReference('Miami'), 'Downtown', 'downtown'], |
|
| 33 | + [$this->getReference('Tampa'), 'Ballast Point', 'ballast-point'], |
|
| 34 | + [$this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles'], |
|
| 35 | 35 | ]; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | public function load(ObjectManager $manager): void |
| 15 | 15 | { |
| 16 | - foreach ($this->getAreaData() as [$locality, $name, $slug]) { |
|
| 16 | + foreach ($this->getAreaData() as [ $locality, $name, $slug ]) { |
|
| 17 | 17 | $area = new Area(); |
| 18 | 18 | $area->setLocality($locality); |
| 19 | 19 | $area->setName($name); |
@@ -28,10 +28,10 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | return [ |
| 30 | 30 | // $areaData = [$locality, $name, $slug]; |
| 31 | - [$this->getReference('Miami'), 'South Beach', 'south-beach'], |
|
| 32 | - [$this->getReference('Miami'), 'Downtown', 'downtown'], |
|
| 33 | - [$this->getReference('Tampa'), 'Ballast Point', 'ballast-point'], |
|
| 34 | - [$this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles'], |
|
| 31 | + [ $this->getReference('Miami'), 'South Beach', 'south-beach' ], |
|
| 32 | + [ $this->getReference('Miami'), 'Downtown', 'downtown' ], |
|
| 33 | + [ $this->getReference('Tampa'), 'Ballast Point', 'ballast-point' ], |
|
| 34 | + [ $this->getReference('Tampa'), 'Culbreath Isles', 'culbreath-isles' ], |
|
| 35 | 35 | ]; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | public function load(ObjectManager $manager): void |
| 16 | 16 | { |
| 17 | - foreach ($this->getPropertyData() as [$operation, $category, $locality, $area, $title, |
|
| 17 | + foreach ($this->getPropertyData() as [ $operation, $category, $locality, $area, $title, |
|
| 18 | 18 | $address, $latitude, $longitude, $price, $price_type, ]) { |
| 19 | 19 | $property = new Property(); |
| 20 | 20 | $property->setAuthor($this->getReference(UserFixtures::ADMIN_USER_REFERENCE)); |