Completed
Push — experimental/3.1 ( 147fa8...558b03 )
by chihiro
71:14 queued 45:08
created
src/Eccube/DI/AutoWiring/RepositoryDefinition.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * RepositoryDefinition constructor.
35
-     * @param $id
36
-     * @param $refClass
37
-     * @param $entityClass
35
+     * @param string $id
36
+     * @param \ReflectionClass $refClass
37
+     * @param string $entityClass
38 38
      */
39 39
     public function __construct($id, $refClass, $entityClass)
40 40
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
 
59 59
         // 同じパッケージのEntityがあれば返す
60 60
         if (count($partsOfFqcn) > 2) {
61
-            $parentNamespace = implode('\\', array_slice($partsOfFqcn, 0, count($partsOfFqcn)-2));
62
-            $entityName = preg_replace('/(.*)Repository/', '$1', $partsOfFqcn[count($partsOfFqcn) -1]);
63
-            $result = $parentNamespace . '\\Entity\\' . $entityName;
61
+            $parentNamespace = implode('\\', array_slice($partsOfFqcn, 0, count($partsOfFqcn) - 2));
62
+            $entityName = preg_replace('/(.*)Repository/', '$1', $partsOfFqcn[count($partsOfFqcn) - 1]);
63
+            $result = $parentNamespace.'\\Entity\\'.$entityName;
64 64
             if (class_exists($result)) {
65 65
                 return $result;
66 66
             }
Please login to merge, or discard this patch.