Code Duplication    Length = 8-8 lines in 7 locations

src/PhpExcelWrapper.php 7 locations

@@ 244-251 (lines=8) @@
241
    * @param string $fontName フォント名
242
    * @author hagiwara
243
    */
244
    public function setFontName($col, $row, $sheetNo, $fontName)
245
    {
246
        if (is_null($fontName)) {
247
            return;
248
        }
249
        $cellInfo = $this->cellInfo($col, $row);
250
        $this->getSheet($sheetNo)->getStyle($cellInfo)->getFont()->setName($fontName);
251
    }
252
253
    /**
254
    * setUnderline
@@ 262-269 (lines=8) @@
259
    * @param boolean $underline 下線を引くか
260
    * @author hagiwara
261
    */
262
    public function setUnderline($col, $row, $sheetNo, $underline)
263
    {
264
        if (is_null($underline)) {
265
            return;
266
        }
267
        $cellInfo = $this->cellInfo($col, $row);
268
        $this->getSheet($sheetNo)->getStyle($cellInfo)->getFont()->setUnderline($underline);
269
    }
270
271
    /**
272
    * setFontBold
@@ 280-287 (lines=8) @@
277
    * @param boolean $bold 太字を引くか
278
    * @author hagiwara
279
    */
280
    public function setFontBold($col, $row, $sheetNo, $bold)
281
    {
282
        if (is_null($bold)) {
283
            return;
284
        }
285
        $cellInfo = $this->cellInfo($col, $row);
286
        $this->getSheet($sheetNo)->getStyle($cellInfo)->getFont()->setBold($bold);
287
    }
288
289
    /**
290
    * setItalic
@@ 298-305 (lines=8) @@
295
    * @param boolean $italic イタリックにするか
296
    * @author hagiwara
297
    */
298
    public function setItalic($col, $row, $sheetNo, $italic)
299
    {
300
        if (is_null($italic)) {
301
            return;
302
        }
303
        $cellInfo = $this->cellInfo($col, $row);
304
        $this->getSheet($sheetNo)->getStyle($cellInfo)->getFont()->setBold($italic);
305
    }
306
307
    /**
308
    * setStrikethrough
@@ 316-323 (lines=8) @@
313
    * @param boolean $strikethrough 打ち消し線をつけるか
314
    * @author hagiwara
315
    */
316
    public function setStrikethrough($col, $row, $sheetNo, $strikethrough)
317
    {
318
        if (is_null($strikethrough)) {
319
            return;
320
        }
321
        $cellInfo = $this->cellInfo($col, $row);
322
        $this->getSheet($sheetNo)->getStyle($cellInfo)->getFont()->setStrikethrough($strikethrough);
323
    }
324
325
    /**
326
    * setColor
@@ 334-341 (lines=8) @@
331
    * @param string $color 色(ARGB)
332
    * @author hagiwara
333
    */
334
    public function setColor($col, $row, $sheetNo, $color)
335
    {
336
        if (is_null($color)) {
337
            return;
338
        }
339
        $cellInfo = $this->cellInfo($col, $row);
340
        $this->getSheet($sheetNo)->getStyle($cellInfo)->getFont()->getColor()->setARGB($color);
341
    }
342
343
    /**
344
    * setSize
@@ 352-359 (lines=8) @@
349
    * @param integer $size
350
    * @author hagiwara
351
    */
352
    public function setSize($col, $row, $sheetNo, $size)
353
    {
354
        if (is_null($size)) {
355
            return;
356
        }
357
        $cellInfo = $this->cellInfo($col, $row);
358
        $this->getSheet($sheetNo)->getStyle($cellInfo)->getFont()->setSize($size);
359
    }
360
361
    /**
362
    * setAlignHolizonal