@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | { |
13 | 13 | public function load(ObjectManager $manager): void |
14 | 14 | { |
15 | - foreach ($this->getMenuData() as [$title, $url]) { |
|
15 | + foreach ($this->getMenuData() as [ $title, $url ]) { |
|
16 | 16 | $menu = new Menu(); |
17 | 17 | $menu->setTitle($title); |
18 | 18 | $menu->setUrl($url); |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | { |
27 | 27 | return [ |
28 | 28 | // $menuData = [$title, $url]; |
29 | - ['Homepage', '/'], |
|
30 | - ['About Us', '/info/about-us'], |
|
31 | - ['Contact', '/info/contact'], |
|
29 | + [ 'Homepage', '/' ], |
|
30 | + [ 'About Us', '/info/about-us' ], |
|
31 | + [ 'Contact', '/info/contact' ], |
|
32 | 32 | ]; |
33 | 33 | } |
34 | 34 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function getFilters() |
24 | 24 | { |
25 | 25 | return [ |
26 | - new TwigFilter('page', [$this, 'showPageNumber']), |
|
26 | + new TwigFilter('page', [ $this, 'showPageNumber' ]), |
|
27 | 27 | ]; |
28 | 28 | } |
29 | 29 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $cache = new FilesystemAdapter(); |
42 | 42 | |
43 | - $count = $cache->get('pages_count', function () { |
|
43 | + $count = $cache->get('pages_count', function() { |
|
44 | 44 | return $this->em->getRepository(Page::class)->countAll(); |
45 | 45 | }); |
46 | 46 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $this->clearCache(); |
67 | 67 | |
68 | 68 | // Delete a menu item |
69 | - $menu = $this->em->getRepository(Menu::class)->findOneBy(['url' => '/info/'.$page->getSlug()]); |
|
69 | + $menu = $this->em->getRepository(Menu::class)->findOneBy([ 'url' => '/info/'.$page->getSlug() ]); |
|
70 | 70 | if ($menu) { |
71 | 71 | $this->remove($menu); |
72 | 72 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | { |
54 | 54 | $cache = new FilesystemAdapter(); |
55 | 55 | |
56 | - $count = $cache->get('properties_count', function () { |
|
56 | + $count = $cache->get('properties_count', function() { |
|
57 | 57 | return $this->em->getRepository(Property::class)->countAll(); |
58 | 58 | }); |
59 | 59 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | public static function getSubscribedEvents() |
15 | 15 | { |
16 | - return [FormEvents::POST_SUBMIT => 'onLocalityChanged']; |
|
16 | + return [ FormEvents::POST_SUBMIT => 'onLocalityChanged' ]; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | public function onLocalityChanged(FormEvent $event) |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | public static function getSubscribedEvents() |
15 | 15 | { |
16 | - return [FormEvents::POST_SET_DATA => 'onLocalitySelected']; |
|
16 | + return [ FormEvents::POST_SET_DATA => 'onLocalitySelected' ]; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | public function onLocalitySelected(FormEvent $event) |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'class' => 'form-control', |
49 | 49 | ], |
50 | 50 | 'label' => 'label.area', |
51 | - 'choices' => [], |
|
51 | + 'choices' => [ ], |
|
52 | 52 | ]) |
53 | 53 | ->add('operation', EntityType::class, [ |
54 | 54 | 'class' => Operation::class, |