Completed
Push — develop ( 6bd92a...2af28f )
by John
03:13
created
Alpha/Model/Person.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                                     'state' => 'Account state',
115 115
                                     'URL' => 'Your site address',
116 116
                                     'rights' => 'Rights Group Membership',
117
-                                    'actions' => 'Actions', );
117
+                                    'actions' => 'Actions',);
118 118
 
119 119
     /**
120 120
      * The name of the database table for the class.
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $this->password->isPassword(true);
179 179
         $this->state = new Enum(array(
180 180
                                     'Active',
181
-                                    'Disabled', ));
181
+                                    'Disabled',));
182 182
         $this->state->setValue('Active');
183 183
         $this->URL = new SmallText();
184 184
         $this->URL->setRule(Validator::OPTIONAL_HTTP_URL);
Please login to merge, or discard this patch.
Alpha/Model/Type/Relation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
     /**
509 509
      * Getter for the Relation value.
510 510
      *
511
-     * @return mixed
511
+     * @return string
512 512
      *
513 513
      * @since 1.0
514 514
      */
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
      * Set the taggedClass property to the name of the tagged class when building relations
749 749
      * to the TagObject BO.
750 750
      *
751
-     * @param $taggedClass
751
+     * @param string $taggedClass
752 752
      *
753 753
      * @since 1.0
754 754
      */
Please login to merge, or discard this patch.
Alpha/Util/Extension/TCPDFFacade.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -234,16 +234,16 @@  discard block
 block discarded – undo
234 234
         self::$logger->debug('<<__construct()');
235 235
     }
236 236
 
237
-     /**
238
-      * Facade method which will invoke our custom markdown class rather than the standard one.
239
-      *
240
-      * @param $text The markdown content to parse
241
-      *
242
-      * @since 1.0
243
-      */
244
-     private function markdown($text)
245
-     {
246
-         $config = ConfigProvider::getInstance();
237
+        /**
238
+         * Facade method which will invoke our custom markdown class rather than the standard one.
239
+         *
240
+         * @param $text The markdown content to parse
241
+         *
242
+         * @since 1.0
243
+         */
244
+        private function markdown($text)
245
+        {
246
+            $config = ConfigProvider::getInstance();
247 247
 
248 248
         /*
249 249
          * Initialize the parser and return the result of its transform method.
@@ -251,9 +251,9 @@  discard block
 block discarded – undo
251 251
          */
252 252
         static $parser;
253 253
 
254
-         if (!isset($parser)) {
255
-             $parser = new Markdown();
256
-         }
254
+            if (!isset($parser)) {
255
+                $parser = new Markdown();
256
+            }
257 257
 
258 258
         /*
259 259
          * Replace all instances of $sysURL in the text with the app.url setting from config
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 
264 264
         // transform text using parser.
265 265
         return $parser->transform($text);
266
-     }
266
+        }
267 267
 
268 268
     /**
269 269
      * Fetter for the content.
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         foreach ($attachments[0] as $attachmentURL) {
155 155
             $start = mb_strpos($attachmentURL, '/');
156 156
             $end = mb_strrpos($attachmentURL, '"');
157
-            $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1));
157
+            $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1));
158 158
 
159 159
             if (method_exists($this->article, 'getAttachmentSecureURL')) {
160 160
                 $this->content = str_replace($attachmentURL, 'href='.$this->article->getAttachmentSecureURL($fileName), $this->content);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         foreach ($attachments[0] as $attachmentURL) {
169 169
             $start = mb_strpos($attachmentURL, '/');
170 170
             $end = mb_strrpos($attachmentURL, '" alt');
171
-            $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1));
171
+            $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1));
172 172
 
173 173
             if ($config->get('cms.images.widget')) {
174 174
                 // get the details of the source image
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                     $type = 'png';
184 184
                 }
185 185
 
186
-                $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean) $config->get('cms.images.widget.secure'));
186
+                $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean)$config->get('cms.images.widget.secure'));
187 187
                 $this->content = str_replace($attachmentURL, $img->renderHTMLLink(), $this->content);
188 188
             } else {
189 189
                 // render a normal image link to the ViewAttachment controller
Please login to merge, or discard this patch.