@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $banner_list_menu->setName( |
| 72 | 72 | $this->trans($this->getLabelTranslatorStrategy()->getLabel( |
| 73 | 73 | sprintf('%s_list', $this->getClassnameLabel()), 'breadcrumb', 'link' |
| 74 | - )) .' "'. $this->getPublicationType()->getTitle() .'"' |
|
| 74 | + )).' "'.$this->getPublicationType()->getTitle().'"' |
|
| 75 | 75 | ); |
| 76 | 76 | |
| 77 | 77 | return $breadcrumbs; |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | $configuration = new Configuration(); |
| 25 | 25 | $config = $this->processConfiguration($configuration, $configs); |
| 26 | 26 | |
| 27 | - $container->setParameter('fp.date_format', $config['date_format']); |
|
| 28 | - $container->setParameter('fp.datetime_format', $config['datetime_format']); |
|
| 27 | + $container->setParameter('fp.date_format', $config['date_format']); |
|
| 28 | + $container->setParameter('fp.datetime_format', $config['datetime_format']); |
|
| 29 | 29 | $container->setParameter('fp.sonata_admin.group_label', $config['sonata_admin']['group_label']); |
| 30 | 30 | |
| 31 | 31 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
@@ -81,12 +81,12 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | if (!preg_match('/^\d{4}$/', $value)) { |
| 84 | - throw new \Exception('Incorrect year value: '. $value); |
|
| 84 | + throw new \Exception('Incorrect year value: '.$value); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | return $this->filterByCreatedAt(array( |
| 88 | - 'min' => $value .'-01-01 00:00:00', |
|
| 89 | - 'max' => $value .'-12-31 23:59:59' |
|
| 88 | + 'min' => $value.'-01-01 00:00:00', |
|
| 89 | + 'max' => $value.'-12-31 23:59:59' |
|
| 90 | 90 | )); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -104,10 +104,10 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | if (!preg_match('/^\d{4}\-\d{2}$/', $value)) { |
| 107 | - throw new \Exception('Incorrect month value: '. $value); |
|
| 107 | + throw new \Exception('Incorrect month value: '.$value); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - $datetime = new \DateTime($value .'-01 00:00:00'); |
|
| 110 | + $datetime = new \DateTime($value.'-01 00:00:00'); |
|
| 111 | 111 | |
| 112 | 112 | return $this->filterByCreatedAt(array( |
| 113 | 113 | 'min' => $datetime->format('Y-m-d H:i:s'), |
@@ -129,12 +129,12 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | if (!preg_match('/^\d{4}\-\d{2}\-\d{2}$/', $value)) { |
| 132 | - throw new \Exception('Incorrect day value: '. $value); |
|
| 132 | + throw new \Exception('Incorrect day value: '.$value); |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | return $this->filterByCreatedAt(array( |
| 136 | - 'min' => $value .' 00:00:00', |
|
| 137 | - 'max' => $value .' 23:59:59' |
|
| 136 | + 'min' => $value.' 00:00:00', |
|
| 137 | + 'max' => $value.' 23:59:59' |
|
| 138 | 138 | )); |
| 139 | 139 | } |
| 140 | 140 | } |