Completed
Push — master ( 335c44...a95920 )
by Jonas
05:50 queued 02:51
created
Components/ImageImport.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     /**
74 74
      * Get ids of products that needs an image import
75
-     * @param null $limit
75
+     * @param integer|null $limit
76 76
      * @return array        Ids of products needing an image import
77 77
      */
78 78
     public function getProductsNeedingImageImport($limit=null)
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
     }
608 608
 
609 609
     /**
610
-     * @param $imageUrl string
610
+     * @param string $imageUrl string
611 611
      * @param $articleId int
612 612
      * @return bool
613 613
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -602,7 +602,7 @@
 block discarded – undo
602 602
             [0, $oldMainImageId]);
603 603
             $this->manager->getConnection()->executeQuery('
604 604
             UPDATE s_articles_img SET main = ? WHERE id = ?',
605
-             [1, $newMainImageId]);
605
+                [1, $newMainImageId]);
606 606
         }
607 607
     }
608 608
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @param null $limit
76 76
      * @return array        Ids of products needing an image import
77 77
      */
78
-    public function getProductsNeedingImageImport($limit=null)
78
+    public function getProductsNeedingImageImport($limit = null)
79 79
     {
80 80
         $updateFlags = $this->helper->getUpdateFlags();
81 81
         $updateFlagsByName = array_flip($updateFlags);
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
             ->orderBy('images.main', 'ASC')
374 374
             ->addOrderBy('images.position', 'ASC');
375 375
 
376
-        return array_map(function ($image) {
376
+        return array_map(function($image) {
377 377
             return $image['path'];
378 378
         },
379 379
             $builder->getQuery()->getArrayResult()
@@ -621,6 +621,6 @@  discard block
 block discarded – undo
621 621
             WHERE s_articles_img.articleID = ? AND s_articles_img.main = 1 AND s_articles_img.parent_id IS NULL AND s_media_attributes.connect_hash = ?',
622 622
             [$articleId, $imageUrl]);
623 623
 
624
-        return !(bool) $result;
624
+        return !(bool)$result;
625 625
     }
626 626
 }
Please login to merge, or discard this patch.
Models/Connect/Attribute.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @ORM\GeneratedValue(strategy="IDENTITY")
33 33
      * @ORM\Column(name="id", type="integer", nullable=false)
34 34
      */
35
-     protected $id;
35
+        protected $id;
36 36
 
37 37
 
38 38
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @ORM\Column(name="article_id", type="integer", nullable=true)
42 42
      */
43
-     protected $articleId;
43
+        protected $articleId;
44 44
 
45 45
 
46 46
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @ORM\Column(name="article_detail_id", type="integer", nullable=true)
50 50
      */
51
-     protected $articleDetailId;
51
+        protected $articleDetailId;
52 52
 
53 53
 
54 54
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @ORM\Column(name="shop_id", type="string", nullable=true)
58 58
      */
59
-     protected $shopId;
59
+        protected $shopId;
60 60
 
61 61
 
62 62
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @ORM\Column(name="source_id", type="string", nullable=true)
66 66
      */
67
-     protected $sourceId;
67
+        protected $sourceId;
68 68
 
69 69
 
70 70
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @ORM\Column(name="export_status", type="text", nullable=true)
74 74
      */
75
-     protected $exportStatus;
75
+        protected $exportStatus;
76 76
 
77 77
 
78 78
     /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @ORM\Column(name="export_message", type="text", nullable=true)
82 82
      */
83
-     protected $exportMessage;
83
+        protected $exportMessage;
84 84
 
85 85
     /**
86 86
      * @var bool
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @ORM\Column(name="category", type="text", nullable=true)
97 97
      */
98
-     protected $category;
98
+        protected $category;
99 99
 
100 100
 
101 101
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @ORM\Column(name="purchase_price", type="float", nullable=true)
105 105
      */
106
-     protected $purchasePrice;
106
+        protected $purchasePrice;
107 107
 
108 108
 
109 109
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @ORM\Column(name="fixed_price", type="integer", nullable=true)
113 113
      */
114
-     protected $fixedPrice;
114
+        protected $fixedPrice;
115 115
 
116 116
 
117 117
     /**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      *
120 120
      * @ORM\Column(name="update_price", type="string", nullable=true)
121 121
      */
122
-     protected $updatePrice;
122
+        protected $updatePrice;
123 123
 
124 124
 
125 125
     /**
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      *
128 128
      * @ORM\Column(name="update_image", type="string", nullable=true)
129 129
      */
130
-     protected $updateImage;
130
+        protected $updateImage;
131 131
 
132 132
 
133 133
     /**
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      *
136 136
      * @ORM\Column(name="update_long_description", type="string", nullable=true)
137 137
      */
138
-     protected $updateLongDescription;
138
+        protected $updateLongDescription;
139 139
 
140 140
 
141 141
     /**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @ORM\Column(name="update_short_description", type="string", nullable=true)
145 145
      */
146
-     protected $updateShortDescription;
146
+        protected $updateShortDescription;
147 147
 
148 148
 
149 149
     /**
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
      *
152 152
      * @ORM\Column(name="update_additional_description", type="string", nullable=true)
153 153
      */
154
-     protected $updateAdditionalDescription;
154
+        protected $updateAdditionalDescription;
155 155
 
156 156
     /**
157 157
      * @var string
158 158
      *
159 159
      * @ORM\Column(name="update_name", type="string", nullable=true)
160 160
      */
161
-     protected $updateName;
161
+        protected $updateName;
162 162
 
163 163
     /**
164 164
      * @var string
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      *
174 174
      * @ORM\Column(name="last_update", type="text", nullable=true)
175 175
      */
176
-     protected $lastUpdate;
176
+        protected $lastUpdate;
177 177
 
178 178
 
179 179
     /**
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      *
182 182
      * @ORM\Column(name="last_update_flag", type="integer", nullable=true)
183 183
      */
184
-     protected $lastUpdateFlag;
184
+        protected $lastUpdateFlag;
185 185
 
186 186
 
187 187
     /**
@@ -206,15 +206,15 @@  discard block
 block discarded – undo
206 206
     protected $articleDetail;
207 207
 
208 208
     /**
209
-    * @var int
210
-    * @ORM\Column(name="group_id", type="integer", nullable=true)
211
-    */
209
+     * @var int
210
+     * @ORM\Column(name="group_id", type="integer", nullable=true)
211
+     */
212 212
     protected $groupId;
213 213
 
214 214
     /**
215
-    * @var bool
216
-    * @ORM\Column(name="is_main_variant", type="boolean", nullable=true)
217
-    */
215
+     * @var bool
216
+     * @ORM\Column(name="is_main_variant", type="boolean", nullable=true)
217
+     */
218 218
     protected $isMainVariant;
219 219
 
220 220
     /**
Please login to merge, or discard this patch.
Controllers/Backend/LastChanges.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
                 }
110 110
                 break;
111 111
             case 'price':
112
-                $netPrice = $value / (1 + ($article->getTax()->getTax()/100));
112
+                $netPrice = $value / (1 + ($article->getTax()->getTax() / 100));
113 113
                 $customerGroup = $this->getHelper()->getDefaultCustomerGroup();
114 114
 
115 115
                 $detail->getPrices()->clear();
Please login to merge, or discard this patch.