Passed
Push — develop ( ebcaaf...77fe2b )
by Stone
09:15
created
src/Entity/Trick.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
         return $this->tags;
177 177
     }
178 178
 
179
-    public function getTagsJson(){
179
+    public function getTagsJson() {
180 180
 
181 181
         $tagSerializer = new TagSerializer();
182 182
         return $tagSerializer->trickTagsJson($this);
Please login to merge, or discard this patch.
src/Serializer/TagSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $this->tagRepository = $tagRepository;
35 35
     }
36 36
 
37
-    private function serializeTag($tags){
37
+    private function serializeTag($tags) {
38 38
         $serializer = new Serializer([new ObjectNormalizer()]);
39 39
         return json_encode($serializer->normalize($tags, null, ['attributes' => ['name']]));
40 40
     }
Please login to merge, or discard this patch.
src/Form/CommentTypeForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use Symfony\Component\Form\FormBuilderInterface;
10 10
 use Symfony\Component\OptionsResolver\OptionsResolver;
11 11
 
12
-class CommentTypeForm extends AbstractType{
12
+class CommentTypeForm extends AbstractType {
13 13
 
14 14
     public function buildForm(FormBuilderInterface $builder, array $options)
15 15
     {
Please login to merge, or discard this patch.
src/Form/TrickTypeForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function buildForm(FormBuilderInterface $builder, array $options)
21 21
     {
22 22
 
23
-        if($options['all_tags_json'] === '' || $options['trick_tags_json'] === ''){
23
+        if ($options['all_tags_json'] === '' || $options['trick_tags_json'] === '') {
24 24
             throw new \UnexpectedValueException("all_tags_json or trick_tags_json not defined in the form constructor");
25 25
         }
26 26
 
Please login to merge, or discard this patch.
src/Entity/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function getUsername(): string
123 123
     {
124
-        return (string)$this->userName;
124
+        return (string) $this->userName;
125 125
     }
126 126
 
127 127
     /**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function getPassword(): string
150 150
     {
151
-        return (string)$this->password;
151
+        return (string) $this->password;
152 152
     }
153 153
 
154 154
     public function setPassword(string $password): self
@@ -379,6 +379,6 @@  discard block
 block discarded – undo
379 379
 
380 380
     public function __toString()
381 381
     {
382
-        return $this->getUsername() . ' / ' . $this->getEmail();
382
+        return $this->getUsername().' / '.$this->getEmail();
383 383
     }
384 384
 }
Please login to merge, or discard this patch.
src/Entity/Comment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         return $this;
92 92
     }
93 93
 
94
-    public function getCommentExcerpt(){
94
+    public function getCommentExcerpt() {
95 95
         return implode(' ', array_slice(explode(' ', $this->getComment()), 0, 10))." ...";
96 96
     }
97 97
 
Please login to merge, or discard this patch.