Completed
Push — master ( 36ca24...91d14d )
by Matthew
02:30
created
updates/create_releases_table.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,8 @@
 block discarded – undo
7 7
 use October\Rain\Database\Updates\Migration;
8 8
 use Schema;
9 9
 
10
-class CreateReleasesTable extends Migration {
10
+class CreateReleasesTable extends Migration
11
+{
11 12
 
12 13
     /**
13 14
      * Migration
Please login to merge, or discard this patch.
controllers/Episodes.php 1 patch
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,8 +34,9 @@  discard block
 block discarded – undo
34 34
         if (($checkedIds = post('checked')) && is_array($checkedIds) && count($checkedIds)) {
35 35
 
36 36
             foreach ($checkedIds as $episodeId) {
37
-                if (!$episode = Episode::find($episodeId))
38
-                    continue;
37
+                if (!$episode = Episode::find($episodeId)) {
38
+                                    continue;
39
+                }
39 40
 
40 41
                 $episode->delete();
41 42
             }
@@ -46,7 +47,8 @@  discard block
 block discarded – undo
46 47
         return $this->listRefresh();
47 48
     }
48 49
 
49
-    public function listExtendQuery($query, $definition = null) {
50
+    public function listExtendQuery($query, $definition = null)
51
+    {
50 52
         $user = BackendAuth::getUser();
51 53
 
52 54
         if (!$user->hasAccess(['cosmicradiotv.podcast.access_episodes_all'])) {
Please login to merge, or discard this patch.
models/Episode.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,8 @@  discard block
 block discarded – undo
103 103
      * @param  boolean $ofShow If true returns the next episode of the same show
104 104
      * @return Episode         The next episode
105 105
      */
106
-    public function nextCached($ofShow = false) {
106
+    public function nextCached($ofShow = false)
107
+    {
107 108
         if (empty($this->nextEpisodeCache[$ofShow])) {
108 109
             $this->nextEpisodeCache[$ofShow] = $this->next($ofShow);
109 110
         }
@@ -115,7 +116,8 @@  discard block
 block discarded – undo
115 116
      * @param  boolean $ofShow If true returns the next episode of the same show
116 117
      * @return Episode         The previous episode
117 118
      */
118
-    public function previousCached($ofShow = false) {
119
+    public function previousCached($ofShow = false)
120
+    {
119 121
         if (empty($this->previousEpisodeCache[$ofShow])) {
120 122
             $this->previousEpisodeCache[$ofShow] = $this->previous($ofShow);
121 123
         }
@@ -127,7 +129,8 @@  discard block
 block discarded – undo
127 129
      * @param  boolean  $ofShow If true returns the next episode of the same show
128 130
      * @return Episode          The next episode
129 131
      */
130
-    public function next($ofShow = false) {
132
+    public function next($ofShow = false)
133
+    {
131 134
         $query = self::query();
132 135
         if ($ofShow) {
133 136
             $query = $query->where('show_id',$this->show_id);
@@ -139,7 +142,8 @@  discard block
 block discarded – undo
139 142
      * @param  boolean  $ofShow If true returns the previous episode of the same show
140 143
      * @return Episode          The previous episode
141 144
      */
142
-    public function previous($ofShow = false) {
145
+    public function previous($ofShow = false)
146
+    {
143 147
         $query = self::query();
144 148
         if ($ofShow) {
145 149
             $query = $query->where('show_id',$this->show_id);
Please login to merge, or discard this patch.
models/Release.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,8 @@
 block discarded – undo
76 76
     /**
77 77
      * Used to automatically set the size of the release (if size is set to 0)
78 78
      */
79
-    public function beforeSave() {
79
+    public function beforeSave()
80
+    {
80 81
         $dirty = $this->getDirty();
81 82
         if (in_array($this->release_type->type,['video','audio']) && $this->size == 0 && (isset($dirty['size']) || isset($dirty['url']))) {
82 83
             $ch = curl_init();
Please login to merge, or discard this patch.
classes/ComponentBase.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@
 block discarded – undo
5 5
 use Cms\Classes\CodeBase;
6 6
 use Cms\Classes\ComponentBase as OctoberComponentBase;
7 7
 
8
-abstract class ComponentBase extends OctoberComponentBase {
8
+abstract class ComponentBase extends OctoberComponentBase
9
+{
9 10
 
10 11
     public function __construct(CodeBase $cmsObject = null, $properties = [])
11 12
     {
Please login to merge, or discard this patch.