Completed
Pull Request — master (#1218)
by
unknown
36s
created
src/SWP/Bundle/CoreBundle/MessageHandler/Message/ContentPushMessage.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
     public function toArray(): array
44 44
     {
45 45
         return [
46
-          'tenant' => $this->tenantId,
47
-          'content' => $this->content,
46
+            'tenant' => $this->tenantId,
47
+            'content' => $this->content,
48 48
         ];
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/UserBundle/Controller/ResetPasswordController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@
 block discarded – undo
160 160
             $resetToken = $this->resetPasswordHelper->generateResetToken($user);
161 161
         } catch (ResetPasswordExceptionInterface $e) {
162 162
             $this->addFlash('reset_password_error', sprintf(
163
-                 'There was a problem handling your password reset request - %s',
164
-                 $e->getReason()
165
-             ));
163
+                    'There was a problem handling your password reset request - %s',
164
+                    $e->getReason()
165
+                ));
166 166
 
167 167
             return $this->redirectToRoute('swp_user_check_email');
168 168
         }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Migrations/Version20180605111249.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @param Schema $schema
41 41
      */
42
-   public function postUp(Schema $schema) : void
42
+    public function postUp(Schema $schema) : void
43 43
     {
44 44
         $entityManager = $this->container->get('doctrine.orm.default_entity_manager');
45 45
         $query = $entityManager
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Model/ArticleInterface.php 1 patch
Indentation   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -25,166 +25,166 @@
 block discarded – undo
25 25
 use SWP\Component\Storage\Model\PersistableInterface;
26 26
 
27 27
 interface ArticleInterface extends TimestampableInterface, TimestampableCancelInterface, RuleSubjectInterface, TranslatableInterface, PersistableInterface, SoftDeletableInterface, MetadataAwareInterface, MediaAwareInterface, AuthorsAwareInterface, KeywordAwareInterface, RelatedArticlesAwareInterface, SeoMetadataAwareInterface {
28
-  const STATUS_NEW = 'new';
29
-
30
-  const STATUS_PUBLISHED = 'published';
31
-
32
-  const STATUS_UNPUBLISHED = 'unpublished';
33
-
34
-  const STATUS_CANCELED = 'canceled';
35
-
36
-  /**
37
-   * @return mixed
38
-   */
39
-  public function getId();
40
-
41
-  /**
42
-   * @return string
43
-   */
44
-  public function getBody();
45
-
46
-  /**
47
-   * @param string $body
48
-   */
49
-  public function setBody($body);
28
+    const STATUS_NEW = 'new';
29
+
30
+    const STATUS_PUBLISHED = 'published';
31
+
32
+    const STATUS_UNPUBLISHED = 'unpublished';
33
+
34
+    const STATUS_CANCELED = 'canceled';
35
+
36
+    /**
37
+     * @return mixed
38
+     */
39
+    public function getId();
40
+
41
+    /**
42
+     * @return string
43
+     */
44
+    public function getBody();
45
+
46
+    /**
47
+     * @param string $body
48
+     */
49
+    public function setBody($body);
50 50
 
51
-  /**
52
-   * @return string
53
-   */
54
-  public function getTitle();
51
+    /**
52
+     * @return string
53
+     */
54
+    public function getTitle();
55 55
 
56
-  /**
57
-   * @param string $title
58
-   */
59
-  public function setTitle($title);
56
+    /**
57
+     * @param string $title
58
+     */
59
+    public function setTitle($title);
60 60
 
61
-  /**
62
-   * @return string
63
-   */
64
-  public function getSlug();
61
+    /**
62
+     * @return string
63
+     */
64
+    public function getSlug();
65 65
 
66
-  /**
67
-   * @param string $slug
68
-   */
69
-  public function setSlug($slug);
66
+    /**
67
+     * @param string $slug
68
+     */
69
+    public function setSlug($slug);
70 70
 
71
-  /**
72
-   * @return \DateTime
73
-   */
74
-  public function getPublishedAt();
71
+    /**
72
+     * @return \DateTime
73
+     */
74
+    public function getPublishedAt();
75 75
 
76
-  /**
77
-   * @param string $publishedAt
78
-   *
79
-   * @return \DateTime
80
-   */
81
-  public function setPublishedAt(\DateTime $publishedAt);
76
+    /**
77
+     * @param string $publishedAt
78
+     *
79
+     * @return \DateTime
80
+     */
81
+    public function setPublishedAt(\DateTime $publishedAt);
82 82
 
83
-  /**
84
-   * @return bool
85
-   */
86
-  public function isPublished();
83
+    /**
84
+     * @return bool
85
+     */
86
+    public function isPublished();
87 87
 
88
-  /**
89
-   * @param string $status
90
-   *
91
-   * @return string
92
-   */
93
-  public function setStatus($status);
88
+    /**
89
+     * @param string $status
90
+     *
91
+     * @return string
92
+     */
93
+    public function setStatus($status);
94 94
 
95
-  /**
96
-   * @return string
97
-   */
98
-  public function getStatus();
95
+    /**
96
+     * @return string
97
+     */
98
+    public function getStatus();
99 99
 
100
-  /**
101
-   * @return string
102
-   */
103
-  public function getTemplateName();
100
+    /**
101
+     * @return string
102
+     */
103
+    public function getTemplateName();
104 104
 
105
-  /**
106
-   * @param string $templateName
107
-   */
108
-  public function setTemplateName($templateName);
105
+    /**
106
+     * @param string $templateName
107
+     */
108
+    public function setTemplateName($templateName);
109 109
 
110
-  /**
111
-   * @param RouteInterface|void $route
112
-   */
113
-  public function setRoute(RouteInterface $route = null);
110
+    /**
111
+     * @param RouteInterface|void $route
112
+     */
113
+    public function setRoute(RouteInterface $route = null);
114 114
 
115
-  /**
116
-   * @return RouteInterface
117
-   */
118
-  public function getRoute();
115
+    /**
116
+     * @return RouteInterface
117
+     */
118
+    public function getRoute();
119 119
 
120
-  /**
121
-   * @return string
122
-   */
123
-  public function getLead();
120
+    /**
121
+     * @return string
122
+     */
123
+    public function getLead();
124 124
 
125
-  /**
126
-   * @param string $lead
127
-   */
128
-  public function setLead($lead);
125
+    /**
126
+     * @param string $lead
127
+     */
128
+    public function setLead($lead);
129 129
 
130
-  public function getCode(): string;
130
+    public function getCode(): string;
131 131
 
132
-  public function setCode(string $code);
132
+    public function setCode(string $code);
133 133
 
134
-  public function addSourceReference(ArticleSourceReferenceInterface $source);
134
+    public function addSourceReference(ArticleSourceReferenceInterface $source);
135 135
 
136
-  public function removeSourceReference(ArticleSourceReferenceInterface $source);
136
+    public function removeSourceReference(ArticleSourceReferenceInterface $source);
137 137
 
138
-  public function hasSourceReference(ArticleSourceReferenceInterface $source): bool;
138
+    public function hasSourceReference(ArticleSourceReferenceInterface $source): bool;
139 139
 
140
-  /**
141
-   * @return Collection|ArticleSourceReferenceInterface[]
142
-   */
143
-  public function getSources(): Collection;
140
+    /**
141
+     * @return Collection|ArticleSourceReferenceInterface[]
142
+     */
143
+    public function getSources(): Collection;
144 144
 
145
-  public function getExtra(): array;
145
+    public function getExtra(): array;
146 146
 
147
-  public function setExtra(?array $extra): void;
147
+    public function setExtra(?array $extra): void;
148 148
 
149
-  public function getSlideshows(): Collection;
149
+    public function getSlideshows(): Collection;
150 150
 
151
-  public function hasSlideshow(SlideshowInterface $slideshow): bool;
151
+    public function hasSlideshow(SlideshowInterface $slideshow): bool;
152 152
 
153
-  public function addSlideshow(SlideshowInterface $slideshow): void;
153
+    public function addSlideshow(SlideshowInterface $slideshow): void;
154 154
 
155
-  public function removeSlideshow(SlideshowInterface $slideshow): void;
155
+    public function removeSlideshow(SlideshowInterface $slideshow): void;
156 156
 
157
-  public function getPreviousRelativeUrl(): Collection;
157
+    public function getPreviousRelativeUrl(): Collection;
158 158
 
159
-  public function hasPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): bool;
159
+    public function hasPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): bool;
160 160
 
