Completed
Push — 2.0.0 ( ebf425...d56a3c )
by John
04:14
created
Alpha/Model/Type/DEnum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      *
99 99
      * @since 1.0
100 100
      */
101
-    protected $dataLabels = array('OID' => 'DEnum ID#','name' => 'Name');
101
+    protected $dataLabels = array('OID' => 'DEnum ID#', 'name' => 'Name');
102 102
 
103 103
     /**
104 104
      * The message to display to the user when validation fails.
Please login to merge, or discard this patch.
Alpha/Model/Type/Sequence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @since 1.0
88 88
      */
89
-    protected $dataLabels = array('OID' => 'Sequence ID#','prefix' => 'Sequence prefix','sequence' => 'Sequence number');
89
+    protected $dataLabels = array('OID' => 'Sequence ID#', 'prefix' => 'Sequence prefix', 'sequence' => 'Sequence number');
90 90
 
91 91
     /**
92 92
      * The message to display to the user when validation fails.
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $this->set('sequence', 0);
175 175
         }
176 176
 
177
-        $this->set('sequence', $this->get('sequence') + 1);
177
+        $this->set('sequence', $this->get('sequence')+1);
178 178
         $this->save();
179 179
     }
180 180
 
Please login to merge, or discard this patch.
Alpha/Model/Type/DEnumItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      *
89 89
      * @since 1.0
90 90
      */
91
-    protected $dataLabels = array('OID' => 'DEnumItem ID#','value' => 'Dropdown value');
91
+    protected $dataLabels = array('OID' => 'DEnumItem ID#', 'value' => 'Dropdown value');
92 92
 
93 93
     /**
94 94
      * The message to display to the user when validation fails.
Please login to merge, or discard this patch.
Alpha/Model/Type/RelationLookup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      *
109 109
      * @since 1.0
110 110
      */
111
-    protected $dataLabels = array('OID' => 'RelationLookup ID#','leftID' => 'Left BO ID#','rightID' => 'Right BO ID#');
111
+    protected $dataLabels = array('OID' => 'RelationLookup ID#', 'leftID' => 'Left BO ID#', 'rightID' => 'Right BO ID#');
112 112
 
113 113
     /**
114 114
      * The message to display to the user when validation fails.
Please login to merge, or discard this patch.
Alpha/Model/Type/Relation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      *
170 170
      * @since 1.0
171 171
      */
172
-    private $allowableRelationTypes = array('MANY-TO-ONE','ONE-TO-MANY','ONE-TO-ONE','MANY-TO-MANY');
172
+    private $allowableRelationTypes = array('MANY-TO-ONE', 'ONE-TO-MANY', 'ONE-TO-ONE', 'MANY-TO-MANY');
173 173
 
174 174
     /**
175 175
      * The object ID (OID) value of the related object.  In the special case of a MANY-TO-MANY
Please login to merge, or discard this patch.
Alpha/Util/Extension/MarkdownFacade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         foreach ($attachments[0] as $attachmentURL) {
157 157
             $start = mb_strpos($attachmentURL, '/');
158 158
             $end = mb_strrpos($attachmentURL, '"');
159
-            $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1));
159
+            $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1));
160 160
 
161 161
             if (method_exists($this->BO, 'getAttachmentSecureURL')) {
162 162
                 $this->content = str_replace($attachmentURL, 'href='.$this->BO->getAttachmentSecureURL($fileName), $this->content);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         foreach ($attachments[0] as $attachmentURL) {
171 171
             $start = mb_strpos($attachmentURL, '/');
172 172
             $end = mb_strrpos($attachmentURL, '" alt');
173
-            $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1));
173
+            $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1));
174 174
 
175 175
             if ($config->get('cms.images.widget')) {
176 176
                 // get the details of the source image
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                     $type = 'png';
186 186
                 }
187 187
 
188
-                $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean) $config->get('cms.images.widget.secure'));
188
+                $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean)$config->get('cms.images.widget.secure'));
189 189
                 $this->content = str_replace($attachmentURL, $img->renderHTMLLink(), $this->content);
190 190
             } else {
191 191
                 // render a normal image link to the ViewAttachment controller
Please login to merge, or discard this patch.