Passed
Push — feature/super-model ( 13c8a0...a850c4 )
by axel
01:59
created
src/MalScraper/Model/Additional/CharacterPictureModel.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @var string|int
16 16
      */
17
-	private $_id;
17
+    private $_id;
18 18
 
19 19
     /**
20 20
      * Default constructor.
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return void
26 26
      */
27
-	public function __construct($id, $parserArea = '#content table tr td')
27
+    public function __construct($id, $parserArea = '#content table tr td')
28 28
     {
29
-    	$this->_id = $id;
29
+        $this->_id = $id;
30 30
         $this->_url = $this->_myAnimeListUrl.'/character/'.$id;
31
-    	$this->_parserArea = $parserArea;
31
+        $this->_parserArea = $parserArea;
32 32
 
33 33
         parent::errorCheck($this);
34 34
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     private function getId()
67 67
     {
68
-    	return $this->_id;
68
+        return $this->_id;
69 69
     }
70 70
 
71 71
     /**
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/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/Additional/PeoplePictureModel.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @var string|int
16 16
      */
17
-	private $_id;
17
+    private $_id;
18 18
 
19 19
     /**
20 20
      * Default constructor.
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return void
26 26
      */
27
-	public function __construct($id, $parserArea = '#content table tr td')
27
+    public function __construct($id, $parserArea = '#content table tr td')
28 28
     {
29
-    	$this->_id = $id;
29
+        $this->_id = $id;
30 30
         $this->_url = $this->_myAnimeListUrl.'/people/'.$id;
31
-    	$this->_parserArea = $parserArea;
31
+        $this->_parserArea = $parserArea;
32 32
 
33 33
         parent::errorCheck($this);
34 34
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     private function getId()
67 67
     {
68
-    	return $this->_id;
68
+        return $this->_id;
69 69
     }
70 70
 
71 71
     /**
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.