161
-  public function addPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
161
+    public function addPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
162 162
 
163
-  public function removePreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
163
+    public function removePreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
164 164
 
165
-  public function getData(): ?MetadataInterface;
165
+    public function getData(): ?MetadataInterface;
166 166
 
167
-  public function setData(?MetadataInterface $metadata): void;
167
+    public function setData(?MetadataInterface $metadata): void;
168 168
 
169
-  public function getExtraTextFields(): Collection;
169
+    public function getExtraTextFields(): Collection;
170 170
 
171
-  public function getExtraEmbedFields(): Collection;
171
+    public function getExtraEmbedFields(): Collection;
172 172
 
173
-  public function setExtraFields(array $extra): void;
173
+    public function setExtraFields(array $extra): void;
174 174
 
175
-  public function getExtraByKey(string $key): ?ArticleExtraFieldInterface;
175
+    public function getExtraByKey(string $key): ?ArticleExtraFieldInterface;
176 176
 
177
-  public function getExtraArray(): array;
177
+    public function getExtraArray(): array;
178 178
 
179
-  public function isPublishable(): bool;
179
+    public function isPublishable(): bool;
180 180
 
181
-  public function setPublishable(bool $boolean): void;
181
+    public function setPublishable(bool $boolean): void;
182 182
 
183
-  public function setPublishStartDate(\DateTime $startDate = null);
183
+    public function setPublishStartDate(\DateTime $startDate = null);
184 184
 
185
-  public function getPublishStartDate();
185
+    public function getPublishStartDate();
186 186
 
187
-  public function setPublishEndDate(\DateTime $endDate = null);
187
+    public function setPublishEndDate(\DateTime $endDate = null);
188 188
 
189
-  public function getPublishEndDate();
189
+    public function getPublishEndDate();
190 190
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Migrations/2018/10/Version20181008115755.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @param Schema $schema
41 41
      */
42
-   public function postUp(Schema $schema) : void
42
+    public function postUp(Schema $schema) : void
43 43
     {
44 44
         $entityManager = $this->container->get('doctrine.orm.default_entity_manager');
45 45
         $query = $entityManager
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Migrations/Version20180314091410.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @param Schema $schema
41 41
      */
42
-   public function postUp(Schema $schema) : void
42
+    public function postUp(Schema $schema) : void
43 43
     {
44 44
         $entityManager = $this->container->get('doctrine.orm.default_entity_manager');
45 45
         $query = $entityManager
Please login to merge, or discard this patch.