Passed
Push — feature/super-model ( a850c4...c51526 )
by axel
03:11
created
src/MalScraper/Model/Additional/PictureModel.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @var string
16 16
      */
17
-	private $_type;
17
+    private $_type;
18 18
 
19 19
     /**
20 20
      * Id of the anime or manga.
21 21
      *
22 22
      * @var string|int
23 23
      */
24
-	private $_id;
24
+    private $_id;
25 25
 
26 26
     /**
27 27
      * Default constructor.
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return void
34 34
      */
35
-	public function __construct($type, $id, $parserArea = '.js-scrollfix-bottom-rel')
35
+    public function __construct($type, $id, $parserArea = '.js-scrollfix-bottom-rel')
36 36
     {
37
-    	$this->_type = $type;
38
-    	$this->_id = $id;
37
+        $this->_type = $type;
38
+        $this->_id = $id;
39 39
         $this->_url = $this->_myAnimeListUrl.'/'.$type.'/'.$id;
40
-    	$this->_parserArea = $parserArea;
40
+        $this->_parserArea = $parserArea;
41 41
 
42 42
         parent::errorCheck($this);
43 43
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getId()
76 76
     {
77
-    	return $this->_id;
77
+        return $this->_id;
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
Please login to merge, or discard this patch.
src/MalScraper/Model/Additional/StatModel.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @var string
16 16
      */
17
-	private $_type;
17
+    private $_type;
18 18
 
19 19
     /**
20 20
      * Id of the anime or manga.
21 21
      *
22 22
      * @var string|int
23 23
      */
24
-	private $_id;
24
+    private $_id;
25 25
 
26 26
     /**
27 27
      * Default constructor.
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return void
34 34
      */
35
-	public function __construct($type, $id, $parserArea = '.js-scrollfix-bottom-rel')
35
+    public function __construct($type, $id, $parserArea = '.js-scrollfix-bottom-rel')
36 36
     {
37
-    	$this->_type = $type;
38
-    	$this->_id = $id;
37
+        $this->_type = $type;
38
+        $this->_id = $id;
39 39
         $this->_url = $this->_myAnimeListUrl.'/'.$type.'/'.$id;
40
-    	$this->_parserArea = $parserArea;
40
+        $this->_parserArea = $parserArea;
41 41
 
42 42
         parent::errorCheck($this);
43 43
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getId()
76 76
     {
77
-    	return $this->_id;
77
+        return $this->_id;
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
@@ -151,8 +152,9 @@  discard block
 block discarded – undo
151 152
         $user_area = $this->_parser->find('.table-recently-updated', 0);
152 153
         if ($user_area) {
153 154
             foreach ($user_area->find('tr') as $each_user) {
154
-                if (!$each_user->find('td', 0)->find('div', 0))
155
-                    continue;
155
+                if (!$each_user->find('td', 0)->find('div', 0)) {
156
+                                    continue;
157
+                }
156 158
 
157 159
                 $temp_user = [];
158 160
 
Please login to merge, or discard this patch.
src/MalScraper/Model/Lists/AllProducerModel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @var string
17 17
      */
18
-	private $_type;
18
+    private $_type;
19 19
 
20 20
     /**
21 21
      * Default constructor.
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return void
27 27
      */
28
-	public function __construct($type, $parserArea = '.anime-manga-search')
28
+    public function __construct($type, $parserArea = '.anime-manga-search')
29 29
     {
30
-    	$this->_type = $type;
30
+        $this->_type = $type;
31 31
         if ($type == 'anime') {
32 32
             $this->_url = $this->_myAnimeListUrl.'/anime/producer';
33 33
         } else {
34 34
             $this->_url = $this->_myAnimeListUrl.'/manga/magazine';
35 35
         }
36
-    	$this->_parserArea = $parserArea;
36
+        $this->_parserArea = $parserArea;
37 37
 
38 38
         parent::errorCheck($this);
39 39
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
Please login to merge, or discard this patch.
src/MalScraper/Model/Lists/AllGenreModel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @var string
17 17
      */
18
-	private $_type;
18
+    private $_type;
19 19
 
20 20
     /**
21 21
      * Default constructor.
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return void
27 27
      */
28
-	public function __construct($type, $parserArea = '.anime-manga-search .genre-link')
28
+    public function __construct($type, $parserArea = '.anime-manga-search .genre-link')
29 29
     {
30
-    	$this->_type = $type;
30
+        $this->_type = $type;
31 31
         if ($type == 'anime') {
32 32
             $this->_url = $this->_myAnimeListUrl.'/anime.php';
33 33
         } else {
34 34
             $this->_url = $this->_myAnimeListUrl.'/manga.php';
35 35
         }
36
-    	$this->_parserArea = $parserArea;
36
+        $this->_parserArea = $parserArea;
37 37
 
38 38
         parent::errorCheck($this);
39 39
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
Please login to merge, or discard this patch.
src/MalScraper/Model/Additional/CharacterPeoplePictureModel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @var string|int
24 24
      */
25
-	private $_id;
25
+    private $_id;
26 26
 
27 27
     /**
28 28
      * Default constructor.
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return void
34 34
      */
35
-	public function __construct($type, $id, $parserArea = '#content table tr td')
35
+    public function __construct($type, $id, $parserArea = '#content table tr td')
36 36
     {
37
-    	$this->_type = $type;
37
+        $this->_type = $type;
38 38
         $this->_id = $id;
39 39
         if ($this->_type == 'people') {
40 40
             $this->_url = $this->_myAnimeListUrl.'/people/'.$id;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     private function getId()
80 80
     {
81
-    	return $this->_id;
81
+        return $this->_id;
82 82
     }
83 83
 
84 84
     /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
Please login to merge, or discard this patch.
src/MalScraper/Model/Search/SearchAnimeMangaModel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @var string
17 17
      */
18
-	private $_type;
18
+    private $_type;
19 19
 
20 20
     /**
21 21
      * Search query.
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @return void
43 43
      */
44
-	public function __construct($type, $query, $page, $parserArea = 'div[class^=js-categories-seasonal]')
44
+    public function __construct($type, $query, $page, $parserArea = 'div[class^=js-categories-seasonal]')
45 45
     {
46 46
         $this->_type = $type;
47
-    	$this->_query = $query;
47
+        $this->_query = $query;
48 48
         $this->_page = 50 * ($page - 1);
49 49
 
50 50
         if ($type == 'anime') {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         } else {
53 53
             $this->_url = $this->_myAnimeListUrl.'/manga.php?q='.$query.'&show='.$this->_page;
54 54
         }
55
-    	$this->_parserArea = $parserArea;
55
+        $this->_parserArea = $parserArea;
56 56
 
57 57
         parent::errorCheck($this);
58 58
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     public function __call($method, $arguments)
54 54
     {
55
-        if ($this->_error)
56
-            return $this->_error;
55
+        if ($this->_error) {
56
+                    return $this->_error;
57
+        }
57 58
         return call_user_func_array([$this, $method], $arguments);
58 59
     }
59 60
 
Please login to merge, or discard this patch.