Completed
Push — develop ( 4b3d97...3f9224 )
by John
05:11 queued 02:38
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/Util/Extension/TCPDFFacade.php 1 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.
Alpha/Util/Graph/GraphNode.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -467,9 +467,9 @@  discard block
 block discarded – undo
467 467
     public function getChildrenCenter()
468 468
     {
469 469
         $node = $this->getChildAt(0);
470
-        $node1 = $this->getChildAt(count($this->children) - 1);
470
+        $node1 = $this->getChildAt(count($this->children)-1);
471 471
 
472
-        return $node->getOffset() + (($node1->getOffset() - $node->getOffset()) + $node1->getWidth()) / 2;
472
+        return $node->getOffset()+(($node1->getOffset()-$node->getOffset())+$node1->getWidth())/2;
473 473
     }
474 474
 
475 475
     /**
@@ -521,14 +521,14 @@  discard block
 block discarded – undo
521 521
      */
522 522
     public function setUpLinks()
523 523
     {
524
-        $xa = $this->x + ($this->width / 2);
525
-        $ya = $this->y + $this->height;
524
+        $xa = $this->x+($this->width/2);
525
+        $ya = $this->y+$this->height;
526 526
 
527 527
         foreach ($this->children as $child) {
528
-            $xd = $xc = $child->getX() + ($child->getWidth() / 2);
528
+            $xd = $xc = $child->getX()+($child->getWidth()/2);
529 529
             $yd = $child->getY();
530 530
             $xb = $xa;
531
-            $yb = $yc = $ya + ($yd - $ya) / 2;
531
+            $yb = $yc = $ya+($yd-$ya)/2;
532 532
             $this->links[$child->id]['xa'] = $xa;
533 533
             $this->links[$child->id]['ya'] = $ya;
534 534
             $this->links[$child->id]['xb'] = $xb;
Please login to merge, or discard this patch.