Completed
Push — master ( 1dfc28...143d44 )
by Vadim
02:10
created
src/Folour/Flavy/Extensions/Base.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function formats()
61 61
     {
62
-        if($this->_info['formats'] === null) {
62
+        if ($this->_info['formats'] === null) {
63 63
             $data = $this->runCmd('get_formats', [$this->config['ffmpeg_path']]);
64
-            if(is_array($data)) {
64
+            if (is_array($data)) {
65 65
                 $this->_info['formats'] = array_combine($data['format'], $data['mux']);
66 66
             }
67 67
         }
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function encoders()
83 83
     {
84
-        if($this->_info['encoders']['audio'] === []) {
84
+        if ($this->_info['encoders']['audio'] === []) {
85 85
             $data = $this->runCmd('get_encoders', [$this->config['ffmpeg_path']]);
86
-            if(is_array($data)) {
87
-                foreach($data['type'] as $key => $type) {
86
+            if (is_array($data)) {
87
+                foreach ($data['type'] as $key => $type) {
88 88
                     $this->_info['encoders'][($type == 'A' ? 'audio' : 'video')][] = $data['format'][$key];
89 89
                 }
90 90
             }
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function decoders()
107 107
     {
108
-        if($this->_info['decoders']['audio'] === []) {
108
+        if ($this->_info['decoders']['audio'] === []) {
109 109
             $data = $this->runCmd('get_decoders', [$this->config['ffmpeg_path']]);
110
-            if(is_array($data)) {
111
-                foreach($data['type'] as $key => $type) {
110
+            if (is_array($data)) {
111
+                foreach ($data['type'] as $key => $type) {
112 112
                     $this->_info['decoders'][($type == 'A' ? 'audio' : 'video')][] = $data['format'][$key];
113 113
                 }
114 114
             }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function timestamp($time, $isDate = true)
146 146
     {
147
-        if($isDate) {
147
+        if ($isDate) {
148 148
             $time = explode(':', $time);
149 149
 
150 150
             return ($time[0] * 3600) + ($time[1] * 60) + (ceil($time[2]));
Please login to merge, or discard this patch.