Completed
Pull Request — master (#109)
by Jason
06:12
created
code/SlidePublishTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $slides = SlideImage::get();
30 30
         $ct = 0;
31 31
         foreach ($slides as $slide) {
32
-            if ($slide->ShowSlide == 1) {
32
+            if ($slide->ShowSlide==1) {
33 33
                 $title = $slide->Title;
34 34
                 $slide->writeToStage('Stage');
35 35
                 $slide->publish('Stage', 'Live');
Please login to merge, or discard this patch.
code/SlideImage.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * @param null $member
143 143
      * @param array $context
144
-     * @return bool|int
144
+     * @return boolean|string
145 145
      */
146 146
     public function canCreate($member = null, $context = [])
147 147
     {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * @param null $member
153 153
      * @param array $context
154
-     * @return bool|int
154
+     * @return boolean|string
155 155
      */
156 156
     public function canEdit($member = null, $context = [])
157 157
     {
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * @param null $member
163 163
      * @param array $context
164
-     * @return bool|int
164
+     * @return boolean|string
165 165
      */
166 166
     public function canDelete($member = null, $context = [])
167 167
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use SilverStripe\Security\Member;
9 9
 use SilverStripe\Security\Permission;
10 10
 use SilverStripe\Security\PermissionProvider;
11
-use SilverStripe\Versioned\Versioned;
12 11
 
13 12
 class SlideImage extends DataObject implements PermissionProvider
14 13
 {
Please login to merge, or discard this patch.
tests/SlideImageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         $this->assertEquals(Config::modify()->get(SlideImage::class, 'image_size_limit'), $default);
138 138
 
139 139
         $new = 1024000;
140
-        Config::modify()->update(SlideImage::class , 'image_size_limit', $new);
140
+        Config::modify()->update(SlideImage::class, 'image_size_limit', $new);
141 141
         $this->assertEquals(Config::modify()->get(SlideImage::class, 'image_size_limit'), $new);
142 142
     }
143 143
 }
144 144
\ No newline at end of file
Please login to merge, or discard this patch.