Completed
Push — master ( b0643d...00587a )
by Abdelouahab
13:50 queued 09:41
created
src/LaravelH5p/Http/Controllers/H5pController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,8 @@
 block discarded – undo
99 99
                     throw new H5PException('No such library');
100 100
                 }
101 101
                 //old
102
-               // $content['params'] = $request->get('parameters');
103
-               // $params = json_decode($content['params']);
102
+                // $content['params'] = $request->get('parameters');
103
+                // $params = json_decode($content['params']);
104 104
                 
105 105
                 
106 106
                 //new
Please login to merge, or discard this patch.
src/LaravelH5p/Repositories/LaravelH5pRepository.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
 
42 42
 
43 43
 
44
-     public function loadAddons(){}
45
-     public function getLibraryConfig($libraries = NULL){}
46
-     public function libraryHasUpgrade($library){}
44
+        public function loadAddons(){}
45
+        public function getLibraryConfig($libraries = NULL){}
46
+        public function libraryHasUpgrade($library){}
47 47
 
48 48
     /**
49 49
      * Implements setErrorMessage.
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
 
42 42
 
43 43
 
44
-     public function loadAddons(){}
45
-     public function getLibraryConfig($libraries = NULL){}
46
-     public function libraryHasUpgrade($library){}
44
+     public function loadAddons() {}
45
+     public function getLibraryConfig($libraries = NULL) {}
46
+     public function libraryHasUpgrade($library) {}
47 47
 
48 48
     /**
49 49
      * Implements setErrorMessage.
Please login to merge, or discard this patch.
src/LaravelH5p/Storages/EditorStorage.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $h5p->alter_assets($files, $libraries, 'editor');
32 32
     }
33 33
 
34
-     public function getAvailableLanguages($machineName, $majorVersion, $minorVersion){}
34
+        public function getAvailableLanguages($machineName, $majorVersion, $minorVersion){}
35 35
 
36 36
     public function getLanguage($machineName, $majorVersion, $minorVersion, $language)
37 37
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $h5p->alter_assets($files, $libraries, 'editor');
32 32
     }
33 33
 
34
-     public function getAvailableLanguages($machineName, $majorVersion, $minorVersion){}
34
+     public function getAvailableLanguages($machineName, $majorVersion, $minorVersion) {}
35 35
 
36 36
     public function getLanguage($machineName, $majorVersion, $minorVersion, $language)
37 37
     {
Please login to merge, or discard this patch.
src/LaravelH5p/Repositories/EditorAjaxRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,5 +94,5 @@
 block discarded – undo
94 94
         return true;
95 95
     }
96 96
 
97
-    public function getTranslations($libraries, $language_code){}
97
+    public function getTranslations($libraries, $language_code) {}
98 98
 }
Please login to merge, or discard this patch.
src/LaravelH5p/Storages/LaravelH5pStorage.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
 
41
- public function hasPresave($libraryName, $developmentPath = null){
41
+    public function hasPresave($libraryName, $developmentPath = null){
42 42
 
43
- }
43
+    }
44 44
 
45
-   public function getUpgradeScript($machineName, $majorVersion, $minorVersion){}
45
+    public function getUpgradeScript($machineName, $majorVersion, $minorVersion){}
46 46
 
47 47
     /**
48 48
      * Store the library folder.
@@ -580,14 +580,14 @@  discard block
 block discarded – undo
580 580
     }
581 581
 
582 582
     /**
583
-   * Store the given stream into the given file.
584
-   *
585
-   * @param string $path
586
-   * @param string $file
587
-   * @param resource $stream
588
-   * @return bool
589
-   */
590
-  public function saveFileFromZip($path, $file, $stream){
583
+     * Store the given stream into the given file.
584
+     *
585
+     * @param string $path
586
+     * @param string $file
587
+     * @param resource $stream
588
+     * @return bool
589
+     */
590
+    public function saveFileFromZip($path, $file, $stream){
591 591
     return true;
592
-  }
592
+    }
593 593
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
 
41
- public function hasPresave($libraryName, $developmentPath = null){
41
+ public function hasPresave($libraryName, $developmentPath = null) {
42 42
 
43 43
  }
44 44
 
45
-   public function getUpgradeScript($machineName, $majorVersion, $minorVersion){}
45
+   public function getUpgradeScript($machineName, $majorVersion, $minorVersion) {}
46 46
 
47 47
     /**
48 48
      * Store the library folder.
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                 } else {
236 236
                     // Rewrite relative URLs used inside stylesheets
237 237
                     $content .= preg_replace_callback(
238
-                        '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function ($matches) use ($cssRelPath) {
238
+                        '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function($matches) use ($cssRelPath) {
239 239
                             if (preg_match("/^(data:|([a-z0-9]+:)?\/)/i", $matches[1]) === 1) {
240 240
                                 return $matches[0]; // Not relative, skip
241 241
                             }
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
    * @param resource $stream
588 588
    * @return bool
589 589
    */
590
-  public function saveFileFromZip($path, $file, $stream){
590
+  public function saveFileFromZip($path, $file, $stream) {
591 591
     return true;
592 592
   }
593 593
 }
Please login to merge, or discard this patch.
src/LaravelH5p/Http/Controllers/AjaxController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
         $core = $h5p::$core;
23 23
         $editor = $h5p::$h5peditor;
24 24
 
25
-         //log($machineName);
26
-         Log::debug('An informational message.'.$machineName.'====='.$h5p->get_language());
25
+            //log($machineName);
26
+            Log::debug('An informational message.'.$machineName.'====='.$h5p->get_language());
27 27
         if ($machineName) {
28
-           $defaultLanguag = $editor->getLibraryLanguage($machineName, $major_version, $minor_version, $h5p->get_language());
28
+            $defaultLanguag = $editor->getLibraryLanguage($machineName, $major_version, $minor_version, $h5p->get_language());
29 29
         Log::debug('An informational message.'.$machineName.'====='.$h5p->get_language().'====='.$defaultLanguag);
30 30
 
31 31
         
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         
32 32
             //   public function getLibraryData($machineName, $majorVersion, $minorVersion, $languageCode, $prefix = '', $fileDir = '', $defaultLanguage) {
33 33
 
34
-            $editor->ajax->action(H5PEditorEndpoints::SINGLE_LIBRARY, $machineName, $major_version, $minor_version, $h5p->get_language(), '', $h5p->get_h5plibrary_url('', true),$defaultLanguag);  //$defaultLanguage
34
+            $editor->ajax->action(H5PEditorEndpoints::SINGLE_LIBRARY, $machineName, $major_version, $minor_version, $h5p->get_language(), '', $h5p->get_h5plibrary_url('', true), $defaultLanguag); //$defaultLanguage
35 35
             // Log library load
36 36
             event(new H5pEvent('library', null, null, null, $machineName, $major_version.'.'.$minor_version));
37 37
         } else {
Please login to merge, or discard this patch.