Completed
Push — master ( 58043b...413e7c )
by Sergi Tur
06:39
created

MigrationBatch   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
1
<?php
2
3
namespace Acacha\Users\Services;
4
5
use Acacha\Users\Models\ProgressBatch;
6
7
/**
8
 * Class MigrationBatch.
9
 *
10
 * @package Acacha\Users\Services
11
 */
12
class MigrationBatch
13
{
14
    /**
15
     * Init/create Migration batch.
16
     *
17
     * @return int
18
     */
19
    public function init()
20
    {
21
        return ProgressBatch::create([]);
0 ignored issues
show
Bug introduced by
The method create() does not exist on Acacha\Users\Models\ProgressBatch. Did you maybe mean created()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
22
    }
23
}